CentOS上的SciDB14.3单机安装配置

来源:互联网 发布:串口接收数据原理 编辑:程序博客网 时间:2024/05/29 10:14

1. 打开SciDB的默认端口

修改/etc/sysconfig/iptables文件,添加下边的配置行

-A INPUT -m state --state NEW -m tcp -p tcp --dport 1239 -j ACCEPT

2. 下载源码,修改源码所在的路径为<dev_dir>/scidbtrunk

3. 安装第三方的各种库

cd <dev_dir>/scidbtrunk

deployment/deploy.sh prepare_toolchain localhost

4. 安装postgresql

cd <dev_dir>/scidbtrunk

deployment/deploy.sh prepare_postgres postgres postgres localhost/24 locolhost

postgresql的用户名是postgres,密码是postgres,位置及端口是localhost/24

5. 配置postgres用户可以读取scidb的源码地址

sudo usermod -G root -a postgres

chmod a+rx <dev_dir>

我这里使用的就是root权限,也可以使用一个scidb用户单独做scidb相关的操作

可以测试一下是否postgres用户的权限配好

sudo -u postgres ls <dev_dir>

如果显示的是permission_denied就是没有配置好

6. 环境变量的设置,可以修改~/.bashrc文件

export SCIDB_VER=14.3

export SCIDB_INSTALL_PATH=<dev_dir>/scidbtrunk/stage/install

export PATH=$SCIDB_INSTALL_PATH/bin:$PATH

7.Build过程,这个是出现问题最多的

./run.py setup

如果你的直接通过,恭喜!

问题一,boost库找不到,cmake文件里显示的boost库的版本要求是1.54,从sourceforge下载boost1.54压缩包并解压

安装bzip2-devel如下

sudo yum whatprovide */bzlib.h

sudo yum install bzip2-devel-1.xxxx.x86_64

编译

./bootstrap.sh --prefix=/opt/scidb/14.3/3rdparty/boost这里我是看到cmake里是按照这个路径寻找的,先这么写吧

安装

./bjam install

增加一个配置文件/etc/ld/so.conf.d/boost-x86_64.conf,内容为/opt/scidb/14.3/3rdparty/boost

配置BOOST_ROOT变量和BOOST_INDLUDEDIR变量

export BOOST_ROOT=/opt/scidb/14.3/3rdparty/boost

export BOOST_INCLUDEDIR=/opt/scidb/14.3/3rdparty/boost/include


0 0
原创粉丝点击