If you are trying to install ruby mysql and you have got this error :
have_library: checking for main() in -lm... -------------------- no .... find_library: checking for mysql_query() in -lmysqlclient... -------------------- no ..... have_library: checking for main() in -lz... -------------------- no ...... find_library: checking for mysql_query() in -lmysqlclient... -------------------- no ......
You have to install some package as root
yum install ruby-devel
If you still have such the following :
gem install mysql -- --with-mysql-config=/usr/bin/mysql_config Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb install mysql -- --with-mysql-config=/usr/bin/mysql_config checking for mysql_ssl_set()... no checking for mysql.h... no checking for mysql/mysql.h... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You 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
Recent comments
1 year 19 weeks ago
1 year 37 weeks ago
2 years 13 weeks ago
2 years 14 weeks ago
2 years 23 weeks ago
2 years 26 weeks ago
2 years 26 weeks ago
2 years 26 weeks ago
2 years 26 weeks ago
2 years 47 weeks ago