I think you're on to something, when I do sudo gem list p, my
pixcaptcha does come up. Perhaps my application could not see the
gem because I installed it using sudo and not simply gem install
$ sudo gem list p
*** LOCAL GEMS ***
passenger (3.0.9, 3.0.7)
plucky (0.4.4, 0.3.8)
polyglot (0.3.3, 0.3.2, 0.3.1)
I have been using sudo gem install because of permissions (to
the ruby directory. I think it is a system wide install.
I am using rvm 1.7.2, and I will attach the pixcaptcha gemspec
to the post. I was working on getting jeweler installed, so I may
have made some goofs in the gemspec while manually editing (I do
realize the file says "DO NOT EDIT THIS FILE DIRECTLY" :) )
should I grant myself access to write to the
~/.rvm/gems/ruby-1.9.2-p290 directory to install my gem for my
application to use?
Let me know if there is any other information I can provide to
Support Staff4 Posted by Eric Hodel on 02 Feb, 2012 12:53 AM
Most likely your sudo environment is not identical to your
non-sudo environment due to sudo environment scrubbing.
Please compare gem env with sudo gem
env and then consult your sudoers file to see which
environment variables are not being allowed into the sudo
environment. Likely GEM_HOME and GEM_PATH are not allowed.