Redmine Problem Collection 02

Source: Internet
Author: User
Tags install openssl redmine

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.