osx - Trying to install ruby 1.9.3 -
i have ruby 2.1.4 on machine, installed using rvm. need work on project using ruby 1.9.3, when try install using rvm following error on machine:
warning, new version of rvm available '1.26.3', using older version '1.26.0'. can disable warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc ruby-1.9.3-p550 - #removing src/ruby-1.9.3-p550.. searching binary rubies, might take time. no binary rubies available for: osx/10.10/x86_64/ruby-1.9.3-p550. continuing compilation. please read 'rvm mount' more information on binary rubies. checking requirements osx. warning: can't open config file: /usr/local/etc/openssl/openssl.cnf certificates in '/usr/local/etc/openssl/cert.pem' date. requirements installation successful. installing ruby source to: /users/jean/.rvm/rubies/ruby-1.9.3-p550, may take while depending on cpu(s)... ruby-1.9.3-p550 - #downloading ruby-1.9.3-p550, may take while depending on connection... ruby-1.9.3-p550 - #extracting ruby-1.9.3-p550 /users/jean/.rvm/src/ruby-1.9.3-p550.... ruby-1.9.3-p550 - #applying patch /users/jean/.rvm/patches/ruby/gh-488.patch. ruby-1.9.3-p550 - #configuring. error running './configure --prefix=/users/jean/.rvm/rubies/ruby-1.9.3-p550 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared', showing last 15 lines of /users/jean/.rvm/log/1417082976_ruby-1.9.3-p550/configure.log [2014-11-27 11:09:58] ./configure current path: /users/jean/.rvm/src/ruby-1.9.3-p550 gem_home=/users/jean/.rvm/gems/ruby-2.1.4 path=/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/users/jean/.rvm/gems/ruby-2.1.4/bin:/users/jean/.rvm/gems/ruby-2.1.4@global/bin:/users/jean/.rvm/rubies/ruby-2.1.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/users/jean/.rvm/bin gem_path=/users/jean/.rvm/gems/ruby-2.1.4:/users/jean/.rvm/gems/ruby-2.1.4@global command(7): ./configure --prefix=/users/jean/.rvm/rubies/ruby-1.9.3-p550 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared configure: warning: unrecognized options: --without-tcl, --without-tk checking build system type... i386-apple-darwin14.0.0 checking host system type... i386-apple-darwin14.0.0 checking target system type... i386-apple-darwin14.0.0 checking whether c compiler works... no configure: error: in `/users/jean/.rvm/src/ruby-1.9.3-p550': configure: error: c compiler cannot create executables see `config.log' more details there has been error while running configure. halting installation.
and config.log file:
[2014-11-27 11:09:58] ./configure current path: /users/jean/.rvm/src/ruby-1.9.3-p550 gem_home=/users/jean/.rvm/gems/ruby-2.1.4 path=/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/users/jean/.rvm/gems/ruby-2.1.4/bin:/users/jean/.rvm/gems/ruby-2.1.4@global/bin:/users/jean/.rvm/rubies/ruby-2.1.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/users/jean/.rvm/bin gem_path=/users/jean/.rvm/gems/ruby-2.1.4:/users/jean/.rvm/gems/ruby-2.1.4@global command(7): ./configure --prefix=/users/jean/.rvm/rubies/ruby-1.9.3-p550 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared configure: warning: unrecognized options: --without-tcl, --without-tk checking build system type... i386-apple-darwin14.0.0 checking host system type... i386-apple-darwin14.0.0 checking target system type... i386-apple-darwin14.0.0 checking whether c compiler works... no configure: error: in `/users/jean/.rvm/src/ruby-1.9.3-p550': configure: error: c compiler cannot create executables see `config.log' more details
as discussed in chat, seemed fix it:
rvm install ruby-1.9.3 --with-gcc=`which gcc`
Comments
Post a Comment