设为首页 加入收藏

TOP

GitLab Development Kit 环境搭建(二)
2017-10-09 13:33:58 】 浏览:3204
Tags:GitLab Development Kit 环境 搭建
redhat95-9.5-2.noarch.rpm

sudo yum install https://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

sudo yum install postgresql95-server postgresql95-devel libicu-devel cmake gcc-c++ redis ed fontconfig freetype libfreetype.so.6 libfontconfig.so.1 libstdc++.so.6 nodejs npm re2

 

sudo npm install phantomjs-prebuilt@2.1.12 -g

 

bundle config build.pg --with-pg-config=/usr/pgsql-9.5/bin/pg_config

sudo rvm install 2.3

sudo rvm use 2.3

#Ensure your user is in rvm group

sudo usermod -a -G rvm <username>

#add iptables exceptions, or sudo service stop iptables

Install go manually using go official installation instructions.

 

Install phantomJS manually, or download it and put in your $PATH. For

instructions, follow the Debian guide on phantomJS.

 

Git 1.7.1-3 is the latest git binary for CentOS 6.5 and GitLab. Spinach tests

will fail due to a higher version requirement by GitLab. You can follow the

instructions found in the GitLab recipes repository to install a newer

binary version of Git.

 

You may need to install Redis 2.8 or newer manually.

安装实践:

由于是内网环境,有些安装包可能会出现缺失,所以第一次安装不到的后面分批次安装。

yum安装软件1:

$ sudo yum install postgresql95-server postgresql95-devel libicu-devel cmake gcc-c++ redis ed fontconfig freetype libfreetype.so.6 libfontconfig.so.1 libstdc++.so.6 nodejs npm re2

Loaded plugins: product-id, security, subscription-manager

 

注意:有些软件服务器所在的yum源没有提供,则后面进行安装,如果已经安装,后面有些步骤可以跳过。

yum安装软件2:

安装postgresql相关

可参考地址:http://www.cnblogs.com/mchina/archive/2012/06/06/2539003.html

包下载地址:https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6.3-x86_64/

按照顺序rpm –ivh安装,也可yum安装

postgresql96-libs-9.6.4-1PGDG.rhel6.x86_64.rpm

postgresql96-9.6.4-1PGDG.rhel6.x86_64.rpm

postgresql96-server-9.6.4-1PGDG.rhel6.x86_64.rpm

postgresql96-devel-9.6.4-1PGDG.rhel6.x86_64.rpm

postgresql96-contrib-9.6.4-1PGDG.rhel6.x86_64.rpm

 

注意:安装postgresql96-contrib时可能会报却依赖:resource libxslt.so.1()(64bit)

下载libxslt-1.1.26-2.el6_3.1.x86_64.rpm安装,在安装postgresql96-contrib即可。

安装完成 验证即可:

验证步骤可如下:

service postgresql-9.6 initdb  #初始化

service postgresql-9.6 start  #启动服务

chkconfig postgresql-9.6 on  #加入开机自启动

#修改密码为postgres 此步骤只是验证,不是安装gdk环境必须的

# su - postgres

$ psql

# ALTER USER postgres WITH PASSWORD 'postgres';

# select * from pg_shadow ;

  出现相关信息。

验证成功!

yum安装软件3:

安装re2

下载地址:https://mirrors.tuna.tsinghua.edu.cn/epel/6/x86_64/

$sudo yum install  re2-20130115-2.el6.x86_64.rpm re2-devel-20130115-2.el6.x86_64.rpm

  

 

安装phantomjs-prebuilt

$ npm install phantomjs-prebuilt@2.1.12 --ignore-scripts

  

配置bundle

$ bundle config build.pg --with-pg-config=/usr/pgsql-9.6/bin/pg_config

  

 

安装GO

下载:https://golang.org/doc/install?download=go1.8.3.linux-amd64.tar.gz

解压安装: 

$ tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz

  

设置环境变量:

vim /etc/profile
export PATH=$PATH:/usr/local/go/bin

  

安装:phantomJS

下载:https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2

 

PHANTOM_JS="phantomjs-2.1.1-linux-x86_64"

cd ~

wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2

tar -xvjf $PHANTOM_JS.tar.bz2

sudo mv $PHANTOM_JS /usr/l
首页 上一页 1 2 3 4 5 下一页 尾页 2/5/5
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Homebrew-macOS缺失的软件包管理.. 下一篇一、Github博客搭建之jekyll安装

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目