zoukankan      html  css  js  c++  java
  • 安装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++。

  • 相关阅读:
    C#.NET 超大文件上传和断点续传的实现
    Linux下arp用法
    daf简记
    Linux route命令详解和使用示例(查看和操作IP路由表)
    CMake使用之一
    Crontab的格式
    linux 单网卡绑定两个ip
    云计算与虚拟化以及IaaS, PaaS和SaaS
    shell中判断用法
    解决screen Cannot open your terminal '/dev/pts/1'问题
  • 原文地址:https://www.cnblogs.com/laozhizi/p/4438333.html
Copyright © 2011-2022 走看看