0

I'm setting my son's (ancient) machine up so I can start teaching him how to code. I've installed RVM, updated Ruby and Rails. I had a problem installing Heroku Toolbelt but I found an item that said to install it using Homebrew. So I did that and thought I'd be on my way.

However, when I type "heroku create" I get the following message:

-bash: /usr/bin/heroku: /usr/local/heroku/ruby/bin/ruby: bad interpreter: Bad CPU type in executable

This machine is running Mac OS Snow Leopard 10.6.8. Ruby 1.9.3 and Rails 3.2.13.

I've tried everything I can think of and haven't been able to find an answer. Has anyone else been able to fix this issue?

Thanks

4

2 回答 2

2

看起来您正在为 64 位 CLI 使用 32 位 cpu。建议从 tarball 安装: http: //assets.heroku.com/heroku-client/heroku-client.tgz

Heroku 工具带会自动安装 CLI,它(我猜)与您的 Core Duo CPU 不兼容。上面的链接包含一个应该可以工作的 CLI。

于 2013-07-13T21:30:43.197 回答
0

fahad上面提到的,你需要从http://assets.heroku.com/heroku-client/heroku-client.tgz下载32位客户端

下载后,将文件从 tarball 解压缩到/usr/local/heroku/. 如果您已经安装了 64 位版本,那么您需要从一开始就删除这些文件/usr/local/heroku/

于 2014-11-07T02:43:01.107 回答