I am new to ruby and I am trying to update to the latest stable version of ruby using rvm. I get the following error message:
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/osx/10.8/x86_64/ruby-2.1.2.tar.bz2
Checking requirements for osx.
Installing requirements for osx.
Updating system......
Error running 'requirements_osx_brew_update_system ruby-2.1.2',
showing last 15 lines of /Users/...../.rvm/log/1403454982_ruby-2.1.2/update_system.log
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.'
++ rvm_pretty_print stderr
++ case "${rvm_pretty_print_flag:=auto}" in
++ case "${TERM:-dumb}" in
++ case "$1" in
++ [[ -t 2 ]]
++ return 1
++ printf %b 'Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.\n'
Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.
++ return 1
Requirements installation failed with status: 1.
unknown:~ $
As far as I know I have rvm and homebrew installed. The following command line gives a completely different message.
unknown:~ ...........$ \curl -sSL https://get.rvm.io | bash -s stable --ruby --auto-dotfiles
Turning on auto dotfiles mode.
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
Upgrading the RVM installation in /Users/........./.rvm/
Removing rvm PATH line from /Users/........./.profile /Users/........./.zshrc.
Adding rvm PATH line to /Users/........./.profile /Users/........../.bashrc /Users/........./.zshrc.
touch: /Users/........../.bashrc: Permission denied
/Users/........./.rvm/src/rvm/scripts/functions/installer: line 1107: /Users/......../.bashrc: Permission denied
Removing rvm loading line from /Users/......../.bash_profile /Users/......./.zlogin.
Adding rvm loading line to /Users/......./.bash_profile /Users/......./.zlogin.
Upgrade of RVM in /Users/......../.rvm/ is complete.
# ,
#
# 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 1.25.27 (stable) by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <mpapis#gmail.com> [https://rvm.io/]
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/osx/10.8/x86_64/ruby-2.1.2.tar.bz2
Checking requirements for osx.
Installing requirements for osx.
Updating system......
Error running 'requirements_osx_brew_update_system ruby-2.1.2',
showing last 15 lines of /Users/........../.rvm/log/1403455327_ruby-2.1.2/update_system.log
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.'
++ /scripts/functions/logging : rvm_error() 115 > rvm_pretty_print stderr
++ /scripts/functions/logging : rvm_pretty_print() 73 > case "${rvm_pretty_print_flag:=auto}" in
++ /scripts/functions/logging : rvm_pretty_print() 78 > case "${TERM:-dumb}" in
++ /scripts/functions/logging : rvm_pretty_print() 81 > case "$1" in
++ /scripts/functions/logging : rvm_pretty_print() 83 > [[ -t 2 ]]
++ /scripts/functions/logging : rvm_pretty_print() 83 > return 1
++ /scripts/functions/logging : rvm_error() 117 > printf %b 'Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.\n'
Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.
++ /scripts/functions/requirements/osx_brew : requirements_osx_brew_update_system() 377 > return 1
Requirements installation failed with status: 1.
unknown:~ $
Sorry if its long but I can't find the answer anywhere. Thanks.
The following command line gives a completely different message.
Here are the error messages:
First error message:
Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure brew update works before continuing.\n'
Second error message:
Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues and make sure brew update works before continuing.\n'
So it looks like it's an installing homebrew problem. I would think that going to the link given, and reading about the common issues encountered when updating homebrew would be something to try.
I had the same issue, did you try to run it with sudo?
sudo rvm install ruby-2.1.2
Related
Now I am using this command to install ruby 3.0.0 in macOS Catalina:
rvm get stable
rvm install ruby-3.0.0
shows this error:
$ rvm install ruby-3.0.0
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.15/x86_64/ruby-3.0.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing requirements for osx.
Updating system - please wait
Failed to update Homebrew, follow instructions at
https://docs.brew.sh/Common-Issues
and make sure `brew update` works before continuing.
Error running 'requirements_osx_brew_update_system ruby-3.0.0',
please read /Users/dolphin/.rvm/log/1615433437_ruby-3.0.0/update_system.log
Requirements installation failed with status: 1.
(base)
Is it possible to install ruby using rvm in macOS Catalina 10.15.7? what should I do to make it work? where should I find the binary? This is my rvm info:
$ rvm -v
rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
(base)
and then I check the log:
$ tail -f /Users/dolphin/.rvm/log/1615433437_ruby-3.0.0/update_system.log
+rvm_error:2> rvm_pretty_print stderr
+rvm_pretty_print:2> case auto (0|no)
+rvm_pretty_print:2> case auto (1|auto)
+rvm_pretty_print:8> case xterm-256color (dumb|unknown)
+rvm_pretty_print:12> case stderr (stdout)
+rvm_pretty_print:12> case stderr (stderr)
+rvm_pretty_print:14> [[ -t 2 ]]
+rvm_pretty_print:14> return 1
+rvm_error:4> printf %b $'Failed to update Homebrew, follow instructions at\n\n https://docs.brew.sh/Common-Issues\n\nand make sure `brew update` works before continuing.\\n'
+requirements_osx_brew_update_system:27> return 1
wqq^C
(base)
and runs brew update command:
$ brew update
Already up-to-date.
(base)
seems the rvm update failed but successed in command line env.
I'm unable to install Ruby 2.4.0.
RVM version is 1.29.1
Rubygems version is 2.6.11
I'm trying to install Ruby 2.4.0 using:
rvm install ruby-2.4.0
I'm getting the following error:
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/x86_64/ruby-2.4.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx_brew.
Installing requirements for osx_brew.
Updating system...........
Error running 'requirements_osx_brew_update_system ruby-2.4.0',
showing last 15 lines of /Users/bbc-admin/.rvm/log/1492510247_ruby-2.4.0/update_system.log
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.'
++ rvm_pretty_print stderr
++ case "${rvm_pretty_print_flag:=auto}" in
++ case "${TERM:-dumb}" in
++ case "$1" in
++ [[ -t 2 ]]
++ return 1
++ printf %b 'Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.\n'
Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.
++ return 1
Requirements installation failed with status: 1.
Think you may need to update Homebrew; try brew update and then re-try the rvm install ruby-2.4.0 command.
I would have added this as a comment but not enough rep. Let me know how you get on.
When I attempt installation using
rvm install 2.2
or
rvm install ruby-2.2.4
I get the following error when I input rvm use 2.2 or rvm use 2.2.4:
ruby-2.2.4 is not installed.
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.2.4. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx_brew.
Installing requirements for osx_brew.
Updating system.....
Installing required packages: openssl.......
Error running 'requirements_osx_brew_libs_install openssl', showing last 15 lines of /Users/mikejschorah/.rvm/log/1468093589_ruby-2.2.4/package_install_openssl.log
++ case "$1" in ++ [[ -t 1 ]] ++ return 1
++ printf %b 'There were package installation errors, make sure to read the log. Try brew tap --repair` and make sure brew doctor looks reasonable.
Check Homebrew requirements github.com/Homebrew/homebrew/wiki/Installation\n'
There were package installation errors, make sure to read the log. Try brew tap --repair and make sure brew doctor looks reasonable. Check Homebrew requirements github.com/Homebrew/homebrew/wiki/Installation
++ case "$_system_version" in ++ return 1
Requirements installation failed with status: 1.`
From the unformatted error output it can be seen that rvm cannot install openssl which is a requirement for ruby.
Run this command to install it using brew.
brew install openssl
I am trying to install ruby-2.3.0 with rvm, but it has an error
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.10/x86_64/ruby-2.3.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system........................................
Error running 'requirements_debian_update_system ruby-2.3.0',
showing last 15 lines of /home/local/.rvm/log/1460088710_ruby-2.3.0/update_system.log
++ 1460088815.260685491 /scripts/functions/logging : rvm_pretty_print() 78 > case "${TERM:-dumb}" in
++ 1460088815.263259956 /scripts/functions/logging : rvm_pretty_print() 81 > case "$1" in
++ 1460088815.266028504 /scripts/functions/logging : rvm_pretty_print() 11 > [[ -t 2 ]]
++ 1460088815.270746572 /scripts/functions/logging : rvm_pretty_print() 83 > return 1
++ 1460088815.274824254 /scripts/functions/logging : rvm_error() 117 > printf %b 'There has been error while updating '\''apt-get'\'', please give it some time and try again later.
404 errors should be fixed for rvm to proceed. Check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
\n'
There has been error while updating 'apt-get', please give it some time and try again later.
404 errors should be fixed for rvm to proceed. Check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
++ 1460088815.278415072 /scripts/functions/requirements/ubuntu : requirements_debian_update_system(return 100
Requirements installation failed with status: 100.
How can I fix it?
Thanks!
Are you using below comment to install, if not try it
# Installing rvm
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable
# Installing ruby
source /usr/local/rvm/scripts/rvm
rvm install ree-2.3.0
rvm use ree-1.8.7-2012.02
Because of Quantal is no longer support for ubuntu 12.10. So I am changing references to quantal to precise in /etc/apt/sources.list and comment some quantal in /etc/apt/sources.list.d/* and run apt-get update
I fixed with me.
I'm trying to install Ruby using RVM on a Macbook Pro running Mavericks. I'm a little over my head, but whenever I type in rvm install 2.1 it fails and gives me the following error:
Error running 'requirements_osx_brew_update_system ruby-2.1.1',
showing last 15 lines of /Users/ianvshuff/.rvm/log/1396019921_ruby-2.1.1/update_system.log
https://github.com/mxcl/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.'
++ rvm_pretty_print stderr
++ case "${rvm_pretty_print_flag:=auto}" in
++ case "${TERM:-dumb}" in
++ case "$1" in
++ [[ -t 2 ]]
++ return 1
++ printf %b 'Failed to update Homebrew, follow instructions here:
https://github.com/mxcl/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.\n'
Failed to update Homebrew, follow instructions here:
https://github.com/mxcl/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.
++ return 1
Requirements installation failed with status: 1.
Xcode is installed and everything. Anyone know what's going on?
It looks like RVM is trying to install some requirements by using Homebrew, which is not installed or configured correctly. You can install Homebrew, or type rvm requirements and try to resolve them manually.