Skip to content

Compiling crass

https://github.com/ctSkennerton/crass

Needs libcrispr. See Compiling libcrispr. Needs xerces 3.1.1, which is not provided by the system defaults.

Preliminaries♯

Modules needed:

shared proteus sge/univa gcc/4.8.1 xerces-c/gcc/3.1.1

Since crass does not check the version of Xerces-C++, we will link to a locally-compiled version. You may also use a version you compile yourself.

Download Source♯

[juser@proteusa01 ~]$ cd src [juser@proteusa01 src]$ git clonehttps://github.com/ctSkennerton/crass.git [juser@proteusa01 src]$ cd crass

Prepare♯

[juser@proteusa01 crass]$ export CFLAGS="-O3 -msse4.2 -mavx -mfpmath=sse" [juser@proteusa01 crass]$ ./autogen.sh

Configure♯

[juser@proteusa01 crass]$ ./configure --prefix=${HOME} --with-libcrispr=${HOME} --with-xerces=${XERCESCDIR}

If you are using a Xerces C++ that you compiled yourself, replace "${XERCESCDIR}" with "${HOME}".

Modify config.status♯

Edit the file config.status. Change the lines -- this selects Xerces 3.1.x over the version installed in the system default:

S["LIBCRISPR_LIBS"]="-lcrispr -lxerces-c  " S["XERCES_LIBS"]="-lxerces-c "

into

S["LIBCRISPR_LIBS"]="-lcrispr -lxerces-c-3.1  " S["XERCES_LIBS"]="-lxerces-c-3.1 "

Make♯

[juser@proteusa01 crass]$ make | tee Make.out

Install♯

[juser@proteusa01 crass]$ make install | tee Make.install.out

Check♯

[juser@proteusa01 crass]$ which crass [juser@proteusa01 crass]$ crass --help