Last active
December 13, 2015 17:39
-
-
Save wecing/4949659 to your computer and use it in GitHub Desktop.
errseg_tagger_for_uw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first -- sorry that in this case, you have to set the environment variables before running ./configure. | |
# the script will write "CFLAGS=xxx" in the generated Makefile, which is different from what I expected ("CFLAGS+=xxx"). | |
# | |
# then run "make clean" in the four sub directorys and the topmost directory. | |
# do this before running ./configure --prefix=/full/path/to/the/target/directory | |
# notice that "./configure --prefix=$(workspace)/xxx" will not work. | |
# I know this is stupid, but it works... | |
export CFLAGS="-I/homes/iws/wangc8/software/include -L/homes/iws/wangc8/software/lib" | |
export LDFLAGS="-I/homes/iws/wangc8/software/include -L/homes/iws/wangc8/software/lib" | |
export CPPFLAGS="-I/homes/iws/wangc8/software/include -L/homes/iws/wangc8/software/lib" | |
export INCLUDES="-I/homes/iws/wangc8/software/include -L/homes/iws/wangc8/software/lib" | |
# and this... | |
export LD_LIBRARY_PATH=/homes/iws/wangc8/software/lib:$LD_LIBRARY_PATH | |
# then: | |
cd xxx | |
./configure --prefix=blahblahblah | |
make | |
make install | |
(repeat) | |
cd .. | |
make all | |
# you will need to write the "export LD_LIBRARY_PATH" line in your .bashrc (or .profile.local, .zshrc...) | |
# to be able to use the generated binary the next time you log in. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment