Home
Name Modified Size InfoDownloads / Week
README.md 2017-07-27 3.5 kB
Totals: 1 Item   3.5 kB 0

GENOMECMP

INSTALLING PACKAGE (UBUNTU)

  1. Install genomecmp package using dpkg: $ sudo dpkg -i genomecmp_0.03.255-0.deb

  2. 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

  3. 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';"

  4. 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)

  5. Go to application directory: $ cd /etc/genomecmp

  6. Install python packages: $ sudo pip3 install -r pip_prod.requirements

  7. Setup server configuration by editing file config_default.py and saving it to config_custom.py:

  8. set database name (DB_NAME)
  9. set user name (DB_USER)
  10. set database password (DB_PASSWORD)

  11. Run configure.py: $ python3 configure.py

  12. Init datebase: $ sh syncdb.sh

  13. Run server: $ sh runsrv.sh

SETTING DEVELOPMENT ENVIRONMENT (UBUNTU)

SETTING PREREQUISITES

  1. 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

  2. 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';"

  3. 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)

  4. install python packages sudo pip3 install -r pip_dev.requirements

  5. install bower sudo npm install -g bower

  6. Download and unzip boost from www.boost.org, then run: $ ./boostrap.sh $ ./b2

  7. 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

  8. 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'

  9. Install javascript packages $ cd client $ bower install

  10. Install 'dtl' library. $ git clone https://github.com/cubicdaiya/dtl.git $ cd dtl $ sudo scons install

  11. Setup server configuration by editing file config_default.py and saving it to config_custom.py:

  12. set database name (DB_NAME)
  13. set user name (DB_USER)
  14. set database password (DB_PASSWORD)

  15. Run configure.py $ python3 configure.py

  16. Setup build configuration by editing file build_default.ini and saving it to build_custom.ini

FIRST COMPILATION

$ scons $ scons syncdb=1

COMPILATION

$ scons

Source: README.md, updated 2017-07-27