I am on Macbook Air (v. 10.8.4) and am trying to install ruby 2.0.0. I did rvm get stable then rvm install ruby-2.0.0. I get this error...
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.0.0-p247, this may take a while depending on your cpu(s)...
ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247, this may take a while depending on your connection...
ruby-2.0.0-p247 - #extracted to /usr/local/rvm/src/ruby-2.0.0-p247 (already extracted)
ruby-2.0.0-p247 - #configuring - using Zsh, can not show progress, be patient...
ruby-2.0.0-p247 - #compiling - using Zsh, can not show progress, be patient...
Error running 'make -j4',
please read /usr/local/rvm/log/ruby-2.0.0-p247/1373658495_make.log
There has been an error while running make. Halting the installation.
I tried Can't install Ruby 2.0.0-p0 with RVM. Error running 'make -j8' but I am still getting the same error. As in, I tried
I copied and pasted the log file into a google doc because it was 400+ lines. Link here https://docs.google.com/document/d/1mwiL88KbWYfFge3XKQF2hOJjG_8PzYTdcRFxbZcpUeU/edit?usp=sharing
try running these commands in given sequence: ---
brew update
brew tap homebrew/dupes
brew install apple-gcc42
rvm get stable
rvm install ruby-2.0.0
Related
When I try to download Cocoapods, it says:
XXXX: ~ XXX$ sudo gem install cocoapods
Password:XX
ERROR: Error install cocoapods:
minitest requires Ruby version ~> 2.2.
Then I try every way to install ruby but it gives me this:
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/osx/10.11/x86_64/ruby-2.2.5.tar.bz2
Checking requirements for osx.
Certificates bundle '/usr/local/etc/openssl#1.1/cert.pem' is already up to date.
Requirements installation successful.
ruby-2.2.5 - #configure
ruby-2.2.5 - #download
ruby-2.2.5 - #validate archive
ruby-2.2.5 - #extract
ruby-2.2.5 - #validate binary
Libraries missing for ruby-2.2.5: __rvm_ls. Refer to your system manual for installing libraries
Mounting remote ruby failed with status 10, trying to compile.
Checking requirements for osx.
Certificates bundle '/usr/local/etc/openssl#1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/vishaljayakumar/.rvm/rubies/ruby-2.2.5, this may take a while depending on your cpu(s)...
ruby-2.2.5 - #downloading ruby-2.2.5, this may take a while depending on your connection...
ruby-2.2.5 - #extracting ruby-2.2.5 to /Users/vishaljayakumar/.rvm/src/ruby-2.2.5.....
ruby-2.2.5 - #applying patch /Users/vishaljayakumar/.rvm/patches/ruby/2.2.5/fix_installing_bundled_gems.patch.
ruby-2.2.5 - #applying patch /Users/vishaljayakumar/.rvm/patches/ruby/2.2.5/openssl3.patch.
ruby-2.2.5 - #configuring......................................................-
ruby-2.2.5 - #post-configuration.
ruby-2.2.5 - #compiling........................................................|
Error running '__rvm_make -j4',
please read /Users/vishaljayakumar/.rvm/log/1581558007_ruby-2.2.5/make.log
There has been an error while running make. Halting the installation.
What do I do?
I have done literally every solution here and it doesn't work:
Github Error Page
Let me just name some of them just for you to see.
rvm get head
rvm mount -r https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.8.tar.bz2
rvm get stable; rvm reload; rvm install "ruby-2.2.X"
anything to do with openssl(I have no idea what it is)
rvm install ruby-2.6.5 --with-openssl-dir='{directory of openssl}
sudo xcode-select -s /Applications/Xcode.app
rvm install 2.6.4
brew install homebrew/portable-ruby/portable-openssl
rvm reinstall ruby-2.3.1 --with-openssl-dir=/usr/local/opt/portable-openssl/
Please give me a solution that is not in here(or one of the above).
I am a little desperate as I have wasted a lot of time on these commands!
I am free to any answers or comments!!!!!
hi i am trying to get ruby to compile on osx 10.8 mountain lion with rvm, though i keep getting the following error
$ rvm reinstall 1.9.3 --with-readline-dir=$rvm_path/usr
Removing /Users/paulmcguane/.rvm/src/ruby-1.9.3-p194...
it seems that /Users/paulmcguane/.rvm/rubies/ruby-1.9.3-p194 is already non existent.
Removing ruby-1.9.3-p194 aliases...
Removing ruby-1.9.3-p194 wrappers...
Removing ruby-1.9.3-p194 environments...
Removing ruby-1.9.3-p194 binaries...
Installing Ruby from source to: /Users/paulmcguane/.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 - #extracting ruby-1.9.3-p194 to /Users/paulmcguane/.rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #extracted to /Users/paulmcguane/.rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #configuring
ruby-1.9.3-p194 - #compiling
Error running 'make ', please read /Users/paulmcguane/.rvm/log/ruby-1.9.3-p194/make.log
There has been an error while running make. Halting the installation.
From my experience, the best way to avoid any problems with that is
osx-gcc-installer
Did you see make.log file and the errors? It might be popular readline error. For that refer this.
Error when installing Ruby 1.9.3 on Mac OS X Lion
Or,
Make error installing Ruby 1.9.2 via rvm OSX Lion 10.7.2 XCode 4.2
Make error installing Ruby 1.9.2 with RVM and Readline under OSX Lion
I cannot install ruby properly using RVM..
The error says:
No binary rubies available for: downloads/ruby-1.9.3-p327.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /Users/xiruki/.rvm/archives
Extracting yaml to /Users/xiruki/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/xiruki/.rvm/src/yaml-0.1.4.
Error running './configure --prefix=/Users/xiruki/.rvm/usr', please read /Users/xiruki/.rvm/log/ruby-1.9.3-p327/yaml/configure.log
Compiling yaml in /Users/xiruki/.rvm/src/yaml-0.1.4.
Error running 'make', please read /Users/xiruki/.rvm/log/ruby-1.9.3-p327/yaml/make.log
Installing Ruby from source to: /Users/xiruki/.rvm/rubies/ruby-1.9.3-p327, this may take a while depending on your cpu(s)...
ruby-1.9.3-p327 - #downloading ruby-1.9.3-p327, this may take a while depending on your connection...
ruby-1.9.3-p327 - #extracted to /Users/xiruki/.rvm/src/ruby-1.9.3-p327 (already extracted)
ruby-1.9.3-p327 - #configuring
Error running './configure --enable-shared --disable-install-doc --prefix=/Users/xiruki/.rvm/rubies/ruby-1.9.3-p327 --with-opt-dir=/Users/xiruki/.rvm/usr', please read /Users/xiruki/.rvm/log/ruby-1.9.3-p327/configure.log
There has been an error while running configure. Halting the installation.
What could be the problem? Please bear with me because I am new to MAC.
I am trying to install ruby 1.9.3
But it sticks to ruby 1.8.7 after i installed RVM via curl command.
whenever i try to install ruby 1.9.3 using rvm install command... it keeps on displaying errors.
Do the following:
I too recommend you make sure to read rvm requirements but here's the gist of it for your convenience.
Upgrade to the latest Xcode, launch it, go to Preferences -> Downloads -> click "Install" for "Command Line Tools".
Install homebrew if you don't already have it. Then:
brew update
brew upgrade
brew install git
If you need to install rubies older than 1.9.3 do the following:
brew tap homebrew/dupes
brew install autoconf automake apple-gcc42
rvm pkg install openssl
At this point you should rvm reinstall all of your rubies so they're compiled against all of your new stuff. Be sure to then run rvm use [RUBY] --default to use that ruby and make it the default one.
You need a compiler. Xcode command line tools or gcc. You probably have homebrew installed. I recommend you run brew doctor and follow the instructions.
You also must add a line to your bash file. This commands does that for you:
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile
After that you should be good.
UPDATE:
Instead of installing Xcode see what this command tells your to do:
rvm requirements
I don't use rvm at the moment but it seems your will be better with gcc wich that command tells you to install.
In the process of trying to upgrade to Ruby 1.9.3, I think I broke something. I believe I have Ruby 1.9.3 successfully installed. However, now when I type ruby -v into terminal, I'm not getting any messages. Here's the sample output:
rish-macbookair:~ rish$ ruby -v
rish-macbookair:~ rish$
One of the last things I did was install the "Command Line Tools" in XCode because I was getting a "missing libraries" error.
Any ideas on what might have happened, or where to start?
Edit: upon trying to reinstall 1.9.3, I get this:
rish-macbookair:~ rish$ rvm reinstall 1.9.3
/usr/local/rvm/src/ruby-1.9.3-p327 has already been removed.
Removing /usr/local/rvm/rubies/ruby-1.9.3-p327...
https://rvm.io/binaries/osx/10.8/x86_64/ruby-1.9.3-p327.tar.bz2 - #configure
ruby-1.9.3-p327 - #download
ruby-1.9.3-p327 - #extract
ruby-1.9.3-p327 - #validate
ruby-1.9.3-p327 - #setup
sed: RE error: illegal byte sequence
Saving wrappers to '/usr/local/rvm/bin'.
ruby-1.9.3-p327 - #importing default gemsets (/usr/local/rvm/gemsets/), this may take time ...
Making gemset ruby-1.9.3-p327 pristine.
Making gemset ruby-1.9.3-p327#global pristine.
rish-macbookair:~ rish$
I have tried reinstalling RVM as well, but I'm back in the same place
you are using old version of rvm, try:
rvm get head
rvm reinstall 1.9.3
rvm use 1.9.3
I am trying to install ruby using rvm on a remote server through terminal.
I am following this link
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
But at the install step I get the following error. I tried to look for the issue over net but couldn't resolve it. Please help me here.
$ rvm install 1.9.3
https://rvm.io/binaries/ubuntu/12.04/x86_64/ruby-1.9.3-p286.tar.bz2 - #configure<br>
ruby-1.9.3-p286 - #download<br>
ruby-1.9.3-p286 - #extract<br>
ruby-1.9.3-p286 - #validate<br>
**Libraries missing for ruby-1.9.3-p286: libruby.so.1.9. Refer to your system manual for installing libraries** <br>
Mounting remote ruby failed, trying to compile.<br>
Installing Ruby from source to: /home/ubuntu/.rvm/rubies/ruby-1.9.3-p286, this may take a while depending on your cpu(s)...<br>
ruby-1.9.3-p286 - #downloading ruby-1.9.3-p286, this may take a while depending on your connection...<br>
ruby-1.9.3-p286 - #extracted to /home/ubuntu/.rvm/src/ruby-1.9.3-p286 (already extracted)
Patch cflags was already applied.<br>
ruby-1.9.3-p286 - #configuring<br>
ruby-1.9.3-p286 - #compiling<br>
Write failed: Broken pipe
try to update rvm first, this problem is supposed to be fixed already:
rvm get head
rvm reinstall 1.9.3
if you still see it report problems/errors here: https://github.com/wayneeseguin/rvm/issues