16.04 - Why I obtain these error messages when I try to install gem bundler on Ubuntu? (Could not create Makefile) - Ask Ubuntu


i not ruby developer , finding many difficult install redmine (that developed in ruby) on ububuntu 16.04 server.

i following official tutorial: http://www.redmine.org/projects/redmine/wiki/howto_install_redmine_on_ubuntu_step_by_step

it seems simple finding many difficult when "ensure bundler gem installed".

i not sure bundler gem have installed. have understand (correct me if doing wrong assertion) gem packages excutable ruby application (something jar file in java).

so, problem when perform statment in bash console:

sudo gem update 

i obtain many error messages this:

root@betrivius-vps:~# sudo gem update updating installed gems updating molinillo fetching: molinillo-0.5.4.gem (100%) installed molinillo-0.5.4 parsing documentation molinillo-0.5.4 installing ri documentation molinillo-0.5.4 installing darkfish documentation molinillo-0.5.4 done installing documentation molinillo after 1 seconds parsing documentation molinillo-0.5.4 done installing documentation molinillo after 0 seconds updating mysql2 building native extensions.  take while... error:  error installing mysql2:         error: failed build gem native extension.      current directory: /var/lib/gems/2.3.0/gems/mysql2-0.4.5/ext/mysql2 /usr/bin/ruby2.3 -r ./siteconf20161115-29205-1v41srl.rb extconf.rb checking rb_absint_size()... yes checking rb_absint_singlebit_p()... yes checking ruby/thread.h... yes checking rb_thread_call_without_gvl() in ruby/thread.h... yes checking rb_thread_blocking_region()... no checking rb_wait_for_single_fd()... yes checking rb_hash_dup()... yes checking rb_intern3()... yes checking rb_big_cmp()... yes checking mysql_query() in -lmysqlclient... no ----- mysql client missing. may need 'apt-get install libmysqlclient-dev' or 'yum install mysql-devel', , try again. ----- *** 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/bin/$(ruby_base_name)2.3         --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-include=${mysql-dir}/include         --with-mysql-lib         --without-mysql-lib=${mysql-dir}/lib         --with-mysqlclientlib         --without-mysqlclientlib  see why extension failed compile, please check mkmf.log can found here:    /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/mysql2-0.4.5/mkmf.log  extconf failed, exit code 1  gem files remain installed in /var/lib/gems/2.3.0/gems/mysql2-0.4.5 inspection. results logged /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/mysql2-0.4.5/gem_make.out updating nokogiri building native extensions.  take while... error:  error installing nokogiri:         error: failed build gem native extension.      current directory: /var/lib/gems/2.3.0/gems/nokogiri-1.6.8.1/ext/nokogiri /usr/bin/ruby2.3 -r ./siteconf20161115-29205-11qd2.rb extconf.rb checking if c compiler accepts ... yes building nokogiri using packaged libraries. using mini_portile version 2.1.0 checking gzdopen() in -lz... no zlib missing; necessary building libxml2 *** 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/bin/$(ruby_base_name)2.3         --help         --clean         --use-system-libraries         --enable-static         --disable-static         --with-zlib-dir         --without-zlib-dir         --with-zlib-include         --without-zlib-include=${zlib-dir}/include         --with-zlib-lib         --without-zlib-lib=${zlib-dir}/lib         --enable-cross-build         --disable-cross-build  see why extension failed compile, please check mkmf.log can found here:    /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.8.1/mkmf.log  extconf failed, exit code 1  gem files remain installed in /var/lib/gems/2.3.0/gems/nokogiri-1.6.8.1 inspection. results logged /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.8.1/gem_make.out updating psych fetching: psych-2.2.0.gem (100%) building native extensions.  take while... installed psych-2.2.0 parsing documentation psych-2.2.0 installing ri documentation psych-2.2.0 installing darkfish documentation psych-2.2.0 done installing documentation psych after 2 seconds parsing documentation psych-2.2.0 done installing documentation psych after 1 seconds updating rmagick building native extensions.  take while... error:  error installing rmagick:         error: failed build gem native extension.      current directory: /var/lib/gems/2.3.0/gems/rmagick-2.16.0/ext/rmagick /usr/bin/ruby2.3 -r ./siteconf20161115-29205-1qfeji3.rb extconf.rb checking gcc... yes checking magick-config... no checking pkg-config... no can't install rmagick 2.16.0. can't find magick-config or pkg-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin  *** 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/bin/$(ruby_base_name)2.3  see why extension failed compile, please check mkmf.log can found here:    /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/rmagick-2.16.0/mkmf.log  extconf failed, exit code 1  gem files remain installed in /var/lib/gems/2.3.0/gems/rmagick-2.16.0 inspection. results logged /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/rmagick-2.16.0/gem_make.out updating sqlite3 building native extensions.  take while... error:  error installing sqlite3:         error: failed build gem native extension.      current directory: /var/lib/gems/2.3.0/gems/sqlite3-1.3.12/ext/sqlite3 /usr/bin/ruby2.3 -r ./siteconf20161115-29205-1mvfxcm.rb extconf.rb checking sqlite3.h... no sqlite3.h missing. try 'brew install sqlite3', 'yum install sqlite-devel' or 'apt-get install libsqlite3-dev' , check shared library search path (the location sqlite3 shared library located). *** 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/bin/$(ruby_base_name)2.3         --with-sqlite3-config         --without-sqlite3-config         --with-pkg-config         --without-pkg-config         --with-sqlite3-dir         --without-sqlite3-dir         --with-sqlite3-include         --without-sqlite3-include=${sqlite3-dir}/include         --with-sqlite3-lib         --without-sqlite3-lib=${sqlite3-dir}/lib  see why extension failed compile, please check mkmf.log can found here:    /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/sqlite3-1.3.12/mkmf.log  extconf failed, exit code 1 

in these error messages have check /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/sqlite3-1.3.12/mkmf.log file content, content (that maybe give additional information understand probem):

package configuration sqlite3 not found find_header: checking sqlite3.h... -------------------- no  "gcc -o conftest -i/usr/include/x86_64-linux-gnu/ruby-2.3.0 -i/usr/include/ruby-2.3.0/ruby/backward -i/usr/include/ruby-2.3.0 -i. -wdate-t$ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main(int argc, char **argv) 4: { 5:   return 0; 6: } /* end */  "gcc -e -i/usr/include/x86_64-linux-gnu/ruby-2.3.0 -i/usr/include/ruby-2.3.0/ruby/backward -i/usr/include/ruby-2.3.0 -i. -wdate-time -d_fo$ conftest.c:3:21: fatal error: sqlite3.h: no such file or directory compilation terminated. checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sqlite3.h> /* end */  -------------------- 

so, reading previous log file, seems problem related to:

  fatal error: sqlite3.h: no such file or directory 

it seems c header file missing don't know why.

why have problem? missing? how can try fix issue?

tnx

you're missing sqlite program/libs. install using command given in logs

sudo apt-get update sudo apt-get install sqlite3 libsqlite3-dev 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User