Name | Modified | Size | Downloads / Week |
---|---|---|---|
README.md | 2017-07-27 | 3.5 kB | |
Totals: 1 Item | 3.5 kB | 0 |
GENOMECMP
INSTALLING PACKAGE (UBUNTU)
-
Install genomecmp package using dpkg: $ sudo dpkg -i genomecmp_0.03.255-0.deb
-
If missing dependencies error occurs, install prerequisites and than repeat step 1: $ sudo apt-get -f install or $ sudo apt-get install lighttpd libarchive13 postgresql-server-deb-9.4 python3-pip python3-dev g++-5
-
Create datebase: $ sudo -u postgres createuser --no-superuser --createdb --no-createrole mydb $ sudo -u postgres createdb -O mydb mydb $ sudo -u postgres psql -c "alter user mydb with encrypted password 'mydb';"
-
Test connection to the database: psql mydb -U mydb If failed with error: "psql: FATAL: Peer authentication failed for user "mydb"" you should e.g. edit /etc/postgresql/9.1/main/pg_hba.conf --- in line "local all all peer" change 'peer' to 'md5'.Than restart database server #/etc/init.d/postgresql restart (or sudo service postgresql restart)
-
Go to application directory: $ cd /etc/genomecmp
-
Install python packages: $ sudo pip3 install -r pip_prod.requirements
-
Setup server configuration by editing file config_default.py and saving it to config_custom.py:
- set database name (DB_NAME)
- set user name (DB_USER)
-
set database password (DB_PASSWORD)
-
Run configure.py: $ python3 configure.py
-
Init datebase: $ sh syncdb.sh
-
Run server: $ sh runsrv.sh
SETTING DEVELOPMENT ENVIRONMENT (UBUNTU)
SETTING PREREQUISITES
-
Install dependencies: $ sudo apt-get install lighttpd libarchive13 postgresql-server-dev-9.4 python3-pip python3-dev g++-5 postgresql scons nodejs nodejs-legacy npm git mercurial libpq-dev
-
Create datebase: $ sudo -u postgres createuser --no-superuser --createdb --no-createrole mydb $ sudo -u postgres createdb -O mydb mydb $ sudo -u postgres psql -c "alter user mydb with encrypted password 'mydb';"
-
Test connection to the database: psql mydb -U mydb If failed with error: "psql: FATAL: Peer authentication failed for user "mydb"" you should e.g. edit /etc/postgresql/9.1/main/pg_hba.conf --- in line "local all all peer" change 'peer' to 'md5'.Than restart database server #/etc/init.d/postgresql restart (or sudo service postgresql restart)
-
install python packages sudo pip3 install -r pip_dev.requirements
-
install bower sudo npm install -g bower
-
Download and unzip boost from www.boost.org, then run: $ ./boostrap.sh $ ./b2
-
Copy the subdirectory 'boost' to '/usr/local/include', copy all the files from the 'stage/lib' to '/usr/local/lib' and put the line 'export LD_LIBRARY_PATH=/usr/local/lib' into /etc/bash.profile
-
Install 'mt4cpp' library http://mt4cpp.sourcefore.net, version at least 0.03: $ sudo dpkg -i mt4cpp_0.3.71-1_amd64.deb # (for 64 bit) or $ sudo dpkg -i mt4cpp_0.3.71-1_i386.deb or unzip mt4cpp source into '/usr/local/include'
-
Install javascript packages $ cd client $ bower install
-
Install 'dtl' library. $ git clone https://github.com/cubicdaiya/dtl.git $ cd dtl $ sudo scons install
-
Setup server configuration by editing file config_default.py and saving it to config_custom.py:
- set database name (DB_NAME)
- set user name (DB_USER)
-
set database password (DB_PASSWORD)
-
Run configure.py $ python3 configure.py
-
Setup build configuration by editing file build_default.ini and saving it to build_custom.ini
FIRST COMPILATION
$ scons $ scons syncdb=1
COMPILATION
$ scons