Ruby 1.9.3 Is Not Installing (Mac OS X Lion) [duplicate] - ruby

This question already has answers here:
Installing Ruby - RVM - Mac OSX Mountain Lion
(3 answers)
Closed 9 years ago.
Here's my current version of Ruby:
Matts-MacBook-Pro:~ cinicraft$ ruby -v
ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0]
So I want to upgrade to 1.9.3, this is what I'm trying:
Matts-MacBook-Pro:~ cinicraft$ rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.7/x86_64/ruby-1.9.3-p448.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/cinicraft/.rvm/rubies/ruby-1.9.3-p448, this may take a while depending on your cpu(s)...
ruby-1.9.3-p448 - #downloading ruby-1.9.3-p448, this may take a while depending on your connection...
ruby-1.9.3-p448 - #extracted to /Users/cinicraft/.rvm/src/ruby-1.9.3-p448 (already extracted)
ruby-1.9.3-p448 - #configuring........
Error running './configure --prefix=/Users/cinicraft/.rvm/rubies/ruby-1.9.3-p448 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --disable-install-doc --without-tcl --without-tk --enable-shared',
please read /Users/cinicraft/.rvm/log/ruby-1.9.3-p448/1376080574_configure.log
There has been an error while running configure. Halting the installation.
What the phantom menace is this thing's problem?

Your RVM is out of date.
rvm get head
rvm install 1.9.3

Related

rvm not installing ruby-2.2; Error running '__rvm_make -j4'

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!!!!!

Issue installing Ruby 2.5.0 on macos

I'm trying to work on a new app which I cloned from a repository, so I enter in the file and got this:
RVM used your Gemfile for selecting Ruby,
it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/cathleenhenninot/Desktop/omnimeta-schema-manager/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.
Required ruby-2.5.0 is not installed. To install do: 'rvm install "ruby-2.5.0"'
ok, so I'm actually in ruby 2.5.1, should I install the ruby 2.5.0? Is it an obligation to work on the same version as the repository?
I tried and run rvm install "ruby-2.5.0"
and i got this:
Found old RVM 1.29.7-next - updating.
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/cathleenhenninot/.rvm/
RVM PATH line found in /Users/cathleenhenninot/.mkshrc /Users/cathleenhenninot/.profile /Users/cathleenhenninot/.bashrc.
RVM PATH line not found for Zsh, rerun this command with '--auto-dotfiles' flag to fix it.
RVM sourcing line found in /Users/cathleenhenninot/.profile /Users/cathleenhenninot/.bash_profile /Users/cathleenhenninot/.zlogin.
Upgrade of RVM in /Users/cathleenhenninot/.rvm/ is complete.
Thanks for installing RVM 🙏
Please consider donating to our open collective to help us maintain RVM.
👉 Donate: https://opencollective.com/rvm/donate
RVM reloaded!
ruby-2.5.0 - #removing src/ruby-2.5.0 - please wait
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.14/x86_64/ruby-2.5.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
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/cathleenhenninot/.rvm/rubies/ruby-2.5.0, this may take a while depending on your cpu(s)...
ruby-2.5.0 - #downloading ruby-2.5.0, this may take a while depending on your connection...
ruby-2.5.0 - #extracting ruby-2.5.0 to /Users/cathleenhenninot/.rvm/src/ruby-2.5.0 - please wait
ruby-2.5.0 - #applying patch /Users/cathleenhenninot/.rvm/patches/ruby/2.5.0/prelude_gcc_diagnostic.patch - please wait
ruby-2.5.0 - #applying patch /Users/cathleenhenninot/.rvm/patches/ruby/2.5.0/libressl_2_7.patch - please wait
ruby-2.5.0 - #configuring - please wait
Error running './configure --prefix=/Users/cathleenhenninot/.rvm/rubies/ruby-2.5.0 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/libksba:/usr/local/opt/readline:/usr/local/opt/zlib:/usr/local/opt/openssl#1.1 --disable-install-doc --enable-shared',
please read /Users/cathleenhenninot/.rvm/log/1552667484_ruby-2.5.0/configure.log
There has been an error while running configure. Halting the installation.
An error stop the installation, how do I finish the installation of ruby 2.5.0? Any help would be great! Thanks :)

Installing ruby 2.1.1 on ubuntu-12.04 -x86_64 getting error(3)

