Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundler in setup_command causes problems with rvm #1679

Closed
Hanmac opened this issue Aug 1, 2016 · 18 comments
Closed

Bundler in setup_command causes problems with rvm #1679

Hanmac opened this issue Aug 1, 2016 · 18 comments

Comments

@Hanmac
Copy link

Hanmac commented Aug 1, 2016

hi i am doing rvm reinstall ruby-head to rebuild my ruby again, but i got problems which i can narrow to this commit: 19a4b10

i causes this log output:

ruby-head - #installing rubygems-0b6befedc9ef63b20d4264de081fca5a6d8ac018.
Error running 'env GEM_HOME=/usr/local/rvm/gems/ruby-head@global GEM_PATH= /usr/local/rvm/rubies/ruby-head/bin/ruby -d /usr/local/rvm/src/rubygems-0b6befedc9ef63b20d4264de081fca5a6d8ac018/setup.rb --no-document',
showing last 15 lines of /usr/local/rvm/log/1470068129_ruby-head/rubygems.install.log
[2016-08-01 18:22:38] /usr/local/rvm/rubies/ruby-head/bin/ruby
current path: /usr/local/rvm/src/rubygems-0b6befedc9ef63b20d4264de081fca5a6d8ac018
GEM_HOME=/usr/local/rvm/gems/ruby-head
PATH=/usr/local/rvm/gems/ruby-head/bin:/usr/local/rvm/gems/ruby-head@global/bin:/usr/local/rvm/rubies/ruby-head/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
GEM_PATH=/usr/local/rvm/gems/ruby-head:/usr/local/rvm/gems/ruby-head@global
command(7): env GEM_HOME=/usr/local/rvm/gems/ruby-head@global GEM_PATH= /usr/local/rvm/rubies/ruby-head/bin/ruby -d /usr/local/rvm/src/rubygems-0b6befedc9ef63b20d4264de081fca5a6d8ac018/setup.rb --no-document
Exception `LoadError' at /usr/local/rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems.rb:1344 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /usr/local/rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems.rb:1353 - cannot load such file -- rubygems/defaults/ruby
Exception `Gem::MissingSpecError' at /usr/local/rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems/dependency.rb:308 - Gem::MissingSpecError
ERROR:  While executing gem ... (Errno::ENOENT)
    No such file or directory @ dir_chdir - bundler/lib

updating rvm or ruby itself does not seems to solve the problem.

@asvechkar
Copy link

ruby-head - #removing old rubygems.........
ruby-head - #installing rubygems-0b6befedc9ef63b20d4264de081fca5a6d8ac018.
Error running 'env GEM_HOME=/home/deploy/.rvm/gems/ruby-head@global GEM_PATH= /home/deploy/.rvm/rubies/ruby-head/bin/ruby -d /home/deploy/.rvm/src/rubygems-0b6befedc9ef63b20d4264de081fca5a6d8ac018/setup.rb --no-document',
showing last 15 lines of /home/deploy/.rvm/log/1470088636_ruby-head/rubygems.install.log
[2016-08-02 01:02:41] /home/deploy/.rvm/rubies/ruby-head/bin/ruby
current path: /home/deploy/.rvm/src/rubygems-0b6befedc9ef63b20d4264de081fca5a6d8ac018
GEM_HOME=/home/deploy/.rvm/gems/ruby-2.0.0-p353
PATH=/home/deploy/.rvm/gems/ruby-2.0.0-p353/bin:/home/deploy/.rvm/gems/ruby-2.0.0-p353@global/bin:/home/deploy/.rvm/rubies/ruby-2.0.0-p353/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/deploy/.rvm/bin:/home/deploy/.rvm/bin
GEM_PATH=/home/deploy/.rvm/gems/ruby-2.0.0-p353:/home/deploy/.rvm/gems/ruby-2.0.0-p353@global
command(7): env GEM_HOME=/home/deploy/.rvm/gems/ruby-head@global GEM_PATH= /home/deploy/.rvm/rubies/ruby-head/bin/ruby -d /home/deploy/.rvm/src/rubygems-0b6befedc9ef63b20d4264de081fca5a6d8ac018/setup.rb --no-document
Exception LoadError' at /home/deploy/.rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems.rb:1344 - cannot load such file -- rubygems/defaults/operating_system ExceptionLoadError' at /home/deploy/.rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems.rb:1353 - cannot load such file -- rubygems/defaults/ruby
Exception Gem::MissingSpecError' at /home/deploy/.rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems/dependency.rb:308 - Gem::MissingSpecError ERROR: While executing gem ... (Errno::ENOENT) No such file or directory @ dir_chdir - bundler/lib deploy@209354-10001:~$ env GEM_HOME=/home/deploy/.rvm/gems/ruby-head@global GEM_PATH= /home/deploy/.rvm/rubies/ruby-head/bin/ruby -d /home/deploy/.rvm/src/rubygems-0b6befedc9ef63b20d4264de081fca5a6d8ac018/setup.rb --no-document ExceptionLoadError' at /home/deploy/.rvm/rubies/ruby-head/lib/ruby/site_ruby/2.4.0/rubygems.rb:1353 - cannot load such file -- rubygems/defaults/operating_system
Exception LoadError' at /home/deploy/.rvm/rubies/ruby-head/lib/ruby/site_ruby/2.4.0/rubygems.rb:1362 - cannot load such file -- rubygems/defaults/ruby ExceptionGem::MissingSpecError' at /home/deploy/.rvm/rubies/ruby-head/lib/ruby/site_ruby/2.4.0/rubygems/dependency.rb:308 - Gem::MissingSpecError
/home/deploy/.rvm/rubies/ruby-head/bin/ruby: No such file or directory -- setup.rb (LoadError)
deploy@209354-10001:~$

