Installing Ruby - RVM - Mac OSX Mountain Lion -


so i'm trying install ruby 1.9.3 on mac running mountain lion. have xcode installed , date. i've installed rvm , trying install ruby using rvm install 1.9.3 when run looks it's going install gives me error please see below:

rvm install 1.9.3 searching binary rubies, might take time. no binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392. continuing compilation. please read 'rvm mount' more information on binary rubies. installing requirements osx, might require sudo password. up-to-date. certificates in '/users/colin/.rvm/etc/openssl/cert.pem' date. installing ruby source to: /users/colin/.rvm/rubies/ruby-1.9.3-p392, may take while depending on cpu(s)... ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, may take while depending on connection... ruby-1.9.3-p392 - #extracted /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 error while running configure. halting installation. 

when go /1366429269_configure.log file 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 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' more details 

if me out appreciated!

edit:

i tried solution here can't install ruby under lion rvm – gcc issues rvm install 1.9.3 --with-gcc=clang , changed bit, here new output:

rvm install 1.9.3 --with-gcc=clang installing requirements osx, might require sudo password. up-to-date. certificates in '/users/colin/.rvm/etc/openssl/cert.pem' date. warning: found user selected compiler 'clang', suppress rvm auto detection mechanisms. installing ruby source to: /users/colin/.rvm/rubies/ruby-1.9.3-p392, may take while depending on cpu(s)... ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, may take while depending on connection... ruby-1.9.3-p392 - #extracted /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 error while running make. halting installation. 

and heres log that: http://pastebin.com/p6ntzrqy

edit

not sure happened tried same thing , it's working perfect. thank left helpful comment, it's appreciated!

you need update command line tools latest version, ruby 1.9.3 still preferred use gcc-4.2 compilation.

also make sure update rvm before trying again:

rvm head rvm install 1.9.2 

finally, ruby 2.0.0 should compatible 1.9.3 , should update.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -