gpt4 book ai didi

ruby-on-rails - 如何让 Heroku 在 Ubuntu 10.10 上工作(在 Windows 计算机上使用 VirtualBox)?

转载 作者:行者123 更新时间:2023-12-03 00:39:14 24 4
gpt4 key购买 nike

我是一个关注 RailsTutorial.org 程序的新手,已经安装/设置了 rvm、ruby 1.9.2、rails、curl、git 并创建了我的第一个应用程序并将其推送到 github(因此 SSH key 没问题)。

下一步是部署到 Heroku,这简直要了我的命:

gem install Heroku

工作正常,但在“heroku keys:add”或“heroku create”之后出现此错误:

    [app_first (master)]$ heroku keys:add
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- readline (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.11.0/lib/heroku/commands/app.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.11.0/lib/heroku/command.rb:5:in `block in <top (required)>'
from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.11.0/lib/heroku/command.rb:5:in `each'
from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.11.0/lib/heroku/command.rb:5:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.11.0/bin/heroku:7:in `<top (required)>'
from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/bin/heroku:19:in `load'
from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/bin/heroku:19:in `<main>

我的猜测是这与丢失或放错地方的 gem 有关,但我完全是菜鸟,所以猜测可能很遥远。这是 gem 环境:

[app_first (master)]$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [i686-linux]
- INSTALLATION DIRECTORY: /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial
- RUBY EXECUTABLE: /home/john/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
- EXECUTABLE DIRECTORY: /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial
- /home/john/.rvm/gems/ruby-1.9.2-p0@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/

有什么想法吗?提前致谢。

最佳答案

明白了!或者更确切地说,是一个 friend 帮我买的。这是 link to the solution .

关于ruby-on-rails - 如何让 Heroku 在 Ubuntu 10.10 上工作(在 Windows 计算机上使用 VirtualBox)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4017482/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com