简体   繁体   English

bash:命令未找到capify。 RVM,Mac 10.8.4

[英]bash: command not found capify . RVM, Mac 10.8.4

I'm having troubles getting the capistrano capify . 我有麻烦得到capistrano capify . command to work. 命令工作。 I have installed the gem (tried manually and via the gemfile to see if it would help) successfully as it appears and I am using RVM and mac osx 10.8.4. 我已经成功安装了gem(手动尝试并通过gemfile查看它是否有用),因为它出现了,我使用的是RVM和mac osx 10.8.4。

All of the documented issues with this issue point seem to a path issue, as my etc/paths file seems very different to the results of echo $PATH this would seem accurate. 这个问题点的所有记录的问题似乎都是路径问题,因为我的etc/paths文件似乎与echo $PATH的结果非常不同,这看似准确。 However, I'm not sure what to rectify and what to add to get things working. 但是,我不确定要纠正什么以及添加什么来使事情有效。

How can I change my settings and get the capify . 如何更改设置并获取capify。 command to work? 命令工作?

Below is my env info. 以下是我的环境信息。 If anyone needs more code just shout. 如果有人需要更多的代码只是喊。

sudo nano etc/paths sudo nano etc / paths

/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin

result of echo $PATH echo $PATH结果

/Users/andrew/.rvm/gems/ruby-1.9.3-p448/bin:/Users/andrew/.rvm/gems/ruby-1.9.3-p448@global/bin:/Users/andrew/.rvm/rubies/ruby-1.9.3-p448/bin:/Users/andrew/.rvm/bin:/Applications/Postgres.app/Contents/MacOS/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/andrew/.rvm/bin:/home/user/.gem/ruby/1.8  

bundle install 捆绑安装

Using capistrano (3.0.0) 

bundle show capistrano 捆绑显示capistrano

/Users/andrew/.rvm/gems/ruby-1.9.3-p448/gems/capistrano-3.0.0

running with bundle exec 与bundle exec一起运行

bundle exec capify .
bundler: command not found: capify
Install missing gem executables with `bundle install`

It seems it's deprecated. 它似乎已被弃用了。 Lucky you found this, I need this tomorrow :) 幸运的是你发现了这个,明天我需要这个:)

https://github.com/capistrano/capistrano/issues/679 https://github.com/capistrano/capistrano/issues/679

Instead of 代替

capify .

run

cap install

These can be encapsulated with bundle exec as well. 这些也可以用bundle exec封装。

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

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