本文介绍了Heroku Gem安装后无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试让heroku在Ubuntu 9.10上运行
I am trying to get heroku running on Ubuntu 9.10
我输入
sudo gem install heroku
一切正常,但是随后我要运行:
and everything works fine but then when I go to run:
heroku list
我知道
推荐答案
运行 gem环境,查看 EXECUTABLE DIRECTORY 在哪里,并将其添加到您的 PATH中
run gem enviroment and look where is the EXECUTABLE DIRECTORY and add it to your PATH
就我而言:
$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /var/lib/gems/1.8
- /home/user/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/
$ export PATH=$PATH:/var/lib/gems/1.8/bin
或添加到〜/.bashrc
这篇关于Heroku Gem安装后无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!