[英]rbenv: bundle: command not found
我正在嘗試使用命令創建Bosh版本
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 -)"
我在創建bosh版本之前先獲取了此文件
錯誤:
> Using membrane 0.0.5
> Installing mime-types-data 3.2015.1120
>
> Gem::InstallError: mime-types-data requires Ruby version >= 2.0.
看起來bosh
在它自己的環境中運行(閱讀:它不會加載所有.bashrc
等配置。)
有人可能試圖把什么rbenv
-相關到~/.profile
文件(其應交bosh
)或嘗試另一種方式告訴bosh
關於環境。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.