Closed Hanmac closed 6 years ago
I am kind of puzzled by the lack of reaction. In the thread that @Hanmac has linked to, the "installing rubygems" problem has been confirmed by many people, and a member of the RubyGems team has stated:
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) https://github.com/rubygems/rubygems/issues/1679#issuecomment-238919896
running rvm get head
created the gemset
ruby-2.3-head - #gemset created /Users/xn/.rvm/gems/ruby-2.3-head
ruby-2.3-head - #importing gemsetfile /Users/xn/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.3-head - #generating default wrappers..............
rvm use ruby-2.3-head
then worked.
@xn Humm, that didn't work for me. El Cap 10.11.6
rvm implode
Wiped out all the rvm stuff in my dotfiles, rebooted
\curl -sSL https://get.rvm.io | bash
rvm get head
rvm --version
rvm 1.27.0 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
🌶 ~ 15:34$ rvm install ruby-2.3-head
Warning! Requested ruby installation which requires another ruby available - installing ruby-2 first.
Checking requirements for osx.
Updating certificates in '/usr/local/etc/openssl/cert.pem'.
Requirements installation successful.
Installing Ruby from source to: /Users/jpd800/.rvm/rubies/ruby-2.3.1, this may take a while depending on your cpu(s)...
ruby-2.3.1 - #downloading ruby-2.3.1, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13.7M 100 13.7M 0 0 2919k 0 0:00:04 0:00:04 --:--:-- 4273k
ruby-2.3.1 - #extracting ruby-2.3.1 to /Users/jpd800/.rvm/src/ruby-2.3.1....
ruby-2.3.1 - #configuring...........................................................
ruby-2.3.1 - #post-configuration.
ruby-2.3.1 - #compiling..............................................................
ruby-2.3.1 - #installing.........
ruby-2.3.1 - #making binaries executable..
Installed rubygems 2.5.1 is newer than 2.4.8 provided with installed ruby, skipping installation, use --force to force installation.
ruby-2.3.1 - #gemset created /Users/jpd800/.rvm/gems/ruby-2.3.1@global
ruby-2.3.1 - #importing gemset /Users/jpd800/.rvm/gemsets/global.gems...............................................
ruby-2.3.1 - #generating global wrappers........
ruby-2.3.1 - #gemset created /Users/jpd800/.rvm/gems/ruby-2.3.1
ruby-2.3.1 - #importing gemsetfile /Users/jpd800/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.3.1 - #generating default wrappers........
ruby-2.3.1 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.3.1 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/jpd800/.rvm/rubies/ruby-2.3-head, this may take a while depending on your cpu(s)...
Cloning from https://github.com/ruby/ruby.git, this may take a while depending on your connection.
HEAD is now at 7070c5b * doc/extension.ja.rdoc: Fix file name. [ci skip]
Branch ruby_2_3 set up to track remote branch ruby_2_3 from origin.
Switched to a new branch 'ruby_2_3'
git checkout ruby_2_3
Copying from repo to src path...
ruby-2.3-head - #autoreconf.
ruby-2.3-head - #configuring...........................................................
ruby-2.3-head - #post-configuration.
ruby-2.3-head - #compiling..................................................................................................|
ruby-2.3-head - #installing........
ruby-2.3-head - #making binaries executable..
ruby-2.3-head - #downloading rubygems-35af1a72e20c99f8640e5b0c3f823a579e632da5
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 159 0 159 0 0 190 0 --:--:-- --:--:-- --:--:-- 190
100 475k 0 475k 0 0 266k 0 --:--:-- 0:00:01 --:--:-- 1827k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.3-head - #extracting rubygems-35af1a72e20c99f8640e5b0c3f823a579e632da5....
ruby-2.3-head - #removing old rubygems.........
ruby-2.3-head - #installing rubygems-35af1a72e20c99f8640e5b0c3f823a579e632da5.
Error running 'env GEM_HOME=/Users/jpd800/.rvm/gems/ruby-2.3-head@global GEM_PATH= /Users/jpd800/.rvm/rubies/ruby-2.3-head/bin/ruby -d /Users/jpd800/.rvm/src/rubygems-35af1a72e20c99f8640e5b0c3f823a579e632da5/setup.rb --no-document',
showing last 15 lines of /Users/jpd800/.rvm/log/1473971921_ruby-2.3-head/rubygems.install.log
[2016-09-15 15:44:56] /Users/jpd800/.rvm/rubies/ruby-2.3-head/bin/ruby
current path: /Users/jpd800/.rvm/src/rubygems-35af1a72e20c99f8640e5b0c3f823a579e632da5
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/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin::/Users/jpd800/.rvm/bin
command(7): env GEM_HOME=/Users/jpd800/.rvm/gems/ruby-2.3-head@global GEM_PATH= /Users/jpd800/.rvm/rubies/ruby-2.3-head/bin/ruby -d /Users/jpd800/.rvm/src/rubygems-35af1a72e20c99f8640e5b0c3f823a579e632da5/setup.rb --no-document
Exception `LoadError' at /Users/jpd800/.rvm/rubies/ruby-2.3-head/lib/ruby/2.3.0/rubygems.rb:1241 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /Users/jpd800/.rvm/rubies/ruby-2.3-head/lib/ruby/2.3.0/rubygems.rb:1250 - cannot load such file -- rubygems/defaults/ruby
Exception `LoadError' at /Users/jpd800/.rvm/rubies/ruby-2.3-head/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 - cannot load such file -- did_you_mean
Exception `LoadError' at /Users/jpd800/.rvm/rubies/ruby-2.3-head/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
install ruby first then get head and that repairs it. You'll have to install bundler afterwards if I recall correctly.
for now you can use --rubygems 2.6.6
or --rubygems ignore
to avoid this problem
I'm not able to get build latest ruby-head in RVM either, and haven't been able to for weeks. Works fine outside rvm.
@noahgibbs did you try the ignore
flag from above? => rvm install ruby-head --rubygems ignore
?
I got it to work with --rubygems 2.6.6. Didn't try ignore.
--rubygems ignore
worked for me.
Does #4288 fix the problem? Can anyone check?
unfortunately this is a different problem :( I will work on it separately
running
rvm get head
created the gemsetruby-2.3-head - #gemset created /Users/xn/.rvm/gems/ruby-2.3-head ruby-2.3-head - #importing gemsetfile /Users/xn/.rvm/gemsets/default.gems evaluated to empty gem list ruby-2.3-head - #generating default wrappers..............
rvm use ruby-2.3-head
then worked.
Eight years on and this still works. Thank you @xn!
Posting terminal logs for posterity's sake:
null@MacBook-Pro ~ % rvm install ruby-head
Warning! Requested ruby installation which requires another ruby available - installing ruby-2 first.
TruffleRuby does not support arm64 currently.
TruffleRuby does not support arm64 currently.
Checking requirements for osx.
Installing requirements for osx.
Updating system - please wait
Installing required packages: openssl - please wait
Certificates bundle '/opt/homebrew/etc/openssl@3/cert.pem' is already up to date.
Requirements installation successful.
TruffleRuby does not support arm64 currently.
truffleruby-20.3.0 - #downloading truffleruby-20.3.0-macos-, this may take a while depending on your connection...
truffleruby-20.3.0 - #extracting truffleruby-20.3.0-macos- to /Users/null/.rvm/src/truffleruby-20.3.0 - please wait
Error running '__rvm_package_extract /Users/null/.rvm/archives/truffleruby-20.3.0-macos-.tar.gz /Users/null/.rvm/tmp/rvm_src_66855',
please read /Users/null/.rvm/log/1725637708_truffleruby-20.3.0/extract.log
There has been an error while trying to extract the source. Halting the installation.
To proceed rvm requires a ruby-2 compatible ruby is installed.
We attempted to install it automatically but it failed with status 1.
Please install it manually (or a compatible alternative) to proceed.
null@MacBook-Pro ~ % rvm get head
Downloading https://get.rvm.io
Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
Verifying /Users/null/.rvm/archives/rvm-installer.asc
gpg: Signature made Tue Feb 21 17:35:16 2023 CST
gpg: using RSA key <omitted>
gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: <omitted>
GPG verified '/Users/null/.rvm/archives/rvm-installer'
Downloading https://github.com/rvm/rvm/archive/master.tar.gz
Upgrading the RVM installation in /Users/null/.rvm/
RVM PATH line found in /Users/null/.mkshrc /Users/null/.profile /Users/null/.bashrc /Users/null/.zshrc.
RVM sourcing line found in /Users/null/.profile /Users/null/.bash_profile /Users/null/.zlogin.
Upgrade of RVM in /Users/null/.rvm/ is complete.
* It looks like some old stuff is laying around RVM, you can cleanup with: rvm cleanup all
Thanks for installing RVM 🙏
Please consider donating to our open collective to help us maintain RVM.
👉 Donate: https://opencollective.com/rvm/donate
RVM reloaded!
null@MacBook-Pro ~ % rvm install ruby-head
Warning! Requested ruby installation which requires another ruby available - installing ruby-3 first.
Checking requirements for osx.
Certificates bundle '/opt/homebrew/etc/openssl@3/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/null/.rvm/rubies/ruby-3.4.0-preview1, this may take a while depending on your cpu(s)...
ruby-3.4.0-preview1 - #downloading ruby-3.4.0-preview1, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21.4M 100 21.4M 0 0 6711k 0 0:00:03 0:00:03 --:--:-- 6711k
ruby-3.4.0-preview1 - #extracting ruby-3.4.0-preview1 to /Users/null/.rvm/src/ruby-3.4.0-preview1 - please wait
ruby-3.4.0-preview1 - #autogen.sh - please wait
ruby-3.4.0-preview1 - #configuring - please wait
ruby-3.4.0-preview1 - #post-configuration - please wait
ruby-3.4.0-preview1 - #compiling - please wait
ruby-3.4.0-preview1 - #installing - please wait
ruby-3.4.0-preview1 - #making binaries executable - please wait
Installed rubygems 3.6.0.dev is newer than 3.0.9 provided with installed ruby, skipping installation, use --force to force installation.
ruby-3.4.0-preview1 - #gemset created /Users/null/.rvm/gems/ruby-3.4.0-preview1@global
ruby-3.4.0-preview1 - #importing gemset /Users/null/.rvm/gemsets/global.gems - please wait
ruby-3.4.0-preview1 - #generating global wrappers - please wait
ruby-3.4.0-preview1 - #gemset created /Users/null/.rvm/gems/ruby-3.4.0-preview1
ruby-3.4.0-preview1 - #importing gemsetfile /Users/null/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-3.4.0-preview1 - #generating default wrappers - please wait
ruby-3.4.0-preview1 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-3.4.0-preview1 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
Checking requirements for osx.
Certificates bundle '/opt/homebrew/etc/openssl@3/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/null/.rvm/rubies/ruby-head, this may take a while depending on your cpu(s)...
Cloning from https://github.com/ruby/ruby.git, this may take a while depending on your connection - please wait
HEAD is now at 30176e3f23 [rubygems/rubygems] Ensure that the lock file will be removed
From https://github.com/ruby/ruby
* branch master -> FETCH_HEAD
Already up to date.
git checkout master
Copying from repo to src path...
ruby-head - #autogen.sh - please wait
ruby-head - #configuring - please wait
ruby-head - #post-configuration - please wait
ruby-head - #compiling - please wait
ruby-head - #installing - please wait
ruby-head - #making binaries executable - please wait
Installed rubygems 3.6.0.dev is newer than ignore provided with installed ruby, skipping installation, use --force to force installation.
ruby-head - #gemset created /Users/null/.rvm/gems/ruby-head@global
ruby-head - #importing gemset /Users/null/.rvm/gemsets/global.gems - please wait
ruby-head - #generating global wrappers - please wait
ruby-head - #gemset created /Users/null/.rvm/gems/ruby-head
ruby-head - #importing gemsetfile /Users/null/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-head - #generating default wrappers - please wait
ruby-head - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-head - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
null@MacBook-Pro ~ %
rvm does try to install rubygems wrong. it now has a repository with bundler inside. (as submodule) but with how rvm does download it with the tgz way, it does miss it.
probably the easiest way would be to download bundler too.
For more infomation checkout: https://github.com/rubygems/rubygems/issues/1679