Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

error installing Rubygems during initial RVM installation #1689

Closed
mus0u opened this Issue Mar 17, 2013 · 12 comments

Comments

Projects
None yet
6 participants

mus0u commented Mar 17, 2013

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

mpapis commented Mar 17, 2013

forwarder to rubygems, as a temporary solution try:

echo ${LANG:-empty}
export LANG=en_US.utf-8

closing as this is most likely not RVM caused problem and should be fixed in rubygems shortly.

@mpapis mpapis closed this Mar 17, 2013

mus0u commented Mar 17, 2013

That totally fixed it. Thank you so much for the quick response, was not expecting a reply so soon!

@mpapis mpapis reopened this Apr 29, 2013

@mpapis mpapis closed this in 4a109e4 Apr 29, 2013

@mpapis I had to do both:

export LANG=en_US.utf-8
export LC_ALL=en_US.utf-8

to get things up and running on Ubuntu 13.04 x64 ( clean install ).

Found on:
http://stackoverflow.com/a/14840029/619659

which refers to:
bundler/bundler#1570

Owner

mpapis commented Jun 7, 2013

@webdevotion so to be perfectly clear about this, setting just LANG is not enough and you needed to set LC_ALL too to make it work as expected?

That is correct.

Upon trying to install PG on my system I got the following warning. I thought it might be relevant for this discussion.

perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Owner

mpapis commented Jun 7, 2013

yea, your system should be set properly for language, which means all the above variables have to be set properly, if they are not then your system is not configured properly

Happened on a clean install of Ubuntu 13.04, so I guess I'll have to inform them. Thanks @mpapis.

Contributor

envygeeks commented Jun 8, 2013

The error you are having is an edge case on Ubuntu if it is Ubuntu's fault, are you sure you didn't accidently remove some packages that are needed or can you check over your install.log and ensure that no errors happened. I know for some people it does not install all the locale files because they do not have the internet available at install time, this could be that problem but it should prompt you to fix it on every login.

Owner

mpapis commented Jun 8, 2013

maybe rvm could detect few of the most important variables and add a warning/error during installation/update?

nterry commented Jul 1, 2013

I agree, a check with a warning, at least

Owner

mpapis commented Jul 1, 2013

@nterry please open a new ticket requesting this (this ticked was finished in rvm-1.20 and we are already in rvm-1.21)

@pkuczynski pkuczynski added help and removed support labels Oct 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment