首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Heroku Aspen上的“错误:未能构建创业板本机扩展”

Heroku Aspen上的“错误:未能构建创业板本机扩展”
EN

Stack Overflow用户
提问于 2012-07-20 03:25:05
回答 1查看 2K关注 0票数 1

我尝试克隆一个老Ruby项目,从一个Heroku应用程序到另一个,但我无法让它运行。

我已经设置了一个新的应用程序与aspen 1.8.6堆栈。

但是,当我将代码向上推时(直接从正在工作的应用程序中克隆),我会得到以下错误:

代码语言:javascript
复制
Counting objects: 465, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (214/214), done.
Writing objects: 100% (465/465), 192.12 KiB | 95 KiB/s, done.
Total 465 (delta 239), reused 440 (delta 230)

-----> Heroku receiving push
-----> Ruby/Rack app detected

-----> Installing gem patron from http://rubygems.org
       Building native extensions.  This could take a while...
       ERROR:  Error installing patron:
        ERROR: Failed to build gem native extension.

       /usr/local/bin/ruby extconf.rb
       checking for curl-config... no
       checking for main() in -lcurl... no
       *** 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
        --ruby=/usr/local/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:34:   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.


       Gem files will remain installed in /app/tmp/repo.git/gems_build/gems/patron-0.4.18 for inspection.
       Results logged to /app/tmp/repo.git/gems_build/gems/patron-0.4.18/ext/patron/gem_make.out
 !     Heroku push rejected, failed to install gem

To git@heroku.com:thumbify.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:thumbify.git'

任何建议都将不胜感激。

EN

回答 1

Stack Overflow用户

发布于 2013-06-27 13:57:37

sudo apt安装libcurl3 3-dev

libcurl是一个易于使用的客户端URL传输库,这是一个超出mri ruby要求的库。

票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11572427

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档