error installing Rubygems during initial RVM installation #516

Closed
mpapis opened this Issue Mar 17, 2013 · 2 comments

Comments

Projects
None yet
3 participants
Contributor

mpapis commented Mar 17, 2013

Forwarding wayneeseguin/rvm#1689 from @a-ryan-reynolds :

Installing rubygems-2.0.3 for ruby-2.0.0-p0........
Error running 'env GEM_PATH=/Users/rreynolds/.rvm/gems/ruby-2.0.0-p0:/Users/rreynolds/.rvm/gems/ruby-2.0.0-p0@global:/Users/rreynolds/.rvm/gems/ruby-2.0.0-p0:/Users/rreynolds/.rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/Users/rreynolds/.rvm/g
ems/ruby-2.0.0-p0 /Users/rreynolds/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -d /Users/rreynolds/.rvm/src/rubygems-2.0.3/setup.rb',                                                                                                                 
please read /Users/rreynolds/.rvm/log/ruby-2.0.0-p0/rubygems.install.log
Installation of rubygems did not complete successfully.
➜  ~  cat /Users/rreynolds/.rvm/log/ruby-2.0.0-p0/rubygems.install.log    
[2013-03-17 15:59:09] /Users/rreynolds/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
Exception `LoadError' at /Users/rreynolds/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/rubygems.rb:1073 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /Users/rreynolds/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/rubygems.rb:1082 - cannot load such file -- rubygems/defaults/ruby
ERROR:  While executing gem ... (ArgumentError)
    invalid byte sequence in US-ASCII
RubyGems 2.0.3 installed
Parsing documentation for rubygems-2.0.3
Installing ri documentation for rubygems-2.0.3

Am on rvm 1.18.21, Mac OS X 10.8.2, XCode 4.6.1.

Owner

drbrain commented Mar 17, 2013

@mpapis reports that rvm runs:

cd /path/to/rubygems/src/
GEM_PATH="$GEM_PATH:${GEM_PATH%%@*}@global" GEM_HOME="$GEM_HOME"  /path/to/ruby -d /path/to/rubygems/src/setup.rb

+1 on a clean RVM and Brew install on OSX Lion.

@drbrain drbrain added a commit that referenced this issue Mar 27, 2013

@drbrain drbrain Test SetupCommand#show_release_notes
Part of #516
35940c2

drbrain closed this in 9fb90c0 Mar 27, 2013

@drbrain drbrain added a commit that referenced this issue Apr 4, 2013

@drbrain drbrain Extract release note display into its own method
Part of #516
d25c6d9

@drbrain drbrain added a commit that referenced this issue Apr 4, 2013

@drbrain drbrain Test SetupCommand#show_release_notes
Part of #516
0a7a2fd

@drbrain drbrain added a commit that referenced this issue Apr 4, 2013

@drbrain drbrain Use UTF-8 when reading history for release notes
Since History.txt is a UTF-8 file it must be read as UTF-8 content.
Otherwise string operations do not work.

While this is harmless as RubyGems was installed by this point, it is
confusing to users.

Fixes #516
657a7f2

@drbrain drbrain added a commit that referenced this issue Jun 27, 2013

@drbrain drbrain Test SetupCommand#show_release_notes
Part of #516
e4e9294

@drbrain drbrain added a commit that referenced this issue Jun 27, 2013

@drbrain drbrain Use UTF-8 when reading history for release notes
Since History.txt is a UTF-8 file it must be read as UTF-8 content.
Otherwise string operations do not work.

While this is harmless as RubyGems was installed by this point, it is
confusing to users.

Fixes #516
1e3d5dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment