1.error:while Executing gem ... (gem::exception) Unable to require OpenSSL, install OpenSSL and rebuild Ruby (preferred) or use NON-HTTPS sources
Method:
Enter the ruby source extract package, enter the Ruby source package under the Ext/openssl, with Ruby's own OpenSSL compiled, rather than Yum's OpenSSL
Cd/root/ruby-2.1.5/ext/opensslruby extconf.rb success ... make error ... make: * * * No rule to make target '/thread_native.h ', needed By ' OSSL.O '. Stop. Workaround: Open Makefilevim makefile to join the third line path, which is "Top_srcdir =/root/ruby-2.1.5" Srcdir =. Topdir =/usr/local/ruby/include/ Ruby-2.1.0top_srcdir =/root/ruby-2.1.5hdrdir = $ (Topdir) Save exit, make clean, re-make, success, make install successful [[email protected] openssl]# make linking Shared-object openssl.so[[email protected] openssl]# make Install/usr/bin/install-c-M 0755 openss L.so/usr/local/ruby/lib/ruby/site_ruby/2.1.0/x86_64-linuxinstalling Default OpenSSL libraries
2.
Gem Install MYSQL2
fetching: mysql2-0.4.3.gem (100%) building native extensions. this could take a while ... Error: error installing mysql2:error: failed to build gem native extension. /usr/local/ruby/bin/ruby -r ./ siteconf20160321-3049-192s9jh.rb extconf.rbchecking for ruby/thread.h... yeschecking FOR RB_THREAD_CALL_WITHOUT_GVL () in ruby/thread.h... yeschecking for rb_thread_ Blocking_region () ... yeschecking for rb_wait_for_single_fd () ... yeschecking for Rb_hash_dup () ... yeschecking for rb_intern3 () ... yeschecking for mysql_query () in -lmysqlclient... no-----Mysql client is missing. you may need to ' Apt-get install libmysqlclient-dev ' or ' yum install mysql-devel ', and Try again.-----*** extconf.rb failed ***could not create makefile due to some reason, probably lack of necessarylibraries and/or Headers. check the mkmf.log file for more details. you mayneed 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/ruby/bin/ ruby--with-mysql-dir--without-mysql-dir--with-mysql-include--without-mysql-include=${mysql-dir}/ include--with-mysql-lib--without-mysql-lib=${mysql-dir}/ Lib--with-mysql-config--without-mysql-config--with-mysql-dir--without-mysql-dir--with-mysql-include--without-mysql-includ e=${mysql-dir}/include--with-mysql-lib--without-mysql-lib=${mysql-dir}/lib--with-mysqlclientlib--without-Mysqlclientlib
It's been made clear that the installation of Mysql-devel
Yum Install Mysql-devel
This article is from the "clear" blog, make sure to keep this source http://duanyexuanmu.blog.51cto.com/1010786/1753548
Redmine Problem Collection 02