Centos 6.5 上的 Heroku Toolbelt 安装
Heroku Toolbelt Installation on Centos 6.5
我正在尝试在我们的 CentOS 服务器上安装 Heroku Toolbelt,但我似乎无法弄明白。我已经安装并运行了 ruby 和 rubygems,并且我 运行 从 heroku 入门教程
下载了独立版
wget -qO- https://toolbelt.heroku.com/install.sh | sh
运行'whereis heroku',我得到
heroku: /usr/local/heroku
和'which heroku'输出
/usr/local/heroku/bin/heroku
但是,当我尝试 运行 'heroku login' 时,我得到
/usr/local/heroku/bin/heroku
/usr/local/heroku/lib/heroku/helpers.rb:13:in `home_directory': undefined method `home' for Dir:Class (NoMethodError)
from /usr/local/heroku/lib/heroku/updater.rb:22:in `updated_client_path'
from /usr/local/heroku/lib/heroku/updater.rb:170:in `inject_libpath'
from /usr/local/heroku/bin/heroku:19
我无法在 Google 上为 heroku 找到同样的错误,而且我不太确定这个错误是什么意思。感谢您的帮助!
2015 年 6 月 22 日更新
添加软件版本
Centos: 6.5
Ruby: 1.9.3
Gems: 2.4.8
升级到 Ruby 1.9.3 后,我现在得到一个不同的错误。
运行 "which heroku" 现在给我以下错误 which heroku
/usr/bin/which: no heroku in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/hugmungus/bin)
2015 年 6 月 23 日更新
我尝试使用此 SF question 中的以下步骤将其添加到我的路径中,但在 运行ning 'Which heroku'[= 时我仍然遇到相同的错误17=]
您可能使用的是旧版本 ruby,请更新至 1.9 或更高版本
好的,终于成功了。以下是我采取的步骤:
第 1 步
按照 Jeff Dickey 的建议,我看了一下并尝试安装更新版本的 ruby (1.8.4 -> 1.9.3),但是,使用 wget 方法并没有给我很好的结果.因此,我使用 RVM 更新到 2.1.0 using this article,下面是安装 Ruby
的实际步骤
下载开发工具
yum groupinstall -y 'development tools'
安装 RVM
curl -L get.rvm.io | bash -s stable
如果您收到有关缺少 public 密钥的错误,运行 安装程序的第一个建议,然后重新 运行 curl 命令
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
将 RVM 添加到系统路径
source /etc/profile.d/rvm.sh
重新加载 RVM 以确保它在路径中,然后安装 ruby
rvm reload
rvm install 2.1.0
之后,安装ruby。
第 2 步
将Heroku添加到系统路径,我用this server fault question来完成这个
查找 Heroku 位置
whereis heroku
加入路径
echo 'pathmunge <your heroku install path>' > /etc/profile.d/her.sh
打开权限允许执行
chmod +x /etc/profile.d/ree.sh
注销,然后重新登录,就是这样。您可以在登录后 运行 此命令以验证它是否已添加到路径中。
echo $PATH
我正在尝试在我们的 CentOS 服务器上安装 Heroku Toolbelt,但我似乎无法弄明白。我已经安装并运行了 ruby 和 rubygems,并且我 运行 从 heroku 入门教程
下载了独立版wget -qO- https://toolbelt.heroku.com/install.sh | sh
运行'whereis heroku',我得到
heroku: /usr/local/heroku
和'which heroku'输出
/usr/local/heroku/bin/heroku
但是,当我尝试 运行 'heroku login' 时,我得到
/usr/local/heroku/bin/heroku
/usr/local/heroku/lib/heroku/helpers.rb:13:in `home_directory': undefined method `home' for Dir:Class (NoMethodError)
from /usr/local/heroku/lib/heroku/updater.rb:22:in `updated_client_path'
from /usr/local/heroku/lib/heroku/updater.rb:170:in `inject_libpath'
from /usr/local/heroku/bin/heroku:19
我无法在 Google 上为 heroku 找到同样的错误,而且我不太确定这个错误是什么意思。感谢您的帮助!
2015 年 6 月 22 日更新
添加软件版本
Centos: 6.5
Ruby: 1.9.3
Gems: 2.4.8
升级到 Ruby 1.9.3 后,我现在得到一个不同的错误。
运行 "which heroku" 现在给我以下错误 which heroku
/usr/bin/which: no heroku in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/hugmungus/bin)
2015 年 6 月 23 日更新
我尝试使用此 SF question 中的以下步骤将其添加到我的路径中,但在 运行ning 'Which heroku'[= 时我仍然遇到相同的错误17=]
您可能使用的是旧版本 ruby,请更新至 1.9 或更高版本
好的,终于成功了。以下是我采取的步骤:
第 1 步
按照 Jeff Dickey 的建议,我看了一下并尝试安装更新版本的 ruby (1.8.4 -> 1.9.3),但是,使用 wget 方法并没有给我很好的结果.因此,我使用 RVM 更新到 2.1.0 using this article,下面是安装 Ruby
的实际步骤下载开发工具
yum groupinstall -y 'development tools'
安装 RVM
curl -L get.rvm.io | bash -s stable
如果您收到有关缺少 public 密钥的错误,运行 安装程序的第一个建议,然后重新 运行 curl 命令
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
将 RVM 添加到系统路径
source /etc/profile.d/rvm.sh
重新加载 RVM 以确保它在路径中,然后安装 ruby
rvm reload
rvm install 2.1.0
之后,安装ruby。
第 2 步
将Heroku添加到系统路径,我用this server fault question来完成这个
查找 Heroku 位置
whereis heroku
加入路径
echo 'pathmunge <your heroku install path>' > /etc/profile.d/her.sh
打开权限允许执行
chmod +x /etc/profile.d/ree.sh
注销,然后重新登录,就是这样。您可以在登录后 运行 此命令以验证它是否已添加到路径中。
echo $PATH