2016-02-05 119 views
1

我試圖創建波什發佈使用命令rbenv:包:找不到命令

bosh create release --force --final --with-tarball 

安裝以下軟件版本我得到了以下錯誤

Error: 
    > + bundle package --all 
    > rbenv: bundle: command not found 
    > 
    > The `bundle' command exists in these Ruby versions: 
    > 2.2.4 
    'admin_ui' pre-packaging failed 

在我的Linux機器。

which ruby 
/root/.rbenv/shims/ruby 

ruby --version 
ruby 2.2.4p230 (2015-12-16 revision 53155) 

which bundle 
/root/.rbenv/shims/bundle 

bundle --version 
Bundler version 1.11.2 

更新: 〜/ .profile文件

export PATH="$HOME/.rbenv/bin:$PATH" 
eval "$(rbenv init -)" 

我創建波什發佈前源文件

錯誤:

> Using membrane 0.0.5 
    > Installing mime-types-data 3.2015.1120 
    > 
    > Gem::InstallError: mime-types-data requires Ruby version >= 2.0. 

回答

0

貌似bosh運行它'自己的環境(閱讀:它不會加載所有的.bashrc等CONFIGS)

有人可能試圖把什麼rbenv - 相關成~/.profile文件(它應該由bosh,閱讀),或嘗試另一種方式告訴bosh關於環境。

+0

我已經更新了〜/ .profile文件 –

+0

我不熟悉'bosh'的問題,我不知道,什麼shell配置它讀取,或者有它它自己的配置。請嘗試將相同的兩個字符串添加到'〜/ .bashrc','〜/ .bash_profile'或(首選方式)到'bosh'的環境配置中,如果它有一個。 – mudasobwa