安装Heroku的工具区后红宝石错误 [英] Ruby error after installing heroku toolbelt

查看:132
本文介绍了安装Heroku的工具区后红宝石错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与Heroku的工作一胜7 - 32位系统,我没有管理员权限

I am working with Heroku on a win 7 - 32 bit system where I don't have admin privileges.

我已经下载并安装以下Heroku的工具区 http://community.webfaction.com以

I have downloaded and installed the heroku toolbelt following http://community.webfaction.com/questions/11803/heroku-toolbelt with

cd ~
curl http://assets.heroku.com/heroku-client/heroku-client.tgz | tar zx
export PATH=$HOME/heroku-client/bin/:$PATH

以下狮子座的建议,我已经添加到红宝石Windows路径来解决这个问题。

following Leo's advice ,I've added ruby to the windows path to fix this

现在,当我运行:

$ heroku run bash --app MYAPP

我得到:

f:/heroku-client/lib/heroku/updater.rb:164:in `spawn': Exec format error - "m:/heroku-client/bin/heroku" update (Errno::ENOEXEC)
    from f:/heroku-client/lib/heroku/updater.rb:164:in `background_update!'
    from f:/heroku-client/lib/heroku/updater.rb:144:in `inject_libpath'
from f:/heroku-client/bin/heroku:19:in `<main>'

我已经添加到Windows环境变量路径:

I have added to the windows env variable path:

F:/heroku-client/bin/;f:/heroku-client/lib/heroku/

我该如何解决这个问题?

How can I fix this?

推荐答案

我有同样的问题,最初在Windows ROR。 (每个人都建议我搬到LINUX / UNIX)

I had the same issues initially with ROR on Windows. (Everyone suggested me to move to LINUX/UNIX)

不过我设法在Windows上安装它。而不是安装Heroku的Toolbet(打破它已经安装Ruby和Rails)随着工头创业板安装Heroku的宝石。

Still I managed to install it on Windows. Rather than installing the Heroku Toolbet (which breaks ruby and rails which is already installed) install the heroku gem along with foreman gem.

创业板安装的Heroku

gem install heroku

创业板安装工长

然后ü可以很容易地使用它。

Then u can use it easily.

这篇关于安装Heroku的工具区后红宝石错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