Next: , Previous: , Up: Tips and Tricks   [Contents][Index]


7.6 Running without installing

You can compile coNCePTuaL programs without having first to do a make install by using the same mechanism as was discussed in Implicit dynamic-library search paths.

First, Libtool builds the coNCePTuaL run-time library in the .libs subdirectory. Hence, you should add ‘LDFLAGS="-L`pwd`/.libs -Wl,-rpath,`pwd`/.libs"’ to the ./configure command line (see configure) to point both the static and dynamic linkers to the coNCePTuaL build directory.

Second, coNCePTuaL-generated C code specifies ‘#include <ncptl/ncptl.h>’. To ensure that the generated code can find ncptl.h you should add ‘CPPFLAGS="-I`pwd`"’ to the ./configure command line to point the C compiler to the coNCePTuaL build directory. Then, create a symbolic link from the coNCePTuaL build directory to an ncptl directory by running ln -s `pwd` ncptl from the build directory.

After running ./configure and make , you can compile coNCePTuaL programs by invoking the compiler as ./ncptl.py instead of the usual ncptl .

Scott Pakin, pakin@lanl.gov