:LoadError:cannot load such file --readline
解决办法:找打gems安装路径下的byebug-9.0.6/lib/byebug/history.rb
注掉require 'readline'
报错:Authentication is required for http://rubygems.org/
Please supply credentials for this source....
解决办法:修改:/opt/software/gitlab-development-kit/gitlab-shell
下的Gemfile.lock Gemfile中的rubygems到http://gems.ruby-china.org源
执行报错:
make:pg_config :Command not found
解决办法:postgresql没有安装或者没有配置环境变量
确认已经安装,即配置环境变量
解决完诸多报错之后,后面还会进行一些数据库的初始化、redis的初始化操作,都是有命令自动完成的,耐心等待即可。出现下面的setup finished,恭喜你,安装成功了。
*********************************************
************** Setup finished! **************
*********************************************
cat HELP
# GitLab Development Kit cheat sheet
gdk run # Start everything
gdk run db # Start enough to run tests
gdk run app # Start GitLab, needs 'gdk run db'
gdk install gitlab_repo=https://my-fork # Install everything
gdk update # Pull application changes from Git
gdk reconfigure # Delete and regenerate all config files created by GDK
gdk psql -d gitlabhq_development # Postgres console
gdk redis-cli # Redis console
# Development admin account: root / 5iveL!fe
For more information about GitLab development see
https://docs.gitlab.com/ce/development/README.html.
*********************************************
git clone https://gitlab.com/gitlab-org/gitaly.git gitaly/src/gitlab.com/gitlab-org/gitaly
Cloning into 'gitaly/src/gitlab.com/gitlab-org/gitaly'...
remote: Counting objects: 6183, done.
remote: Compressing objects: 100% (3453/3453), done.
remote: Total 6183 (delta 2935), reused 5057 (delta 2280)
Receiving objects: 100% (6183/6183), 6.13 MiB | 1.56 MiB/s, done.
Resolving deltas: 100% (2935/2935), done.
GO15VENDOREXPERIMENT=1 GOPATH=/opt/chenyu/gdk-geo/gitaly go install gitlab.com/gitlab-org/gitaly/cmd/...
sed \
-e "s|^socket_path.*|socket_path = \"/opt/chenyu/gdk-geo/gitaly.socket\"|" \
-e "s|# prometheus_listen_addr|prometheus_listen_addr|" \
-e "s|/home/git|/opt/chenyu/gdk-geo|" gitaly/src/gitlab.com/gitlab-org/gitaly/config.toml.example > gitaly/config.toml
ln -s /opt/chenyu/gdk-geo/gitaly/src/gitlab.com/gitlab-org/gitaly/ruby gitaly/ruby
gdk run
在项目/opt/chenyu