I am installing ruby 2.1.1 using rvm on my ubuntu-12.04 -x86_64 m/c. I have already ruby 1.9.3 , 2.1.0 but for ruby 2.1.1 I am getting error.
I am using this command
rvm install ruby-2.1.1 --verify-downloads 1
Error:
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.04/x86_64/ruby-2.1.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Installing requirements for ubuntu, might require sudo password.
Requirements installation successful.
Installing Ruby from source to: /home/kiran/.rvm/rubies/ruby-2.1.1, this may take a while depending on your cpu(s)...
ruby-2.1.1 - #downloading ruby-2.1.1, this may take a while depending on your connection...
curl: (3) malformed
There was an error(3), please check /home/kiran/.rvm/log//*.log. Next we'll try to fetch via http.
Trying ftp:// URL instead.
curl: (3) malformed
There was an error(3), please check /home/kiran/.rvm/log//*.log
There has been an error fetching the ruby interpreter. Halting the installation.
Try this out:
Get the latest version of RVM:
rvm get head
Reload the RVM:
rvm reload
Install ruby 2.1.1:
rvm install ruby-2.1.1

installing ruby 2.0.0 through RVM

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

Installing Ruby - RVM - Mac OSX Mountain Lion

So I'm trying to install Ruby 1.9.3 on my Mac running Mountain Lion. I have xCode installed and up to date. I've installed RVM and now am trying to install Ruby using rvm install 1.9.3 When I run this it looks like it's going to install but gives me an error please see below:
rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Already up-to-date.
Certificates in '/Users/Colin/.rvm/etc/openssl/cert.pem' already are up to date.
Installing Ruby from source to: /Users/Colin/.rvm/rubies/ruby-1.9.3-p392, this may take a while depending on your cpu(s)...
ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, this may take a while depending on your connection...
ruby-1.9.3-p392 - #extracted to /Users/Colin/.rvm/src/ruby-1.9.3-p392 (already extracted)
ruby-1.9.3-p392 - #configuring........
Error running './configure --prefix=/Users/Colin/.rvm/rubies/ruby-1.9.3-p392 --with-opt-dir=/Users/Colin/.rvm/opt/libyaml:/Users/Colin/.rvm/opt/readline:/Users/Colin/.rvm/opt/libxml2:/Users/Colin/.rvm/opt/libxslt:/Users/Colin/.rvm/opt/libksba:/Users/Colin/.rvm/opt/openssl:/Users/Colin/.rvm/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared',
please read /Users/Colin/.rvm/log/ruby-1.9.3-p392/1366429269_configure.log
There has been an error while running configure. Halting the installation.
When I go to the /1366429269_configure.log file it says this:
[2013-04-19 20:41:09] ./configure
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... x86_64-apple-darwin12.2.1
checking host system type... x86_64-apple-darwin12.2.1
checking target system type... x86_64-apple-darwin12.2.1
checking whether the C compiler works... no
configure: error: in `/Users/Colin/.rvm/src/ruby-1.9.3-p392':
configure: error: C compiler cannot create executables
See `config.log' for more details
If anyone could help me out it would be greatly appreciated!
Edit:
I tried the solution here Can't install Ruby under Lion with RVM – GCC issues rvm install 1.9.3 --with-gcc=clang and it changed a bit, here is the new output:
rvm install 1.9.3 --with-gcc=clang
Installing requirements for osx, might require sudo password.
Already up-to-date.
Certificates in '/Users/Colin/.rvm/etc/openssl/cert.pem' already are up to date.
Warning: found user selected compiler 'clang', this will suppress RVM auto detection mechanisms.
Installing Ruby from source to: /Users/Colin/.rvm/rubies/ruby-1.9.3-p392, this may take a while depending on your cpu(s)...
ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, this may take a while depending on your connection...
ruby-1.9.3-p392 - #extracted to /Users/Colin/.rvm/src/ruby-1.9.3-p392 (already extracted)
ruby-1.9.3-p392 - #configuring.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ruby-1.9.3-p392 - #compiling..................................................................
Error running 'make -j8',
please read /Users/Colin/.rvm/log/ruby-1.9.3-p392/1366431470_make.log
There has been an error while running make. Halting the installation.
And heres the log from that: http://pastebin.com/P6nTZRQY
EDIT
Not sure what happened but I just tried the same thing and now it's working perfect. Thank you everyone who left a helpful comment, it's greatly appreciated!
You need to update Command Line Tools to latest version, also for ruby 1.9.3 it is still preferred to use gcc-4.2 for compilation.
Also make sure you update RVM before trying again:
rvm get head
rvm install 1.9.2
Finally, Ruby 2.0.0 should be compatible with 1.9.3 and you should update.
I ran into similar issues trying to install Ruby on Rails on Lion a month ago. In the end, I used an installer. If using an installer is a viable option for you, check out the Rails Installer.
try to use this it will install all
wget --no-check-certificate https://raw.github.com/joshfng/railsready/master/railsready.sh && bash railsready.sh

Resources