Error installing required packages in Yosemite - installation

I'm trying to install ruby 2.1.0, but when the install.sh is running I am constantly getting the following error
Error running 'requirements_osx_brew_libs_install automake libtool gcc49 libyaml readline libksba',
showing last 15 lines of /usr/local/rvm/log/1433830031/package_install_automake_libtool_gcc49_libyaml_readline_libksba.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.
I have already run brew tap --repair command and nothing is solved. I also got the following warning
Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation
+ case "$_system_version" in
+ return 1
Requirements installation failed with status: 1.
Does anybody have any ideas?

Related

How to install Ruby 2.4.0 on Mac OS using RVM

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.

How do I resolve this error when installing Ruby on a Macbook Pro (Mountain Lion) with RVM?

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

ruby update with rvm error message (rvm requirements fails)

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

Installing Ruby 1.8.7 on Mac Os C 10.9.2

I need to install ruby 1.8.7 on Mac Os x 10.9. I have run into several problems and have not found the answer. I have X code 5.1.1 and command line tools installed. What ever I do, I always get this same error message:
$ rvm install 1.8.7
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.9/x86_64/ruby-1.8.7-p374.
It is not possible to build movable binaries for rubies 1.8-1.9.2, but you can do it for your system only.
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: autoconf, automake, libtool, pkg-config, gcc46, libyaml, readline, libksba, openssl098...
Error running 'requirements_osx_brew_libs_install autoconf automake libtool pkg-config gcc46 libyaml readline libksba openssl098',
showing last 15 lines of /Users/elisabethwork/.rvm/log/1399001508_ruby-1.8.7-p374/package_install_autoconf_automake_libtool_pkg-config_gcc46_libyaml_readline_libksba_openssl098.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 https://github.com/mxcl/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 https://github.com/mxcl/homebrew/wiki/Installation
++ case "$_system_version" in
++ return 1
Requirements installation failed with status: 1.
$ brew doctor
Your system is ready to brew.
Can you help me? Thank you!
See this bash script which lets you switch between 1.8.7 en 2.0. No RVM, brew or other extra software needed: https://gist.github.com/mipmip/7cfbadfcfa5fabe0ba84
for my case. I previously installed the autoconf libtool module myself and home-brew want to override that. so you have to manually tell brew that.
brew link --overwrite autoconf
...
you should run brew doctor and spend sometime read keywords like: error,build

Problems with RVM installing Ruby?

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.

Resources