4
回答
安装rails出现问题

本文新手,在安装rails的时候出现以下问题:

Building native extensions.  This could take a while...
ERROR:  Error installing rails:
	ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** 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}/lib64
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/bin/ruby
	--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


Gem files will remain installed in /home/jipeng/.gem/ruby/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /home/jipeng/.gem/ruby/gems/nokogiri-1.6.6.2/ext/nokogiri/gem_make.out



总解决不掉,这是什么原因?
关于版本:
libxml2-2.9.1-5.el7_1.2.x86_64
zlib-1.2.7-13.el7.x86_64



举报
jappro
发帖于3年前 4回/1K+阅
顶部