如何让 hotcocoa 创建默认项目?
我按照以下步骤操作:
下载 MacRuby。
双击 zip 文件将其解压,然后双击解压目录中的软件包开始安装。只需使用默认值即可。
如果您正在运行terminal.app,您可能需要终止它并重新启动它,以防万一安装将任何内容放入环境中。
使用以下命令安装 hotcocoa macgem:
sudo macgem install hotcocoa
更改为您希望项目目录所在的目录:
mkdir -p /path/to/my/projects/ cd /路径/到/我的/项目/
创建示例 hotcocoa 应用程序:
hotcocoa nameofyourapp
但是我收到此错误:
/usr/bin/hotcocoa:18:in `<main>': Could not find RubyGem hotcocoa (>= 0)
当我安装了 hotcocoa gem(不是 macgem)时,我收到此错误:
/Users/jeremysmith/.rvm/gems/ruby-1.9.2-p180/gems/hotcocoa- 0.5.1/lib/hotcocoa/template.rb:20:in
`gsub!': invalid byte sequence in UTF-8 (ArgumentError)
I followed these steps:
Download MacRuby.
Double-click on the zip file to extract it and double-click on the package inside the extracted directory to start the install. Just go with the defaults.
You may want to kill off terminal.app if you have it running and restart it, just in case the install put anything into the environment.
Use the following to install the hotcocoa macgem:
sudo macgem install hotcocoa
Change to the directory that you want your project directory to reside in:
mkdir -p /path/to/my/projects/ cd /path/to/my/projects/
Create a sample hotcocoa app:
hotcocoa nameofyourapp
But I get this error:
/usr/bin/hotcocoa:18:in `<main>': Could not find RubyGem hotcocoa (>= 0)
When I had the hotcocoa gem (not the macgem) installed, I got this error:
/Users/jeremysmith/.rvm/gems/ruby-1.9.2-p180/gems/hotcocoa- 0.5.1/lib/hotcocoa/template.rb:20:in
`gsub!': invalid byte sequence in UTF-8 (ArgumentError)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在ferous26的帮助下解决了这个问题。我需要:
关闭 RVM
I fixed the problem with the help of ferrous26. I needed to:
Turn RVM off with