I am using capistrano for deployment of rails application. But while i am deploying my rails code into server i am getting following error.
我正在使用capistrano来部署rails应用程序。但是当我将rails代码部署到服务器时,我得到了以下错误。
The deploy has failed with an error: Exception while executing on host 00.00.00.00: bundle exit status: 126
bundle stdout: /home/rod/.rvm/scripts/set: /usr/local/bin/bundle: /usr/bin/ruby: bad interpreter: No such file or directory
/home/rod/.rvm/scripts/set: line 19: /usr/local/bin/bundle: Success
How can i solve this issue?
我该如何解决这个问题?
2 个解决方案
#1
4
Its issue related to ruby upgrade but bundle package path was old. for resolve it you should reinstall bundle package again using gem.
它的问题与ruby升级有关,但是捆绑包路径是旧的。为了解决这个问题,您应该再次使用gem重新安装包包。
Uninstall from system
卸载从系统
sudo gem uninstall bundle
Install again
再次安装
sudo gem install bundle
#2
0
After MacOSX High Sierra update got this issue. High Sierra updates ruby gem to version 2.3 but xcpreety
command of Xcode 9 still using Ruby 2.0 which is unable to find now & gives bad interpreter. Just go to Terminal & run
MacOSX High Sierra更新后出现了这个问题。High Sierra将ruby gem升级到2.3版,但是xcpreety的Xcode 9命令仍然使用ruby 2.0,现在无法找到,并提供了错误的解释器。只要到终点站去跑就行了
sudo gem install xcpretty
insert your password it will update your xcpretty to ruby v2.3 & that will resolve the issue. Restart Xcode & do fresh clean build it works for me. Hope it helps!!!
插入您的密码它将更新您的xcpretty到ruby v2.3 &这将解决这个问题。重新启动Xcode,并进行全新的清洁构建。希望它帮助! ! !
#1
4
Its issue related to ruby upgrade but bundle package path was old. for resolve it you should reinstall bundle package again using gem.
它的问题与ruby升级有关,但是捆绑包路径是旧的。为了解决这个问题,您应该再次使用gem重新安装包包。
Uninstall from system
卸载从系统
sudo gem uninstall bundle
Install again
再次安装
sudo gem install bundle
#2
0
After MacOSX High Sierra update got this issue. High Sierra updates ruby gem to version 2.3 but xcpreety
command of Xcode 9 still using Ruby 2.0 which is unable to find now & gives bad interpreter. Just go to Terminal & run
MacOSX High Sierra更新后出现了这个问题。High Sierra将ruby gem升级到2.3版,但是xcpreety的Xcode 9命令仍然使用ruby 2.0,现在无法找到,并提供了错误的解释器。只要到终点站去跑就行了
sudo gem install xcpretty
insert your password it will update your xcpretty to ruby v2.3 & that will resolve the issue. Restart Xcode & do fresh clean build it works for me. Hope it helps!!!
插入您的密码它将更新您的xcpretty到ruby v2.3 &这将解决这个问题。重新启动Xcode,并进行全新的清洁构建。希望它帮助! ! !