I can get “gem install …” to execute, but not “sudo gem install…”.
I’ve always had to use the latter, and to my best knowledge still do,
but at present only the former works. I’ve never seen this problem, and
am baffled by it.
- Why have I had to do “sudo gem install…” up to this point, and now
that suddenly doesn’t work, but plain “gem install…” does?
My best guess is that it may have to do with where I installed ruby (I
was following the instructions found at
- Do I have a problem here, or can I just go forward from this point?
My best guess is that there’s no problem. As I write this, all the gems
I’m requesting are installing just fine.
I use the webby gem a lot, and I just got IT to do its thing without a
- Finally, my “gem install…” of a dozen or so gem was successful, but
after the ri documentation was installed, it crashed - here’s the last
bit of the output:
Installing ri documentation for logging-1.2.2…
Installing ri documentation for loquacious-1.3.0…
Installing ri documentation for webby-0.9.4…
ERROR: While executing gem … (Errno::EACCES)
Permission denied - /home/tomc/.ri/cache/.doc_dirs
How do I get rdoc to run on all these gems? (There are about 20
installed, counting dependencies). I’d just fire up rdoc in my “home…
.gem” dir, but I’m afraid everything will end up in the same doc file.
Don’t know what to do here, and my study of the rdoc -h output isn’t
Thanks for any help offered! (see below for environment details, etc.)
===== Heres some relevant CLI output –
[email protected]:/$ gem install rake
WARNING: Installing to ~/.gem since
/opt/ruby-1.8.7-p160/bin aren’t both writable.
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7…
Installing RDoc documentation for rake-0.8.7…
[email protected]:/$ gem list
*** LOCAL GEMS ***
[email protected]:/$ rake -v
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
(See full trace by running task with --trace)
Environment details –
running Kubuntu Linux 9.0.4
I’ve just installed ruby 1.8.7 from source, and then rubygem 1.3.5, with
$ gem env
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.7 (2009-04-08 patchlevel 160) [i686-linux]
- INSTALLATION DIRECTORY: /opt/ruby-1.8.7-p160/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /opt/ruby-1.8.7-p160/bin/ruby
- EXECUTABLE DIRECTORY: /opt/ruby-1.8.7-p160/bin
- RUBYGEMS PLATFORMS:
- GEM PATHS:
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
$ echo $PATH
Tom C., MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << [email protected] >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog)