相关疑难解决方法(0)

使用rails 3.1.0和ubuntu安装Nokogiri 1.5.0时出错

以下是在服务器上运行bundle install vendor/gems的错误:

Installing nokogiri (1.5.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /home/dtt/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for libxml/parser.h... no
-----
libxml2 is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir …
Run Code Online (Sandbox Code Playgroud)

ubuntu ruby-on-rails nokogiri bundler

36
推荐指数
4
解决办法
3万
查看次数

手动安装Ruby Gems

我在办公室使用代理脚本连接到互联网.结果我的命令提示符(Win XP)没有连接,我只能使用浏览器访问网络.

有没有我可以手动安装一些我需要的红宝石 - 不使用

gem install 'abc'
Run Code Online (Sandbox Code Playgroud)

或者有没有办法让我的命令提示符连接到互联网.虽然我的IE设置确实使用了脚本,但我仍然无法让CMD连接.

rubygems

31
推荐指数
2
解决办法
4万
查看次数

标签 统计

bundler ×1

nokogiri ×1

ruby-on-rails ×1

rubygems ×1

ubuntu ×1