installing mysql ruby gem with proper configuration options -
< update: system rhel6
>
i trying install mysql
using command gem install mysql -v '2.8.1'
, below error
building native extensions. take while... error: error installing mysql: error: failed build gem native extension. /usr/local/bin/ruby extconf.rb checking mysql_ssl_set()... *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/ruby --with-mysql-config --without-mysql-config /usr/local/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': compiler failed generate executable file. (runtimeerror) have install development tools first. /usr/local/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0' /usr/local/lib/ruby/1.9.1/mkmf.rb:476:in `try_link' /usr/local/lib/ruby/1.9.1/mkmf.rb:619:in `try_func' /usr/local/lib/ruby/1.9.1/mkmf.rb:894:in `block in have_func' /usr/local/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for' /usr/local/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone' /usr/local/lib/ruby/1.9.1/mkmf.rb:254:in `open' /usr/local/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone' /usr/local/lib/ruby/1.9.1/mkmf.rb:254:in `open' /usr/local/lib/ruby/1.9.1/mkmf.rb:280:in `postpone' /usr/local/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for' /usr/local/lib/ruby/1.9.1/mkmf.rb:893:in `have_func' extconf.rb:50:in `<main>'
i tried below command gem install mysql -v '2.8.1' --with-mysql-dir=/usr/lib64/mysql/
failed error message invalid option: --with-mysql-dir=/usr/lib64/mysql/
/user/lib64/mysql
has below .so
files
/usr/lib64/mysql/libmysqlclient.so.16.0.0 /usr/lib64/mysql/libmysqlclient_r.so.16 /usr/lib64/mysql/libmysqlclient_r.so.16.0.0 /usr/lib64/mysql/libmysqlclient.so.16
can please me understand exact command mysql gem installation?
Comments
Post a Comment