Autoinstall gems

S2 wrote:

Is there a way to make rubygems autoinstall the HOTP gem if it is not
already installed?

I think there is a right problem there. Installing gems *normally*
require super user rights (on modern OS).

···

--
Posted via http://www.ruby-forum.com/\.

S2 wrote:

Joachim Glauche wrote:

S2 wrote:

Is there a way to make rubygems autoinstall the HOTP gem if it is not
already installed?

I think there is a right problem there. Installing gems *normally* require super user rights (on modern OS).

Yes, that is true. It would eventually yield a Permission denied error. But that is an OS configuration problem, not a rubygems one :slight_smile:

Well, if I may add my very amateur voice here, it seems to me that one could certainly trap an error and conditionally issue a system call to engage the installation process at the super user level. The process would then have to worked through manually, since there often are one or more interactions which need to occur to complete the installation of some gems. This would work fine if the person running the programmer has access to superuser passwords.

Don't know this is the sort of thing you have in mind or not.

t.

···

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc@tomcloyd.com >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog) << sleightmind.wordpress.com >> (mental health issues weblog)
<< directpathdesign.com >> (web site design & consultation)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

S2 wrote:

Tom Cloyd wrote:

S2 wrote:

Joachim Glauche wrote:

S2 wrote:

Is there a way to make rubygems autoinstall the HOTP gem if it is not
already installed?

I think there is a right problem there. Installing gems *normally* require super user rights (on modern OS).

Yes, that is true. It would eventually yield a Permission denied error. But that is an OS configuration problem, not a rubygems one :slight_smile:

Well, if I may add my very amateur voice here, it seems to me that one could certainly trap an error and conditionally issue a system call to engage the installation process at the super user level. The process would then have to worked through manually, since there often are one or more interactions which need to occur to complete the installation of some gems. This would work fine if the person running the programmer has access to superuser passwords.

Yes, this is a good alternative.

Don't know this is the sort of thing you have in mind or not.

I thought that rubygems had his way of doing this automagically, but after reading your response it looks like this is not the case and it's also not really feasible to do easily.

Well, its apparent that when one manually installs a gem ("sudo install slideshow", for example), those already installed are checked to see if they need to be updated, but normally calling programmatically upon an uninstalled gem, in any way, produces an error.

t.

···

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc@tomcloyd.com >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog) << sleightmind.wordpress.com >> (mental health issues weblog)
<< directpathdesign.com >> (web site design & consultation)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~