官网: http://www.gstore.cn/pcsite/index.html gStoreWorkBench: http://www.gstore.cn/pcsite/download-2.html
判断 zip/unzip 是否安装
`yum list installed | grep unzip`如果没有安装
sudo yum install ‐y unzip zip判断 jdk 是否安装
java ‐version如果没有安装,则安装
sudo yum install java‐1.8.0‐openjdk‐devel.x86_64判断 gc++是否安装
yum list installed |grep gcc‐c++如果没有安装,则安装
sudo yum install gcc‐c++判断 readline 是否安装
yum list installed |grep readline如果没有安装,则安装
sudo yum install readline‐devel` 判断 boost 是否安装
yum list installed |grep boostcentos 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 install7 然 后 需 要 在 /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
判断 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打开 github 地址为https://github.com/pkumod/gStore 下载 gStore.zip 解压 zip 包 3.3.2
打开 github 网站 获取 git 地址 通过如下命令 clone
git clone https://github.com/pkumod/gStore.git注意:如果你电脑没有安装 git 的话,需要安装
git sudo yum install gitcd gStore; 执行如下指令 (!!注意:需要两次make) make pre make (比较慢,如果编译正确最后会出现 Compilation ends successfully!结果) make (第二次 make,如果正确最后出现 Compilation ends successfully!结果) bin/ginit (初始化,如果正确最后出现 system.db is built successfully!结果) 安装完成
