gstroe安装和workbench使用

官网
http://www.gstore.cn/pcsite/index.html
gStoreWorkBench
http://www.gstore.cn/pcsite/download-2.html

1.环境要求

在这里插入图片描述

2.依赖软件安装

2.1zip/unzip 安装

判断 zip/unzip 是否安装

 `yum list installed | grep unzip` 

如果没有安装

 sudo yum install ‐y unzip zip 

2.2jdk 安装

判断 jdk 是否安装

java ‐version 

如果没有安装,则安装

sudo yum install java‐1.8.0‐openjdk‐devel.x86_64

2.3gc++安装

判断 gc++是否安装

 yum list installed |grep gcc‐c++ 

如果没有安装,则安装

 sudo yum install gcc‐c++ 

2.4readline 安装

判断 readline 是否安装

yum list installed |grep readline

如果没有安装,则安装

sudo yum install readline‐devel 

2.5 boost 库安装

` 判断 boost 是否安装

yum list installed |grep boost

centos boost 库默认版本为 1.53.0,需要按照下面安装脚本安装 boost_1_54_0 或 以上版本。 安装脚本:

wget https://nchc.dl.sourceforge.net/project/boost/boost/1.54.0/boost_1_5 4_0.tar.gz
tar ‐xzvf boost_1_54_0.tar.gz 
cd boost_1_54_0 
./bootstrap.sh 
./b2 
./b2 install

7 然 后 需 要 在 /etc/profile 文 件 最 后 加 上 8 export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH 9 之后执行 source /etc/profile 更新环境。
注:如果在./b2 install 后出现

 Performing configuration checks 
 ‐ 32‐bit : no (cached)
 ‐ 64‐bit : yes (cached) 
 ‐ arm : no (cached) 
 ‐ mips1 : no (cached) 
 ‐ power : no (cached) 
 ‐ sparc : no (cached) 
 ‐ x86 : yes (cached) 
 error: No best alternative for libs/coroutine/build/allocator_sources next alternative: required properties: <link>static <target‐os>windo ws <threading>multi 
 not matched 
 next alternative: required properties: <link>static <segmented‐stack s>on <threading>multi 
	 not matched 
	  next alternative: required properties: <link>static <threading>multi 
	   not matched 
	   ‐ has_icu builds : yes (cached) 

需要把 libs/coroutine/build/Jamfile.v2 文件下的 explicit yield_sources ;改为 explicit allocator_sources ;

注意,分号不能和sources连在一起,否则编译肯定报错。 另外,若需要mpi的支持,则应该先安装openmpi,然后在boost目录中增加user- config.jam 文件,文件中写入using mpi ;即可。
由于安装在/usr/local下,所以记得把/usr/local/lib/usr/local/lib64也加载到ldconfig里 面去,执行 echo "/usr/local/lib" >> /etc/ld.so.conf.d/boost.conf echo "/usr/local/lib64" >> /etc/ld.so.conf.d/boost.conf ldconfig -v

2.6 curl 库安装

判断 readline 是否安装

yum list installed |grep curl 

如果没有安装,则安装:
版本:7.55.1 1
地址:https://curl.haxx.se/download/curl‐7.55.1.tar.gz
安装脚本1

wget https://curl.haxx.se/download/curl‐7.55.1.tar.gz 
tar ‐xzvf curl‐7.55.1.tar.gz 
cd curl‐7.55.1 
./configure 
make 
make install

或者直接用下面命令安装:

sudo yum install libcurl‐devel 

2.7gStore 获取

2.7.1 download

打开 github
地址为https://github.com/pkumod/gStore
下载 gStore.zip 解压 zip 包 3.3.2

2.7.2 clone(推荐)

打开 github 网站 获取 git 地址 通过如下命令 clone

  git clone https://github.com/pkumod/gStore.git

注意:如果你电脑没有安装 git 的话,需要安装

  git sudo yum install git 

2.8 gStore 编译

cd gStore;
执行如下指令 (!!注意:需要两次make
make pre
make (比较慢,如果编译正确最后会出现 Compilation ends successfully!结果)
make (第二次 make,如果正确最后出现 Compilation ends successfully!结果)
bin/ginit (初始化,如果正确最后出现 system.db is built successfully!结果)
安装完成

workbench使用

  1. 安装tomcat 下载地址为https://tomcat.apache.org/download­80.cgi
  2. 把workbench压缩包放到tomcat的webapps目录并解压 在bin目录下
  3. 启动omcat
    ./startup.sh
    停止tomcat
    ./shutdown.sh
    登录登录网址为:
    http://workbench自己部署的服务器ip:8080/gworkbench/views/user/login.html
    设置远端服务器ip和端口保存到远端的gStore图数据库管理系统,注意远端服务器要安装gStore并启动ghttp服务 输入用户名、密码和验证码登录到已保存服务器上的gStore图数据库 管理系统 设置数据库连接。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值