@jfromell
Copy link

Is there any workaround for this issue? Just installed RVM and got this error installing ruby-2.2-head. Tried to run bundle -v afterwards, not working.

@segiddins
Copy link
Member

How are you installing RubyGems?

@Hanmac
Copy link
Author

Hanmac commented Aug 10, 2016

@segiddins who do you mean? we both try to install ruby using rvm, but the change with bundler does causes the install to crash when it does try to install rubygems

@segiddins
Copy link
Member

Right, but as far as I know these changes haven't been upstreamed into Ruby Core yet

@Hanmac
Copy link
Author

Hanmac commented Aug 10, 2016

@segiddins as you can see above i try rvm reinstall ruby-head
to get recent ruby, rvm seems to try to get recent rubygems too.

thats why i seems to be affected by it, even if it's not yet upstreamed into ruby core.

@segiddins
Copy link
Member

How is rvm pulling rubygems and setting it up? Since just running make install from ruby won't do this

@Hanmac
Copy link
Author

Hanmac commented Aug 10, 2016

it happens in the doing when it does try to make a gemset
causing this function to be called:

https://github.com/rvm/rvm/blob/master/scripts/functions/rubygems#L171

and this is the output i got.

ruby-head - #downloading rubygems-a3135463508de3c33b94fc028400c3c04e2ad3f9
ruby-head - #extracting rubygems-a3135463508de3c33b94fc028400c3c04e2ad3f9.....
ruby-head - #removing old rubygems.........
ruby-head - #installing rubygems-a3135463508de3c33b94fc028400c3c04e2ad3f9.
Error running 'env GEM_HOME=/usr/local/rvm/gems/ruby-head@global GEM_PATH= /usr/local/rvm/rubies/ruby-head/bin/ruby -d /usr/local/rvm/src/rubygems-a3135463508de3c33b94fc028400c3c04e2ad3f9/setup.rb --no-document',
showing last 15 lines of /usr/local/rvm/log/1470844147_ruby-head/rubygems.install.log
[2016-08-10 17:55:39] /usr/local/rvm/rubies/ruby-head/bin/ruby
current path: /usr/local/rvm/src/rubygems-a3135463508de3c33b94fc028400c3c04e2ad3f9
GEM_HOME=/usr/local/rvm/gems/ruby-head
PATH=/usr/local/rvm/gems/ruby-head/bin:/usr/local/rvm/gems/ruby-head@global/bin:/usr/local/rvm/rubies/ruby-head/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/rvm/bin
GEM_PATH=/usr/local/rvm/gems/ruby-head:/usr/local/rvm/gems/ruby-head@global
command(7): env GEM_HOME=/usr/local/rvm/gems/ruby-head@global GEM_PATH= /usr/local/rvm/rubies/ruby-head/bin/ruby -d /usr/local/rvm/src/rubygems-a3135463508de3c33b94fc028400c3c04e2ad3f9/setup.rb --no-document
Exception `LoadError' at /usr/local/rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems.rb:1344 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /usr/local/rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems.rb:1353 - cannot load such file -- rubygems/defaults/ruby
Exception `Gem::MissingSpecError' at /usr/local/rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems/dependency.rb:308 - Gem::MissingSpecError
ERROR:  While executing gem ... (Errno::ENOENT)
    No such file or directory @ dir_chdir - bundler/lib

@segiddins
Copy link
Member

It looks like RVM is downloading the tgz from github, which isn't really supported (and is breaking since that doesn't include the necessary bundler submodule)

@madman3
Copy link

madman3 commented Aug 17, 2016

I currently have the exact problem stated above. Is there a solution proposed? @Hanmac, did you figure something out? Would appreciate the help. This is how my output looks like

