gcc - I am not able to install ruby via rvm -
my config log file -
./configure current path: /home/username/.rvm/src/ruby-2.1.6 path=/usr/local/jdk/bin:/home/username/perl5/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/x11r6/bin:/home/username/.rvm/bin:/home/username/bin:/home/username/.rvm/bin command(4): ./configure --prefix=/home/username/.rvm/rubies/ruby-2.1.6 --disable-install-doc --enable-shared checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking gcc... gcc checking whether c compiler works... no configure: error: in `/home/username/.rvm/src/ruby-2.1.6': configure: error: c compiler cannot create executables see `config.log' more details gcc installed - gcc (gcc) 4.4.7 20120313 (red hat 4.4.7-11)
i guess not have required packages (dependencies) install ruby via rvm. following steps should out:
yum install gcc-c++ patch readline readline-devel zlib zlib-devel yum install libyaml-devel libffi-devel openssl-devel make yum install bzip2 autoconf automake libtool bison iconv-devel curl -l get.rvm.io | bash -s stable source /etc/profile.d/rvm.sh rvm install 2.1.2 rvm use 2.1.2 --default now check ruby version:
ruby --version check out http://tecadmin.net/install-ruby-2-1-on-centos-rhel/ more details
Comments
Post a Comment