Skip to content

Compiling libcrispr

https://github.com/ctSkennerton/libcrispr

This follows the instructions in the source URL above.

Needs xerces-c++ 3.1.1, which is not provided by system defaults.

Preliminaries

These instructions install in subdirectories of your home directory. These instructions also modify your LD_LIBRARY_PATH environment variable, which may render other programs unusable. The proper way to do this is with modulefiles: see Environment Modules - Creating Your Own Module Files.

Modify Your Login Files

Edit ~/.bashrc:

export PATH=~/bin:${PATH} export LD_LIBRARY_PATH=~/lib:${LD_LIBRARY_PATH}

Then make sure your environment is updated:

[juser@proteusa01 ~]$ . ~/.bashrc

Modules

Make sure these are loaded, and in particular, no other compiler modules are loaded:

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

Instead of using Proteus's pre-compiled Xerces C++ library, you may also compile your own. However, that would change the configure line in the instructions below.

Download Source

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

Prepare

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

Configure

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

If you installed your own Xerces C++ according to Compiling Xerces C++, then replace "${XERCESDIR}" with "${HOME}".

Modify config.status

Edit the file config.status. Change the line:

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

into

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

Then, apply:

[juser@proteusa01 libcrispr]$ sh config.status

Make

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

Install

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

Test

This package comes with no tests.