ruby-2.3-head-rubygems - #installing rubygems-ba332a8e32438df6fa48bb839b4ead2bffd7d42f. Error running 'env GEM_HOME=/Users/Suniltejs/.rvm/gems/ruby-2.3-head-rubygems@global GEM_PATH= /Users/Suniltejs/.rvm/rubies/ruby-2.3-head-rubygems/bin/ruby -d /Users/Suniltejs/.rvm/src/rubygems-ba332a8e32438df6fa48bb839b4ead2bffd7d42f/setup.rb --no-document', showing last 15 lines of /Users/Suniltejs/.rvm/log/1471465748_ruby-2.3-head-rubygems/rubygems.install.log [2016-08-17 22:34:00] /Users/Suniltejs/.rvm/rubies/ruby-2.3-head-rubygems/bin/ruby current path: /Users/Suniltejs/.rvm/src/rubygems-ba332a8e32438df6fa48bb839b4ead2bffd7d42f PATH=/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/local/git/bin:/Users/Suniltejs/.rvm/bin:/opt/local/bin command(7): env GEM_HOME=/Users/Suniltejs/.rvm/gems/ruby-2.3-head-rubygems@global GEM_PATH= /Users/Suniltejs/.rvm/rubies/ruby-2.3-head-rubygems/bin/ruby -d /Users/Suniltejs/.rvm/src/rubygems-ba332a8e32438df6fa48bb839b4ead2bffd7d42f/setup.rb --no-document ExceptionLoadError' at /Users/Suniltejs/.rvm/rubies/ruby-2.3-head-rubygems/lib/ruby/2.3.0/rubygems.rb:1241 - cannot load such file -- rubygems/defaults/operating_system
Exception LoadError' at /Users/Suniltejs/.rvm/rubies/ruby-2.3-head-rubygems/lib/ruby/2.3.0/rubygems.rb:1250 - cannot load such file -- rubygems/defaults/ruby ExceptionLoadError' at /Users/Suniltejs/.rvm/rubies/ruby-2.3-head-rubygems/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 - cannot load such file -- did_you_mean
Exception LoadError' at /Users/Suniltejs/.rvm/rubies/ruby-2.3-head-rubygems/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:132 - cannot load such file -- did_you_mean ERROR: While executing gem ... (Errno::ENOENT) No such file or directory @ dir_chdir - bundler/lib

@Hanmac
Copy link
Author

Hanmac commented Aug 17, 2016

@madman3: no, not yet.

I think we need to notify @rvm that's their fault.

@madman3
Copy link

madman3 commented Aug 17, 2016

I actually just wanted a ruby version that was 2+. So, I ended up removing all the rubies I had and just installed ruby 2.2

@bronzdoc
Copy link
Member

Closing since this is not a rubygems problem.

@havenwood
Copy link
Contributor

Should support for RubyGems installation from the shipped tarball really be dropped?

@havenwood
Copy link
Contributor

I'm being told the Github autogenerated tarball wasn't ever meant for installation so that answers my question. It's interesting that it's been installed from the Github release by RVM for years and seemingly worked.

@indirect
Copy link
Member

@havenwood RubyGems has always been released and distributed as a gem. We do not create those tarballs ourselves, and they are not official releases. If RVM decides they want to use GitHub tarballs, they are of course able to do that, but we aren't going to suddenly start supporting GitHub tarballs now just because RVM is having problems with them. Sorry. :/

@goldWave
Copy link

i have got the same issues With use " rvm install ruby-head"

No checksum for downloaded archive, recording checksum in user configuration.
ruby-head - #extracting rubygems-78bc3b8a6816a74a82e617a0fd65777816d844af - please wait
ruby-head - #removing old rubygems - please wait
ruby-head - #installing rubygems-78bc3b8a6816a74a82e617a0fd65777816d844af - please wait
Error running 'env GEM_HOME=/Users/zhangxiaoping/.rvm/gems/ruby-head@global GEM_PATH= /Users/zhangxiaoping/.rvm/rubies/ruby-head/bin/ruby -d /Users/zhangxiaoping/.rvm/src/rubygems-78bc3b8a6816a74a82e617a0fd65777816d844af/setup.rb --no-document',
showing last 15 lines of /Users/zhangxiaoping/.rvm/log/1481706381_ruby-head/rubygems.install.log
Exception LoadError' at /Users/zhangxiaoping/.rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems.rb:1345 - cannot load such file -- rubygems/defaults/operating_system Exception LoadError' at /Users/zhangxiaoping/.rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems.rb:1354 - cannot load such file -- rubygems/defaults/ruby
Exception `Gem::MissingSpecError' at /Users/zhangxiaoping/.rvm/rubies/ruby-head/lib/ruby/2.4.0/rubygems/dependency.rb:308 - Gem::MissingSpecError
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory @ dir_chdir - bundler/lib

@drbrain
Copy link
Member

drbrain commented Dec 15, 2016

You need to tell @rvm to use official tarballs when installing RubyGems.

@rubygems rubygems locked and limited conversation to collaborators Dec 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants