Before I can say: "I've tried everything", I should post here. So, here is my problem.
I had a problem with ruby 1.9.3-p194. My terminal just got stuck on every(!) command involving ruby or rails. (e.g. rails s mongrel or even rails -v and ruby -v)
It all started with this strange thing:
$ rvm use 1.9.3-p194
Using /usr/local/rvm/gems/ruby-1.9.3-p194
$ bundle exec rails s mongrel
and then it got stuck.
So, I wanted to know which versions of ruby I got installed:
$ rvm list
rvm rubies
ruby-1.8.7-p370 [ i686 ]
# => - current
# =* - current && default
# * - default
Huh?! So am I using a non-installed ruby-version?
After some research many advices were to reinstall the whole package.
So, I tried.
$ rvm uninstall 1.9.3-p194
Removing /usr/local/rvm/src/ruby-1.9.3-p194...
/usr/local/rvm/rubies/ruby-1.9.3-p194 has already been removed.
and again, just to make sure..
$ rvm uninstall 1.9.3-p194
/usr/local/rvm/src/ruby-1.9.3-p194 has already been removed.
/usr/local/rvm/rubies/ruby-1.9.3-p194 has already been removed.
Well, that looks good. (Except for the fact that half of it was already removed on the first try... :| )
Then:
Error #1
$ rvm reinstall 1.9.3-p194
Removing /usr/local/rvm/src/ruby-1.9.3-p194...
/usr/local/rvm/rubies/ruby-1.9.3-p194 has already been removed.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p194.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p194 (already extracted)
ruby-1.9.3-p194 - #autoreconf
Error running 'autoreconf', please read /usr/local/rvm/log/ruby-1.9.3-p194/autoreconf.log
Skipping configure step, 'configure' does not exist, did autoreconf not run successfully?
ruby-1.9.3-p194 - #compiling
Error running 'make', please read /usr/local/rvm/log/ruby-1.9.3-p194/make.log
There has been an error while running make. Halting the installation.
next step was:
$ rvm uninstall 1.9.3-p194
Removing /usr/local/rvm/src/ruby-1.9.3-p194...
/usr/local/rvm/rubies/ruby-1.9.3-p194 has already been removed.
Removing default ruby interpreter
$ rvm list
rvm rubies
# No rvm rubies installed yet. Try 'rvm help install'.
So I checked the help install, but found nothing that might help. At least, I haven't seen a solution..
Next:
Error #2
$ rvm install 1.9.3-p194
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p194.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracting ruby-1.9.3-p194 to /usr/local/rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/usr/local/rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p194', please read /usr/local/rvm/log/ruby-1.9.3-p194/configure.log
There has been an error while running configure. Halting the installation.
Now, I wanted to uninstall rvm:
$ brew uninstall rvm
Error: No such keg: /usr/local/Cellar/rvm
Okay.. Let's check if it still works..?
$ rvm
<listed standard output, thought that'd be useless here..>
Yes, it's still there. Let's try to install 1.9.3 again..
Error #2 (Same as before..)
$ rvm install 1.9.3
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p327.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /usr/local/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 - #extracting ruby-1.9.3-p327 to /usr/local/rvm/src/ruby-1.9.3-p327
ruby-1.9.3-p327 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p327
ruby-1.9.3-p327 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/usr/local/rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p327', please read /usr/local/rvm/log/ruby-1.9.3-p327/configure.log
There has been an error while running configure. Halting the installation.
Then I found a 'solution...', #not..
$ umask g+w
$ export -a rvm_configure_env
$ rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')
Didn't work out..
I tried to install 1.9.3 again, which again raised error #2
That's it I thought. Let's implode the whole bunch.. (read that as a possible solution)
$ rvm implode
Are you SURE you wish for rvm to implode?
This will recursively remove /usr/local/rvm and other rvm traces?
(anything other than 'yes' will cancel) > yes
Removing rvm-shipped binaries (rvm-prompt, rvm, rvm-sudo rvm-shell and rvm-auto-ruby)
Removing rvm wrappers in /usr/local/rvm/bin
Hai! Removing /usr/local/rvm
rm: /etc/profile.d/rvm.sh: Permission denied
/usr/local/rvm has been removed.
rvm has been fully removed. Note you may need to manually remove /etc/rvmrc and ~/.rvmrc if they exist still.
Oh.. Permission denied nice...
$ sudo rvm implode
Password:
sudo: rvm: command not found
Hurrayy! It finally is removed.
Let's install it again..
$ gem install rvm
Successfully installed rvm-1.11.3.5
1 gem installed
Installing ri documentation for rvm-1.11.3.5...
Installing RDoc documentation for rvm-1.11.3.5...
What?! After just one try? Okay.. :)
But then....
Error #3
$ rvm install 1.9.3-p194
cat: /usr/local/rvm/VERSION: No such file or directory
-bash: /usr/local/rvm/scripts/base: No such file or directory
Unrecognized command line argument: 'impode' ( see: 'rvm usage' )
impode.. ? Whut?! Well, this is probably from an earlier typo..
Then I tried some other commands returning the same error over and over again:
ifonteijne:dash Kers$ rvm install 1.9.3-p194
cat: /usr/local/rvm/VERSION: No such file or directory
-bash: /usr/local/rvm/scripts/base: No such file or directory
Unrecognized command line argument: 'imstall' ( see: 'rvm usage' )
ifonteijne:dash Kers$ rvm impode
cat: /usr/local/rvm/VERSION: No such file or directory
-bash: /usr/local/rvm/scripts/base: No such file or directory
Unrecognized command line argument: 'impode' ( see: 'rvm usage' )
ifonteijne:dash Kers$ rvm implode
cat: /usr/local/rvm/VERSION: No such file or directory
-bash: /usr/local/rvm/scripts/base: No such file or directory
Unrecognized command line argument: 'impode' ( see: 'rvm usage' )
ifonteijne:dash Kers$ rvm install
cat: /usr/local/rvm/VERSION: No such file or directory
-bash: /usr/local/rvm/scripts/base: No such file or directory
Unrecognized command line argument: 'impode' ( see: 'rvm usage' )
Now I am stuck as .....
If someone can help me out, please.
I want to install: Ruby 1.9.3-p194 through RVM
== Edit ==
Tried:
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
# Kers,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne
Well, that worked.
$ rvm install 1.9.3-p194
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p194.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
You requested building with '/Developer/usr/bin/gcc' but it is not in your path.
$ brew install gcc
==> Installing gcc dependency: gmp
==> Downloading http://ftpmirror.gnu.org/gmp/gmp-5.0.5.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/gmp/5.0.5 --enable-cxx --build=x86_64-apple-darwin
==> make
==> make check
==> make install
(...)
Xcode: 4.5.2 => /Volumes/SATA/Applications/Xcode.app/Contents/Developer
CLT: 1.0.0.9000000000.1.1249367152
Error: Homebrew doesn't know what compiler versions ship with your version of
Xcode. Please file an issue with the output of `brew --config`:
https://github.com/mxcl/homebrew/issues
Error: Failed executing: make (mpfr.rb:31)
As was said:
$ brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: 360be75b4c4e286365d71664d9a8ab277d7b1fb3
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit arrandale
OS X: 10.8.2-x86_64
Xcode: 4.5.2 => /Volumes/SATA/Applications/Xcode.app/Contents/Developer
CLT: 1.0.0.9000000000.1.1249367152
GCC-4.2: build 5666
LLVM-GCC: build 2335
Clang: 2.1 build 163
X11: 2.7.3 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Hope this might help.
Fixed it thanks to the comment of rik.vanmechelen.
Conclusion:
Remove Ruby
$ ruby implode
Install Ruby
Note: ==> Make Bootstrap takes a (very) long time.
$ curl -L get.rvm.io | bash -s stable --ruby
Install gcc
Note: This is not the standard command for it, I used it because of a Xcode 'Command line' error.
$ brew install --use-llvm gcc
Install Rails
$ sudo gem install rails
Then I was good to go.
rik.vanmechelen, thanks again.
Related
You are probably searching for Error running '__rvm_make -j 1'
That only says, that something went wrong while compiling ruby. This question is only relevant to you if openssl and/or ossl_ssl is part of your error message.
But maybe your problem is a similar one and you can solve your problem with some customizations.
Background
Today I wanted to delete all gems of a project but forgot to specify a path for bundler beforehand so all gems where installed in ~/.rvm/gems/ruby-2.2.4/gems/.
As it's the only ruby 2.2.4 project I though rm -rf ~/.rvm/gems/ruby-2.2.4/gems/* would be perfectly fine. It wasn't. Bundler was gone and gem install bundler didn't worked anymore as well.
I removed the hole ruby installation with rvm remove ruby-2.2.4 ant tried to reinstall it. This is the console output with the error I got:
Console output
> rvm install ruby-2.2.4
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/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.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/fkammer/.rvm/rubies/ruby-2.2.4, this may take a while depending on your cpu(s)...
ruby-2.2.4 - #downloading ruby-2.2.4, 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 12.7M 100 12.7M 0 0 655k 0 0:00:19 0:00:19 --:--:-- 234k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.2.4 - #extracting ruby-2.2.4 to /Users/fkammer/.rvm/src/ruby-2.2.4....
ruby-2.2.4 - #configuring..........................................................
ruby-2.2.4 - #post-configuration.
ruby-2.2.4 - #compiling..............................................................
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/fkammer/.rvm/log/1456431932_ruby-2.2.4/make.log
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ossl_ssl.c:19:35: note: expanded from macro 'numberof'
#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
^~~~~
ossl_ssl.c:2217:21: error: invalid application of 'sizeof' to an incomplete type 'const struct (anonymous struct at ossl_ssl.c:115:14) []'
for (i = 0; i < numberof(ossl_ssl_method_tab); i++) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ossl_ssl.c:19:35: note: expanded from macro 'numberof'
#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
^~~~~
9 errors generated.
make[2]: *** [ossl_ssl.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.
Retrying does not change anything. I also tried to completely uninstall rvm (rvm implode) and reinstall it but that was neither successful.
System
Mac OS X – El Capitan (10.11.3)
rvm 1.26.11 (latest)
Homebrew 0.9.5
Looks like there is a problem with openssl.
rvm uses homebrew as its package manager on my installation (it's the default I guess). You can ensure that with rvm autolibs homebrew.
I reinstalled openssl with
brew reinstall openssl
and saw via brew list that there was another openssl package called openssl098 installed on my system. Trying to reinstall it too caused the following error:
> brew reinstall openssl098
Error: No available formula with the name "openssl098"
I just removed the package with
brew uninstall --force openssl098
and reinstalled openssl again to be sure openssl098 wasn't a needed dependency. But it wasn't installed again.
Afterwards I tried installing ruby-2.2.4 via rvm again and it worked like a charm :) So I guess my openssl package was broken for some reason.
openssl098 has been officially removed and is no longer available. Most probably you have outdated version of rvm which tries to build against the 0.9.8 branch. Update rvm to have it fixed: rvm get head. Source.
I was trying to install ruby 1.9.3 but have error as-
Error running '__rvm_make -j4'
I follow #mpapis and got my issue resolved
rvm remove 1.9.3
CC=clang rvm install 1.9.3
Now I have this setup-
rvm rubies
ruby-1.9.3-p551 [ x86_64 ]
ruby-2.1.3 [ x86_64 ]
=* ruby-2.3.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
Here is the source link-
https://github.com/rvm/rvm/issues/
& this s my quote on it-
https://github.com/rvm/rvm/issues/2333
This is what worked for me. I always forget to do this. One time thing.
xcode-select --install
brew --prefix openssl # get the path you need for openssl
rvm install "ruby-2.6.4" --with-openssl-dir=PATH_TO_OPENSSL
Because of a legacy system, I need to use Ruby v1.8.7-p374. I've been using RVM to use that version of Ruby and all seemed to work well, until something changed.
Now my system will not use the Ruby version that I'm specifying with RVM. Is there a way to switch between the Ruby versions manually?
Related question: "Can't change Ruby Version using RVM"
Here are some relevant pieces of information:
$ rvm --default use ruby-1.8.7-p374
Using /Users/wroberts/.rvm/gems/ruby-1.8.7-p374
$ ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13]
$ echo $PATH
/Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin:/Users/wroberts/.rvm/gems/ruby-1.8.7-p374#global/bin:/Users/wroberts/.rvm/rubies/ruby-1.8.7-p374/bin:/Users/wroberts/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/ant/bin:/usr/local/mysql/bin:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin:/usr/local/apache-maven/apache-maven-3.2.3/bin:/usr/bin/chromedriver/bin:/Users/wroberts/dev/tools/flex:/usr/local/bin:/usr/bin:/usr/sbin
$ rvm list
rvm rubies
ruby-1.8.7-head [ i686 ]
=* ruby-1.8.7-p374 [ i686 ]
# => - current
# =* - current && default
# * - default
$ which ruby
/Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin/ruby
$ ls /Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin/ruby
/Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin/ruby
$ rvm info
RVM version 1.26.4 (master) is installed yet 1.26.4 (latest) is loaded.
Please do one of the following:
* 'rvm reload'
* open a new shell
* 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.
* 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.
Even more issues now:
$ rvm install 1.8.7 --without-tcl --without-tk
Warning! PATH is not properly set up, '/Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-1.8.7-p374'.
Warning! Requested ruby installation which requires another ruby available - installing ruby-1.8.7-p374 first.
Checking requirements for osx.
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions
/Current/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 28: /usr/local/Library/brew.rb: Undefined error: 0
ERROR: '/bin' is not writable - it is required for Homebrew, try 'brew doctor' to fix it!
Requirements installation failed with status: 1.
To proceed rvm requires a ruby-1.8.7-p374 compatible ruby is installed.
We attempted to install it automatically but it failed with status 1.
Please install it manually (or a compatible alternative) to proceed.
IT IS WORKING -- my workaround, and one more question
so I did the rvm implode, which (I think) resulted in ruby not being in the System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby.
So everytime I tried to install 1.8.7 --without-tcl --without-tk something was wrong with my brew file.
A FEW FINAL QUESTIONS:
I checked the brew file and at the top it was using
#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0
and I changed it to
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0
and now brew worked, I was able to install 1.8.7 and do rvm --default use ruby-1.8.7-p374 and my gems install etc.
First question, is this hacky solution a major issue for me, not a big deal, or unknown territory due to sheer stupidity of the problem?
Second question, everytime I open a new bash shell ruby -v gives me the (I believe) system version of ruby:
$ ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13]
$ which ruby
/usr/bin/ruby
but then I set the default rvm and would like this to happen automatically,
$ rvm --default use ruby-1.8.7-p374
Warning! PATH is not properly set up, '/Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-1.8.7-p374'.
Using /Users/wroberts/.rvm/gems/ruby-1.8.7-p374
$ ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [i686-darwin13.4.
$ which ruby
/Users/wroberts/.rvm/rubies/ruby-1.8.7-p374/bin/ruby
It says my path is not properly set up, but if you check the top of this post, /Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin IS at the first place, how can this be fixed?
RVM is telling you that it doesn't like the configuration of your shell. So try running
rvm get stable --auto-dotfiles
as it suggests. RVM needs to be the last thing included in your shell config otherwise its functionality can be affected by shell commands loaded after it.
If you are using homebrew, I'd do an update and doctor.
Do:
rvm implode
install rvm
again. This should fix the issue.
I get the following Error when running rvm reinstall 1.9.3, I followed some advice to deleted these files and folders below, now I dont have them even after removing rvm and reinstalling with curl, what do I do? I used the rails installer, and I think that is what has messed this whole thing up. I just want to start from scratch.
rm -rf /opt/sm
rm /etc/rvmrc
rm /etc/profile.d/sm.sh
I also get this output when trying to install rvm reinstall 1.9.3
$ rvm reinstall 1.9.3
Removing /usr/local/rvm/src/ruby-1.9.3-p385...
Removing /usr/local/rvm/rubies/ruby-1.9.3-p385...
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p385.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /usr/local/rvm/archives
Extracting yaml to /usr/local/rvm/src/yaml-0.1.4
Configuring yaml in /usr/local/rvm/src/yaml-0.1.4.
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/usr/local/rvm/usr --disable-shared', please read /usr/local/rvm/log/ruby-1.9.3-p385/yaml/configure.log
Compiling yaml in /usr/local/rvm/src/yaml-0.1.4.
Error running 'make', please read /usr/local/rvm/log/ruby-1.9.3-p385/yaml/make.log
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p385, this may take a while depending on your cpu(s)...
ruby-1.9.3-p385 - #downloading ruby-1.9.3-p385, this may take a while depending on your connection...
ruby-1.9.3-p385 - #extracting ruby-1.9.3-p385 to /usr/local/rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p385 --with-opt-dir=/usr/local/rvm/usr --disable-shared', please read /usr/local/rvm/log/ruby-1.9.3-p385/configure.log
There has been an error while running configure. Halting the installation.
PLEASE help this has been taking me forever, to figure this out.
make.log
[2013-02-11 21:27:46] make
make: *** No targets specified and no makefile found. Stop.
after removing the files you need also open new terminal - if it does not help - restart computer
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.
I am having trouble installing Ruby using RVM. I had tried using readline and other suggestions online. None of the solutions worked.
I use Cygwin, Bash and have RVM installed.
rvm install 1.9.2
No binary rubies available for: /ruby-1.9.2-p320.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /home/arvenkataraman/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /home/arvenkataraman/.rvm/src
Configuring yaml in /home/arvenkataraman/.rvm/src/yaml-0.1.4.
Compiling yaml in /home/arvenkataraman/.rvm/src/yaml-0.1.4.
Error running 'make', please read /home/arvenkataraman/.rvm/log/ruby-1.9.2-p320/yaml/make.log
Installing Ruby from source to: /home/arvenkataraman/.rvm/rubies/ruby-1.9.2-p320, this may take a while depending on your cpu(s)...
ruby-1.9.2-p320 - #downloading ruby-1.9.2-p320, this may take a while depending on your connection...
ruby-1.9.2-p320 - #extracting ruby-1.9.2-p320 to /home/arvenkataraman/.rvm/src/ruby- 1.9.2-p320
ruby-1.9.2-p320 - #extracted to /home/arvenkataraman/.rvm/src/ruby-1.9.2-p320
ruby-1.9.2-p320 - #configuring
ruby-1.9.2-p320 - #compiling
ruby-1.9.2-p320 - #installing
ruby-1.9.2-p320 is not installed.
To install do: 'rvm install ruby-1.9.2-p320'
I see the below in the error log "/home/arvenkataraman/.rvm/log/ruby-1.9.2-p320/yaml/make.log"
$ cat /home/arvenkataraman/.rvm/log/ruby-1.9.2-p320/yaml/make.log
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/arvenkataraman/.rvm/src/yaml-0.1.4/config/missing --run aclocal-1.11
cd . && /bin/sh /home/arvenkataraman/.rvm/src/yaml-0.1.4/config/missing --run automake-1.11 --foreign
src/Makefile.am:2: Libtool library used but `LIBTOOL' is undefined
src/Makefile.am:2: The usual way to define `LIBTOOL' is to add `LT_INIT'
src/Makefile.am:2: to `configure.ac' and run `aclocal' and `autoconf' again.
src/Makefile.am:2: If `LT_INIT' is in `configure.ac', make sure
src/Makefile.am:2: its definition is in aclocal's search path.
Makefile:256: recipe for target `Makefile.in' failed
make: *** [Makefile.in] Error 1
This work for me make sure RVM is up to date
rvm get head
CC=/usr/bin/gcc rvm install 1.9.2 --enable-shared
note: /usr/bin/gcc ==> path/to/gcc
few steps:
update RVM: rvm get head
read and follow instructions: rvm requirements
reinstall ruby: rvm reinstall 1.9.2