我有一个与Redmine 乘客错误类似的错误。我试图让 GitLab 与 Apache 和Passenger 一起工作,但没有运气。我被困在这个错误上:
无法加载此类文件 -- 捆绑器/设置 (LoadError) /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:219:in `block in run_load_path_setup_code' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:333:in `running_bundler' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:217:in `run_load_path_setup_code' /usr/share/passenger/helper-scripts/rack-preloader.rb:96:in `preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:150:in `' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `' /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `'
按照 Andriy 的建议,我尝试使用以下命令安装 bundler gem:`
sudo gem install bundler
安装后我重新启动了 apache2 服务,但错误仍然存在。
VirtualHost 定义为:
<VirtualHost *:80>
ServerName localhost
# Point this to your public folder of gitlab
DocumentRoot /home/git/gitlab/public
<Directory /home/git/gitlab/public>
Allow from all
Options -MultiViews
</Directory>
PassengerRuby /usr/bin/ruby
# Custom log file locations
ErrorLog /var/log/apache2/gitlab_error.log
CustomLog /var/log/apache2/gitlab_access.log combined
</VirtualHost>
<Location /users/auth/shibboleth/callback>
AuthType shibboleth
ShibRequestSetting requireSession 1
require valid-user
</Location>
<Location /Shibboleth.sso>
SetHandler shib
</Location>
有人可以阐明这个问题吗?