Last active
January 25, 2018 15:00
-
-
Save yzhang1991/4bfb9077a5c1925ebead to your computer and use it in GitHub Desktop.
Install SciDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scp yzhang@linux04.cs.uh.edu:~/packages/scidb-15.7.0.9267.tgz ./ | |
tar -xzf scidb-15.7.0.9267.tgz | |
mv scidb-15.7.0.9267/ scidbtrunk | |
sudo apt-get update | |
sudo apt-get -y install subversion expect openssh-server openssh-client | |
# The following environment variables should go into ~/.bashrc | |
export SCIDB_VER="15.7" | |
export SCIDB_SOURCE_PATH="/home/scidb/scidbtrunk" | |
export SCIDB_BUILD_PATH="$SCIDB_SOURCE_PATH/stage/build" | |
export SCIDB_INSTALL_PATH="/opt/scidb/$SCIDB_VER" | |
export SCIDB_BUILD_TYPE="RelWithDebInfo" | |
export PATH="$SCIDB_INSTALL_PATH/bin:.:$PATH" | |
export LD_LIBRARY_PATH="$SCIDB_INSTALL_PATH/lib" | |
cd /home/scidb/scidbtrunk | |
deployment/deploy.sh prepare_toolchain localhost | |
deployment/deploy.sh prepare_coordinator localhost | |
sudo usermod -G scidb -a postgres | |
chmod g+rx /home/scidb/ | |
# ./run.py setup | |
# ./deployment/deploy.sh build_fast ~/scidbtrunk/packages | |
scp -r yzhang@linux04.cs.uh.edu:~/www/packages ./ | |
./deployment/deploy.sh scidb_install ~/scidbtrunk/packages localhost | |
# Configure PostgreSQL access: | |
# sudo vim /etc/postgresql/9.3/main/pg_hba.conf | |
# Replace line 92 with: | |
# host all all 0.0.0.0/0 md5 | |
# | |
# sudo vim /etc/postgresql/9.3/main/postgresql.conf | |
# At line 59, put listen_addresses = '*' | |
# | |
# I also changed max_connections = 200 | |
# | |
# Restart the PostgreSQL server: | |
# sudo service postgresql restart | |
--------------------------------------------------------------------- | |
sudo chown -R scidb:scidb /opt/scidb | |
Add SciDB-R package: | |
install.packages('devtools') | |
devtools::install_github("Paradigm4/SciDBR") | |
Install shim: | |
wget http://paradigm4.github.io/shim/ubuntu_14.04_shim_15.7_amd64.deb | |
sudo apt-get install -y gdebi | |
sudo gdebi ubuntu_14.04_shim_15.7_amd64.deb | |
sudo service shimsvc start | |
Add rs, scidbtime to /usr/local/bin | |
Need to configure scidb to be a passwordless sudo user in /etc/sudoers | |
deployment/deploy.sh scidb_prepare scidb "" localdb localdb localdb /home/scidb/scidbdata/localdb 2 default 1 127.0.0.1 | |
deployment/deploy.sh scidb_prepare ubuntu "" localdb localdb localdb /home/ubuntu/scidbdata/localdb 1 default 1 127.0.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment