我正在 Rails 应用程序中制作联系表格,当bundle install
我尝试从 gem 中收到错误时,我从未添加到 gemfile 中。有些神秘curb gem
缺少一些图书馆或其他东西。
由于他们的平台,我一直在寻找答案,但无法弄清楚他们在说什么。我使用Cloud9
linux
环境rails 4.2.0
也许你们中的一些人有想法如何解决这个问题?下面是完整的错误信息。
Gem::Ext::BuildError: 错误: 无法构建 gem 原生扩展。/usr/local/rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20150504-13714-unpe0g.rb extconf.rb 检查 curl-config ... 不检查 -lcurl 中的 main()。 .. 没有 * extconf.rb 失败 * 由于某种原因无法创建 Makefile,可能缺少必要的库和/或头文件。检查 mkmf.log 文件以获取更多详细信息。您可能需要配置选项。提供的配置选项: --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/rvm/rubies/ruby-2.1.5/bin/ruby --with-curl-dir --without-curl-dir --with-curl-include --without- curl-include=${curl-dir}/include --with-curl-lib --without-curl-lib=${curl-dir}/lib --with-curllib --without-curllib extconf.rb:18 :在
<main>': Can't find libcurl or curl/curl.h (RuntimeError) Try passing --with-curl-dir or --with-curl-lib and --with-curl-include options to extconf. extconf failed, exit code 1 Gem files will remain installed in /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/curb-0.8.8 for inspection. Results logged to /usr/local/rvm/gems/ruby-2.1.5@rails4/extensions/x86_64-linux/2.1.0/curb-0.8.8/gem_make.out An error occurred while installing curb (0.8.8), and Bundler cannot continue. Make sure that
gem install curl -v '0.8.8'` 在捆绑之前成功。
这是我的gemfile
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'sass', '3.4.13'
gem 'sass-rails', '5.0.1'
gem 'uglifier', '2.5.3'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '4.0.3'
gem 'turbolinks', '2.3.0'
gem 'jbuilder', '2.2.3'
gem 'sdoc', '0.4.0', group: :doc
gem 'mailgun-rails', '~> 0.1.1'
group :development, :test do
gem 'sqlite3', '1.3.9'
gem 'byebug', '3.4.0'
gem 'web-console', '2.0.0.beta3'
gem 'spring', '1.1.3'
end
group :test do
gem 'minitest-reporters', '1.0.5'
gem 'mini_backtrace', '0.1.3'
gem 'guard-minitest', '2.3.1'
end
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
end