I've always distrusted the ruby and rails installs on my Mac (oOS X 10.6.3) -- sudo gem cleanup can't seem to get rid of old gem versions (lots of Gem::InstallError: cannot uninstall). Because of that, I don't trust the rails beta3 install I just completed. Here's the story: * config is Apple's ruby 1.8.7 and gem 1.3.6. * xcode is installed from Apple's developer site. * gem env result is: RubyGems Environment: - RUBYGEMS VERSION: 1.3.6 - RUBY VERSION: 1.8.7 (2009-06-08 patchlevel 173) [universal- darwin10.0] - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/ Versions/1.8/usr/bin/ruby - EXECUTABLE DIRECTORY: /usr/bin - RUBYGEMS PLATFORMS: - ruby - universal-darwin-10 - GEM PATHS: - /Library/Ruby/Gems/1.8 - /Users/burleigh/.gem/ruby/1.8 - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://rubygems.org/ I have done these commands: sudo gem update --system sudo gem cleanup sudo gem install tzinfo builder i18n memcache-client rack \ rake rack-test rack-mount erubis mail text-format \ thor bundler sodu gem install rails --pre whose execution ends with: Installing ri documentation for rails-3.0.0.beta3... File not found: lib The gems/rails-3.0.0.beta3 directory has a bin directory with a 20 character file named "rails." The other gem directories seem fuller. That, combined with the failure of gem cleanup, makes me think "this can't be right." I'd appreciate any advice how I might clean up my Mac rails environment. Thank you. PS: I have so far avoided MacPorts.
on 2010-05-09 14:11
on 2010-05-10 02:21
On May 8, 10:39 pm, Frank <email@example.com> wrote: > I've always distrusted the ruby and rails installs on my Mac (oOS X > 10.6.3) -- sudo gem cleanup can't seem to get rid of old gem versions > (lots of Gem::InstallError: cannot uninstall). > > Because of that, I don't trust the rails beta3 install I just > completed. Here's the story: > I built and installed my own ruby and rubygems, leaving the Apple- provided installations alone. I used ruby 1.9.1 and gems 1.3.6. Then I followed the procure outlined to install the gems, then rails beta3 itself. Again I got the complaint about the missing lib directory. I followed common advice to create the lib directory in .../ gems/rails-3.0.0.beta3, then installed the rails gem once again -- to successful completion. There's nothing actually *in* the lib directory -- I can only hope that's as it should be. There are enough references to this problem that I'll assume there's either some dependance or some packaging issue, and that the Rails team has it on their radar for a fix.
on 2010-06-11 01:03
I'm having the identical problem with beta4.
on 2010-06-17 18:22
I am having this same problem, but I am using Ruby 1.8.7 and an updated version of RubyGems. Does anyone have an answer for this issue? I know that Rails 3 does not work at all with 1.9.1, so I tried 1.9.2 and it did not seem to work either. So I decided to go with the older version.
on 2010-07-13 18:33
Is there an update on this problem? I'm seeing the same problem: [root@******* ruby-enterprise-1.8.7-2010.02]# gem install rails --prerelease Successfully installed rails-3.0.0.beta4 1 gem installed Installing ri documentation for rails-3.0.0.beta4... File not found: lib I have upgraded Ruby to version 1.8.7. Can anyone help me with this? Thank you.
on 2010-09-01 00:14
Frank Burleigh wrote: > I have done these commands: > > sudo gem update --system > sudo gem cleanup > > sudo gem install tzinfo builder i18n memcache-client rack \ > rake rack-test rack-mount erubis mail text-format \ > thor bundler > sodu gem install rails --pre > > whose execution ends with: > > Installing ri documentation for rails-3.0.0.beta3... > File not found: lib > > The gems/rails-3.0.0.beta3 directory has a bin directory with a 20 > character file named "rails." The other gem directories seem fuller. > Are you using RVM by any chance? If you are, you cannot use 'sudo' when installing the gems. I had this issue at first (kept saying File not found: lib) and then I noticed that RVM installs things as you, not as sudo. Therefore I just used the command: 'gem install rails --pre' or just 'gem install rails' (since Rails 3 has been released) and I got rid of the 'File not found: lib' issue. Hope this helps.
on 2010-09-01 00:36
Frank Burleigh wrote: > I've always distrusted the ruby and rails installs on my Mac (oOS X > 10.6.3) -- I've noticed this distrust in a lot of people. Can't see any reason for it myself. Apple's Ruby has always worked fine for me. I'll be installing 1.9.2 and RVM at some point, but until then I'll save my effort and disk space and not build my own Ruby. If that costs me geek brownie points, so be it. :D. > sudo gem cleanup can't seem to get rid of old gem versions > (lots of Gem::InstallError: cannot uninstall). Never seen that. Find and fix the problem instead of just "distrusting" your development environment. Again: Apple's Ruby is perfectly trustworthy. If it's not working for you, the problem is most likely elsewhere (perhaps a reinstallation of Apple's dev tools is in order...). Best, -- Marnen Laibow-Koser http://www.marnen.org firstname.lastname@example.org
on 2010-09-01 00:36
Marnen Laibow-Koser wrote: > Frank Burleigh wrote: >> I've always distrusted the ruby and rails installs on my Mac (oOS X >> 10.6.3) -- [...] Sorry, neglected to notice I was replying to an oldish post. Best, -- Marnen Laibow-Koser http://www.marnen.org email@example.com
on 2011-06-17 08:37
I had the same problem on ubuntu and I guess that's because I first installed ruby using 'sudo apt-get install ruby' -- then I tried rvm which messed up versions and ended up installing multiple versions of ruby components. I did 'sudo apt-get remove ruby' and 'sudo apt-get remove gem' (and did a few more manual clearing). Then, I followed Hartl's tutorial: http://ruby.railstutorial.org/ And now it works!!!