安装gitlab

安装源:

git clone https://gitlab.com/gitlab-org/gitlab-ce.git -b 7-10-stable gitlab

安装文档:

在github上:gitlabhq/doc/install/installation.md

执行:sudo -u git -H bundle install --deployment --without development test mysql aws

报错信息如下:

Errno::ECONNRESET: Connection reset by peer - SSL_connect (http://rubygems.org/)

解决:修改gem source

修改运行目录中的Gemfile文件的第一行:

source "https://ruby.taobao.org/"

重新安装ruby,执行遇到以下问题:

ERROR:  Error installing bluecloth:

ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

extconf.rb

mkmf.rb can't find header files for ruby at

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

可以通过安装ruby-devel来解决。但是在ubuntu系统下要用以下命令:

apt-get install ruby-full

然后又出现以下错误:

git@test1host:~/gitlab$ bundle install --deployment --without development test mysql aws
Fetching source index from https://ruby.taobao.org/
Using rake 10.4.2

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

  /usr/bin/ruby2.1 extconf.rb
checking for main() in -lc... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
  --with-opt-dir

  ......

解决:更新gcc,更换ubuntu官方源,apt-get重新安装gcc并安装g++。

上一篇:第十章 PageRank——Google的*表决式网页排名技术


下一篇:odoo订餐系统之类型设计