在Fedora 15下将Rails程序部署到Heroku

时间:2011-09-19 21:59:27

标签: ruby-on-rails linux fedora

[root@chris-notebook helloworld]# heroku create helloworld --stack cedar
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- readline (LoadError)
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/lib/heroku/command/run.rb:1:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/lib/heroku/command.rb:17:in `block in load'
    from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/lib/heroku/command.rb:16:in `each'
    from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/lib/heroku/command.rb:16:in `load'
    from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/bin/heroku:13:in `<top (required)>'
    from /usr/local/bin/heroku:19:in `load'
    from /usr/local/bin/heroku:19:in `<main>'

当我尝试创建它时,每次我都遇到同样的错误。 我该怎么办?我在Ubuntu下看到了类似的问题。他们通过去某个地方解决它... src / ruby​​ ../ ext / readline然后执行

ruby extconf.rb
make
make install

但我没有在文件系统中看到该文件夹​​。为什么这么难?

更新

通过安装下一个包来解决

readline-devel.i686
readline-static.i686

然后在下载的ruby源文件夹ext/readline中进行类似的操作。

0 个答案:

没有答案