mugo#mugo-ThinkPad-X240:~$ rvm install 2.7.4 --default
ruby-2.7.4 - #removing src/ruby-2.7.4..
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/22.04/x86_64/ruby-2.7.4.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /usr/share/rvm/rubies/ruby-2.7.4, this may take a while depending on your cpu(s)...
ruby-2.7.4 - #downloading ruby-2.7.4, this may take a while depending on your connection...
ruby-2.7.4 - #extracting ruby-2.7.4 to /usr/share/rvm/src/ruby-2.7.4.....
ruby-2.7.4 - #configuring........................................................................
ruby-2.7.4 - #post-configuration..
ruby-2.7.4 - #compiling..........................................|
..............................................................................................................................................
Error running '__rvm_make -j4',
please read /usr/share/rvm/log/1668239441_ruby-2.7.4/make.log
There has been an error while running make. Halting the installation.
I am trying to install Ruby 2.7.4 and I expected Ruby to download after using the command rvm install 2.7.4 --default but in vain.
Related
I'm running OSX (10.12.3) and I have Ruby installed (2.2.2) which is working fine. I'm trying to upgrade to 2.2.6 using RVM. Install seems to go fine.
- rvm install 2.2.6
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.12/x86_64/ruby-2.2.6.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
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: /location/.rvm/rubies/ruby-2.2.6, this may take a while depending on your cpu(s)...
ruby-2.2.6 - #downloading ruby-2.2.6, this may take a while depending on your connection...
ruby-2.2.6 - #extracting ruby-2.2.6 to /location/.rvm/src/ruby-2.2.6....
ruby-2.2.6 - #configuring..........................................................
ruby-2.2.6 - #post-configuration.
ruby-2.2.6 - #compiling...........................................................
ruby-2.2.6 - #installing..........
ruby-2.2.6 - #making binaries executable..
ruby-2.2.6 - #downloading rubygems-2.6.10
ruby-2.2.6 - #extracting rubygems-2.6.10.....
ruby-2.2.6 - #removing old rubygems.........
$LANG was empty, setting up LANG=en_US, if it fails again try setting LANG to something sane and try again.
ruby-2.2.6 - #installing rubygems-2.6.10.....................
ruby-2.2.6 - #gemset created /location/.rvm/gems/ruby-2.2.6#global
ruby-2.2.6 - #importing gemset /location/.rvm/gemsets/global.gems................................................
ruby-2.2.6 - #generating global wrappers........
ruby-2.2.6 - #gemset created /location/.rvm/gems/ruby-2.2.6
ruby-2.2.6 - #importing gemsetfile /location/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.2.6 - #generating default wrappers........
ruby-2.2.6 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.2.6 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
But when I try following commands, I'll get some errors.
- bundle
-bash: bundle: command not found
- gem install bundler
ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
So while installation seems to go fine, it can't require openssl when trying to install any gem. What might be the issue here and how could I fix it?
I tried purging whole RVM and a clean reinstall, which didn't help. Using the answer by phq from here I managed to get it working.
rvm remove 2.2.6
rvm pkg install openssl
rvm install 2.2.6 --with-openssl-dir=$HOME/.rvm/usr
gem install bundler
bundle
It's probably not the best solution as it manually loads openssl, but it seems to currently be the only solution that works for me.
If you still don't have Homebrew installed, you should go ahead and give it a try. As they say, "Homebrew installs the stuff you need that Apple didn’t," which in your case is openssl.
Install Homebrew: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install openssl: brew install openssl
Try installing bundler again: gem install bundler
To avoid problems in the future, I suggest you take a look at RVM Autolibs. It automatically installs any dependency you need using Homebrew or other manager. If you don't wanna read the documentation, just run: rvm autolibs enable && rvm autolibs packages && rvm autolibs homebrew and you'll be fine.
Just trying to get through some parts of the Hartl rails tutorial to familiarize myself with the rails framework. I have homebrew installed (removed and reinstalled it because it giving me trouble after using El Capitan), and got a fresh version of rvm with rvm get stable
I went into the directory containing the project, and I got this message
ruby-2.3.0-dev is not installed.
To install do: 'rvm install ruby-2.3.0-dev'
Previously, I'd tried using 2.3.0 as the latest version (it was the newest thing showing up when I ran rvm list, not sure why), but now I want to change that to 2.3.1. Anybody know how I can change the ruby version for this project?
Additionally, when I run rvm install ruby-2.3.1 , I get this error
No binary rubies available for: osx/10.11/x86_64/ruby-2.3.1.
This led me to trying to reinstall homebrew, update my version of rvm, etc. I tried all of that and am still getting this error message.
The whole reason this happened is because I tried executing a test with
$ bundle exec rake test
I got this message
RubyDep: WARNING: Your Ruby is outdated/buggy. (To disable warnings, set RUBY_DEP_GEM_SILENCE_WARNINGS=1)
RubyDep: WARNING: Your Ruby is: 2.3.0 (buggy). Recommendation: install 2.3.1.
Haven't been able to install 2.3.1 and I'm just losing my mind here.
edit - Does one recommend installing directly from source instead of using binaries?
I've reproduced your steps in my Mac laptop running OS X El Capitan. Executing the command rvm install 2.3.1 I got the same error as you, but after that rvm kept on executing the command and eventually downloaded and installed the binaries of Ruby 2.3.1. My output was like this:
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/x86_64/ruby-2.3.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
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/user/.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 5854k 0 0:00:02 0:00:02 --:--:-- 5855k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.3.1 - #extracting ruby-2.3.1 to /Users/user/.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/user/.rvm/gems/ruby-2.3.1#global
ruby-2.3.1 - #importing gemset /Users/user/.rvm/gemsets/global.gems...............................................
ruby-2.3.1 - #generating global wrappers........
ruby-2.3.1 - #gemset created /Users/user/.rvm/gems/ruby-2.3.1
ruby-2.3.1 - #importing gemsetfile /Users/user/.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
After that I executed rvm use 2.3.1 and ruby -v and the output of the last command was:
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
So I could successfully install Ruby 2.3.1 on Mac OS X El Capitan. Please provide further information if this cannot help solving your problem.
I have a new OS 10.10.5 installed on my Mac which has a default ruby-2.0.0p481. However, I need ruby-1.9.3-p551 for specific reasons of our system. When I am trying to install ruby-1.9.3-p551 using RVM 1.26.11, I am getting the following error.
Error for rvm install 1.9.3
I also tried running "rvm install 1.9.3 --with-gcc=clang", but that too gave me an error as under.
Error for rvm install 1.9.3 --with-gcc=clang
I tried for searching ruby-1.9.3-p551.tar.bz2 binary file on mirror binaries and at other places but even that did not worked for me. Any help or pointers will be great.
Thank You :)
I tried "rvm get master" and the output is as under.
aparmar-mbpr:~ aparmar$ rvm get master
Downloading https://get.rvm.io
No GPG software exists to validate rvm-installer, skipping.
Downloading https://github.com/rvm/rvm/archive/master.tar.gz
Upgrading the RVM installation in /Users/aparmar/.rvm/
RVM PATH line found in /Users/aparmar/.mkshrc /Users/aparmar/.profile /Users/aparmar/.bashrc /Users/aparmar/.zshrc.
RVM sourcing line found in /Users/aparmar/.profile /Users/aparmar/.bash_profile /Users/aparmar/.zlogin.
Upgrade of RVM in /Users/aparmar/.rvm/ is complete.
# Ashish.Parmar,
#
# Thank you for using RVM!
# We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.
In case of problems: http://rvm.io/help and https://twitter.com/rvm_io
Upgrade Notes:
* No new notes to display.
RVM reloaded!
aparmar-mbpr:~
After this I did rvm reinstall 1.9.3 and I got the same previous error
aparmar-mbpr:~ aparmar$ rvm reinstall 1.9.3
ruby-1.9.3-p551 - #removing src/ruby-1.9.3-p551..
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.10/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
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/aparmar/.rvm/rubies/ruby-1.9.3-p551, this may take a while depending on your cpu(s)...
ruby-1.9.3-p551 - #downloading ruby-1.9.3-p551, this may take a while depending on your connection...
ruby-1.9.3-p551 - #extracting ruby-1.9.3-p551 to /Users/aparmar/.rvm/src/ruby-1.9.3-p551....
ruby-1.9.3-p551 - #applying patch /Users/aparmar/.rvm/patches/ruby/GH-488.patch.
ruby-1.9.3-p551 - #applying patch /Users/aparmar/.rvm/patches/ruby/1.9.3/CVE-2015-1855-p484.patch.
ruby-1.9.3-p551 - #configuring...............................................
ruby-1.9.3-p551 - #post-configuration.
ruby-1.9.3-p551 - #compiling...........................................................................................................................................|
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/aparmar/.rvm/log/1448483473_ruby-1.9.3-p551/make.log
ossl_str_adjust(str, p);
^
ruby_missing.h:32:14: error: 'struct RString' has no member named 'len'
RSTRING(str)->len = (length); \
^
ossl.h:137:5: note: in expansion of macro 'rb_str_set_len'
rb_str_set_len((str), newlen);\
^
ossl_asn1.c:1336:5: note: in expansion of macro 'ossl_str_adjust'
ossl_str_adjust(str, p);
^
make[2]: *** [ossl_asn1.o] Error 1
make[1]: *** [ext/openssl/all] Error 2
make: *** [build-ext] Error 2
++ return 2
There has been an error while running make. Halting the installation.
aparmar-mbpr:~ aparmar$
I also tried rvm get head, but after that in the installation of 1.9.3 again I get the same above error
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Installed Ruby 1.9.3 with RVM but command line doesn’t show ruby -v
I try to run this comand
-> sudo rvm install 1.9.3-p194
but this errors appears and the instalation was unsuccessful
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #fetching
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, 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 9610k 100 9610k 0 0 181k 0 0:00:53 0:00:53 --:--:-- 235k
ruby-1.9.3-p194 - #extracting ruby-1.9.3-p194 to /usr/share/ruby-rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #extracted to /usr/share/ruby-rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #configuring
ruby-1.9.3-p194 - #compiling
ruby-1.9.3-p194 - #installing
Removing old Rubygems files...
-e:1: Use RbConfig instead of obsolete and deprecated Config.
Installing rubygems dedicated to ruby-1.9.3-p194...
Retrieving rubygems-latest-1.8
Extracting rubygems-latest-1.8 ...
ERROR: Error running 'gunzip < /usr/share/ruby-rvm/archives/rubygems-latest-1.8.tgz | tar xf - -C /usr/share/ruby-rvm/src', please read /usr/share/ruby-rvm/log/ruby-1.9.3-p194/rubygems.extract.log
Installing rubygems for /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/bin/ruby
ERROR: Error running 'GEM_PATH="/usr/share/ruby-rvm/gems/ruby-1.9.3-p194:/usr/share/ruby-rvm/gems/ruby-1.9.3-p194#global:/usr/share/ruby-rvm/gems/ruby-1.9.3-p194:/usr/share/ruby-rvm/gems/ruby-1.9.3-p194#global" GEM_HOME="/usr/share/ruby-rvm/gems/ruby-1.9.3-p194" "/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/bin/ruby" "/usr/share/ruby-rvm/src/rubygems-latest-1.8/setup.rb"', please read /usr/share/ruby-rvm/log/ruby-1.9.3-p194/rubygems.install.log`
WARN: Installation of rubygems did not complete successfully.
ruby-1.9.3-p194 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p194 - #importing default gemsets (/usr/share/ruby-rvm/gemsets/)
Install of ruby-1.9.3-p194 - #complete
first of all why do you use sudo command before rvm? this link will help you in that rvm.io/rubies/rubygems . I don't thing that you have to use sudo.
Also you can look into this question error while installing ruby 1.9.3 using rvm
Also 'rvm install ruby' will install you latest stable version of ruby.
You are using an very old version of RVM that is packaged with Ubuntu, make sure to follow instructions from this answer https://stackoverflow.com/a/9056395/497756 - gunzip is no more used in RVM so this problem should be fixed.
I'm a beginner ror programmer with a macbook air. i've just managed to upgrade my leopard to Lion. Downloaded codex 10.7 and macport and also RVM. The thing i'm trying to do now is to update my ruby from 1.8.7 to 1.9.3 but this is what i got:
I typed out: 'rvm install ruby-1.9.2-p318"
Annie-Tungs-MacBook-Air:~ annietung$ rvm install ruby-1.9.2-p318 Fetching yaml-0.1.4.tar.gz to /Users/annietung/.rvm/archives Extracting yaml-0.1.4.tar.gz to /Users/annietung/.rvm/src Configuring yaml in /Users/annietung/.rvm/src/yaml-0.1.4. Error running ' ./configure --prefix="/Users/annietung/.rvm/usr" ', please read /Users/annietung/.rvm/log/ruby-1.9.2-p318/yaml/configure.log Compiling yaml in /Users/annietung/.rvm/src/yaml-0.1.4. Error running 'make ', please read /Users/annietung/.rvm/log/ruby-1.9.2-p318/yaml/make.log
Database file /Users/annietung/.rvm/config/packages does not exist.
Installing Ruby from source to: /Users/annietung/.rvm/rubies/ruby-1.9.2-p318, this may take a while depending on your cpu(s)...
ruby-1.9.2-p318 - #fetching ruby-1.9.2-p318 - #extracted to /Users/annietung/.rvm/src/ruby-1.9.2-p318 (already extracted) ruby-1.9.2-p318 - #configuring Error running ' ./configure --prefix=/Users/annietung/.rvm/rubies/ruby-1.9.2-p318 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/annietung/.rvm/usr ', please read /Users/annietung/.rvm/log/ruby-1.9.2-p318/configure.log There has been an error while running configure. Halting the installation. ls: /Users/annietung/.rvm/rubies/*/bin/ruby: No such file or directory Annie-Tungs-MacBook-Air:~ annietung$
Looks like you need to download and install Apple's Command Line Tools for OSX Lion so that you can build Ruby properly.