在ubuntu 10.10上安装heroku

时间:2011-02-01 21:02:41

标签: ubuntu heroku gem

尝试安装heroku时出现以下错误。

arun@laptop:~/apps/pm$ sudo gem install heroku
Building native extensions.  This could take a while...
ERROR:  Error installing heroku:
    ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
    from extconf.rb:1


Gem files will remain installed in /var/lib/gems/1.8/gems/json-1.4.6 for inspection.
Results logged to /var/lib/gems/1.8/gems/json-1.4.6/ext/json/ext/generator/gem_make.out
arun@laptop:~/apps/pm$ 

1 个答案:

答案 0 :(得分:1)

看起来很像this issue

解决了这个问题
sudo apt-get install ruby1.8-dev