我的服务器是ubuntu 14.04(32位)。
GitLab易于安装仅适用于64位Ubuntu。
所以我按照指南从源代码安装GitLab。 (documentation)
但是,在Install GitLab Shell Phase中,发生了如下错误。 (第一行......)
# sudo -u git -H bundle exec rake gitlab:shell:install REDIS_URL=unix:/var/run/redis/redis.sock RAILS_ENV=production SKIP_STORAGE_VALIDATION=true
rake aborted!
LoadError: cannot load such file -- /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc_c
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc.rb:37:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc.rb:37:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/errors.rb:30:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/errors.rb:30:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc.rb:32:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc.rb:32:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gitaly-0.5.0/ruby/lib/gitaly/commit_services_pb.rb:4:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gitaly-0.5.0/ruby/lib/gitaly.rb:6:in `<top (required)>'
/home/git/gitlab/config/application.rb:5:in `<top (required)>'
/home/git/gitlab/Rakefile:5:in `require'
/home/git/gitlab/Rakefile:5:in `<top (required)>'
/usr/local/bin/bundle:22:in `load'
/usr/local/bin/bundle:22:in `<main>'
(See full trace by running task with --trace)
我认为这可能是红宝石的错误,但我不知道红宝石......
我如何解决这个问题?
谢谢:)
答案 0 :(得分:1)
我解决了。
通过日志,没有grpc_c文件。
selectExpr
所以我将ruby(相同版本)安装到root帐户。
我安装了gem和grpc。
在grpc路径中,
LoadError: cannot load such file -- /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc_c
有&#34; grpc_c.so&#34;共享库文件。因此,我复制了它并解决了问题。