The following librairies are necessary to compile EMBOSS as well as the EMBASSY applications:
libx11-dev libgd2-xpm-dev libpng3-dev libpng12-dev libgd-tools libplplot-dev plplot9-driver-gd libxaw7-dev (for PHYLIP compilation)libhpdf-devant (for Jemboss' Java code compilation)libmysqlclient-dev (for MySQL access of ENSEMBL data from EMBOSS)% apt-get install libx11-dev libgd2-xpm-dev libpng3-dev libpng12-dev libgd-tools libplplot-dev plplot9-driver-gd libxaw7-dev libhpd-2.1.0 libhpd-dev ant libmysqlclient-dev libpam0g-dev
Three important details:
/usr/lib/jvm/java-6-sun/include/jni.h has problems… The following line must be changed:sudo vi /usr/lib/jvm/java-6-sun/include/jni.h
#include "jni_md.h"''
#include "linux/jni_md.h"''
Here is the procedure for installing EMBOSS, EMBASSY applications and the Jemboss GUI from source code:
/home/bioubuntu. Get into the EMBOSS-6.4.0 folder, create another folder called embassy and move into this folder:% wget ftp://emboss.open-bio.org/pub/EMBOSS/EMBOSS-6.4.0.tar.gz % tar -zxvf EMBOSS-6.4.0.tar.gz % cd EMBOSS-6.4.0 % mkdir embassy % cd embassy
CBSTOOLS-1.0.0DOMAINATRIX-0.1.0DOMALIGN-0.1.0DOMSEARCH-0.1.0ESIM4-1.0.0HMMER-2.3.2IPRSCAN-4.3.1MEMENEW-4.0.0MSE-3.0.0PHYLIPNEW-3.69SIGNATURE-0.1.0STRUCTURE-0.1.0TOPO-1.0.0VIENNA-1.7.2% wget ftp://emboss.open-bio.org/pub/EMBOSS/CBSTOOLS-1.0.0.tar.gz % tar -zxvf CBSTOOLS-1.0.0.tar.gz # # Do the samme for all the other EMBASSY applications #
EMBOSS-6.4.0 folder is moved under /opt/bio/sources and should now belong to root. Its permissions should be 755.% sudo mv ~/EMBOSS-6.4.0 /opt/bio/sources % sudo chown -R root:root /opt/bio/sources/EMBOSS-6.4.0 % cd /opt/bio/sources/EMBOSS-6.4.0
% sudo ./configure --with-x --enable-64 --with-java=/usr/lib/jvm/java-6-sun --with-javaos=/usr/lib/jvm/java-6-sun/include % sudo make && sudo make install
% cd % embossversion # You should see this: Reports the current EMBOSS version number 6.4.0.0 %
% embossversion embossversion: error while loading shared libraries: libnucleus.so.6: cannot open shared object file: No such file or directory # Use this command: % sudo /sbin/ldconfig
embassy and compile the applications manually. For example:% cd ./embassy/CBSTOOLS-1.0.0 % sudo ./configure --with-x --enable-64 --with-java=/usr/lib/jvm/java-6-sun --with-javaos=/usr/lib/jvm/java-6-sun/include % sudo make && sudo make install
csh shell, not the bash shell, which is Ubuntu's default:#!/bin/csh
setenv CLASSPATH blablabla...
becomes:
#!/bin/sh export CLASSPATH=blablabla...
% sudo ln -s /usr/local/bin/runJemboss.csh /usr/local/bin/runJemboss
% sudo ln -s /usr/local/emboss/share/EMBOSS/jemboss/runJemboss.sh /usr/local/bin/runJemboss % runJemboss &
Some databases are needed to insure proper operation of some of EMBOSS' applications. Because some other programs might need them at a later moment, I created the /opt/bio/data location to centralize management of these databases. Take note of the following:
cutgextract.tfextract.aaindex1 / aaindex2 / aaindex3/opt/bio/data/aaindexaaindexextractArchive.zip. After moving to /opt/bio/data/jaspar and unzipping, the files are under Archive/all_data/FlatFileDir./opt/bio/data/jasparjaspextractprosite.dat and prosite.doc/opt/bio/data/prositeprosextractprints<version>.dat.gz/opt/bio/data/printsprintextractwithrefm.<version> and proto/opt/bio/data/rebaserebaseextractEMBOSS uses indexing applications to take the content of the database files and create indexes that other programs can use. A very general procedure uses the following step:
root but also be root; acting through sudo is not enough:% sudo su