Some problems encountered in installing Redmine

Source: Internet
Author: User
Tags redmine

1) Implementation

Bundle install--without Development test Rmagick

Result Error:

Gem::installer::extensionbuilderror:error:failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in ' require ': cannot load such FILE--MKMF (loaderror)
	from/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in ' require ' from
	extconf.rb : 1:in ' <main> '


Gem files would remain installed in/var/lib/gems/1.9.1/gems/json-1.8.1 for inspection.
Results logged to/var/lib/gems/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out an

error occurred While installing JSON (1.8.1), and bundler cannot continue.
Make sure that ' gem install json-v ' 1.8.1 ' succeeds before.
After checking, confirm that you need to install Ruby1.9.1-dev.

Perform:

sudo aptitude install Ruby1.9.1-dev
After that, re-execute the above bundle program, or an error, but this time is different:

Gem::installer::extensionbuilderror:error:failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb checking for ruby/thread.h ... no checking for rb_thread_blocking_region () ... yes checking F or RB_WAIT_FOR_SINGLE_FD () ... yes checking for rb_hash_dup () ... yes checking for rb_intern3 () ... yes checking for mysql_qu Ery () in-lmysqlclient. No checking for main () In-lm ... yes checking for mysql_query () in-lmysqlclient ... no checking For main () In-lz ... yes checking for mysql_query () in-lmysqlclient ... no checking for main () In-lsocket ... no checking For mysql_query () in-lmysqlclient ... no checking for main () In-lnsl ... yes checking for mysql_query () in-lmysqlclient. . No checking for main () IN-LMYGCC ... no checking for mysql_query () in-lmysqlclient ... no * * * EXTCONF.RB failed Not create Makefile due to some reason, probably lack of necessary libraries  /mysql2/mkmf.log/or headers. Check the Mkmf.log file For more details.
 Your may need configuration options.
Check the/var/lib/gems/1.9.1/gems/mysql2-0.3.16/ext/mysql2/mkmf.log and find out:

Have_header:checking for ruby/thread.h ...--------------------no
Need to install

sudo aptitude install Libmysqld-dev
After that, you can then perform the bundle Setup program:

Your Bundle is complete!
Gems in the groups development, test and Rmagick were not installed.
Use ' bundle show [Gemname] ' to the where a bundled gem is installed.



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.