簡體   English   中英

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

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

我有麻煩得到capistrano capify . 命令工作。 我已經成功安裝了gem(手動嘗試並通過gemfile查看它是否有用),因為它出現了,我使用的是RVM和mac osx 10.8.4。

這個問題點的所有記錄的問題似乎都是路徑問題,因為我的etc/paths文件似乎與echo $PATH的結果非常不同,這看似准確。 但是,我不確定要糾正什么以及添加什么來使事情有效。

如何更改設置並獲取capify。 命令工作?

以下是我的環境信息。 如果有人需要更多的代碼只是喊。

sudo nano etc / paths

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

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  

捆綁安裝

Using capistrano (3.0.0) 

捆綁顯示capistrano

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

與bundle exec一起運行

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

它似乎已被棄用了。 幸運的是你發現了這個,明天我需要這個:)

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

代替

capify .

cap install

這些也可以用bundle exec封裝。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM