简体   繁体   English

在Textmate中安装ruby软件包时出错

[英]Error installing ruby bundle in textmate

I have Textmate 2.0-beta.7.1 on Mac OSX v10.9.5 I would like to write ruby scripts so I installed the ruby bundle. 我在Mac OSX v10.9.5上有Textmate 2.0-beta.7.1,我想编写ruby脚本,所以我安装了ruby软件包。

However when I try to run a script I get the error: 但是,当我尝试运行脚本时,出现错误:

env: ruby18: No such file or directory

so having found that the path to my ruby installation using 所以发现使用我的红宝石安装路径

which ruby
/usr/bin/ruby

I made sure this was in my variable paths in Textmate>Preferences> Variables so that it under the PATH variable name it looked like this: 我确保这是在Textmate> Preferences> Variables中的变量路径中,以便它在PATH变量名下看起来像这样:

 $PATH:/usr/bin/ruby:/opt/local/bin:/usr/local/bin:/usr/texbin:/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin

I then tried to run my ruby script again and I got the same error. 然后,我尝试再次运行ruby脚本,但遇到了同样的错误。 I have googled for hours and the only resolution seems to be the addition of the ruby path to $PATH as I have done above so I'm a bit confused as to my I cant proceed 我已经搜索了几个小时,唯一的解决方法似乎是像上面所做的那样,将红宝石路径添加到$ PATH中,所以我有点困惑,我无法继续

Make sure you have not disabled the Bundle Support, TextMate, Text, Source, or SCM bundles in the Bundles tab of Preferences; 确保尚未在“首选项”的“捆绑包”选项卡中禁用捆绑包支持,TextMate,Text,Source或SCM捆绑包; these are all required bundles to support basic bundle functions. 这些都是支持基本捆绑软件功能所需的捆绑软件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM