Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 本地与全局rbenv版本|捆绑包不使用rbenv_Ruby_Macos_Bundle_Rbenv_Osx Server - Fatal编程技术网

Ruby 本地与全局rbenv版本|捆绑包不使用rbenv

Ruby 本地与全局rbenv版本|捆绑包不使用rbenv,ruby,macos,bundle,rbenv,osx-server,Ruby,Macos,Bundle,Rbenv,Osx Server,我正试图在OSX服务器上安装Gitlab,请遵循 我是ruby的新手,所以如果我犯了初学者的错误,就解雇我吧。。。但我最终在/usr/local/var/rbenv/versions/1.9.3-p448中安装了完整的Ruby ~/.rbenv/versions/1.9.3-p448 我可以删除其中一个吗?我资源不足 此外。。。我的bundle命令仍然使用OSX提供的Ruby: macserver:~ admin$ ls -l `which ruby` -rwxr-xr-x 8 admin

我正试图在OSX服务器上安装Gitlab,请遵循

我是ruby的新手,所以如果我犯了初学者的错误,就解雇我吧。。。但我最终在/usr/local/var/rbenv/versions/1.9.3-p448中安装了完整的Ruby ~/.rbenv/versions/1.9.3-p448

我可以删除其中一个吗?我资源不足

此外。。。我的bundle命令仍然使用OSX提供的Ruby:

macserver:~ admin$ ls -l `which ruby`
-rwxr-xr-x  8 admin  staff  410 Sep 30 18:47 /usr/local/var/rbenv/shims/ruby*

macserver:~ admin$ ls -l `which bundle`
-rwxr-xr-x  1 admin  admin  419 Sep 18 18:05 /Applications/Server.app/Contents/ServerRoot/usr/bin/bundle*

macserver:~ admin$ bundle --version
/Applications/Server.app/Contents/ServerRoot/usr/lib/ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [] (Gem::LoadError)
from /Applications/Server.app/Contents/ServerRoot/usr/lib/ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
from /Applications/Server.app/Contents/ServerRoot/usr/lib/ruby/1.8/rubygems.rb:1208:in `gem'
from /Applications/Server.app/Contents/ServerRoot/usr/bin/bundle:18

我哪里出错了?

可以安全地删除其中一个目录,可能是~/.rbenv/versions/1.9.3-p448。你能告诉我你的个人资料中是否有类似的内容吗?export RBENV_ROOT=/usr/local/RBENV export PATH=“$RBENV_ROOT/bin:$PATH“eval”$(RBENV init-)还有“echo$RBENV_ROOT”的输出是什么?我取消了我的项目,现在只使用纯Git:(.作为对您的响应:RBENV_ROOT=/usr/local/var/RBENV。我的配置文件中有这样一个信息:“如果哪个RBENV>/dev/null;那么eval”$(RBENV init)“fi-”可能相关: