Last active
June 8, 2016 06:48
-
-
Save yangliuyu/59416361d4b3a413be49 to your computer and use it in GitHub Desktop.
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
sudo yum install jdk-7u65-linux-x64.rpm | |
sudo yum install gcc | |
sudo yum install gcc-gfortran | |
sudo yum install blas lapack arpack | |
unzip netlib-java-1.1.2.zip | |
cd ~/netlib-java-1.1.2 | |
sed -i "s/1.2-SNAPSHOT/1.1.2/g" `grep -rl 1.2-SNAPSHOT .` | |
mvn install | |
cd native_system/ | |
mvn install | |
# ignore some error and continue | |
cd xbuilds/linux-x86_64 | |
export C_INCLUDE_PATH=~/netlib-java-1.1.2/netlib/ARPACK:~/netlib-java-1.1.2/netlib/BLAS:~/netlib-java-1.1.2/netlib/CBLAS:~/netlib-java-1.1.2/netlib/JNI:~/netlib-java-1.1.2/netlib/LAPACK:~/netlib-java-1.1.2/netlib/LAPACKE | |
export JAVA_HOME=/usr/java/jdk1.7.0_65 | |
export PATH=$PATH:$JAVA_HOME/bin | |
mvn package | |
# get the netlib-native_system-linux-x86_64-natives.jar without error |
Hello~ when you run the command cd xbuilds/linux-x86_64
, which xbuilds directory are you in?
1./netlib-java-1.1.2/native_ref/xbuilds/
or
2./netlib-java-1.1.2/native_system/xbuilds/
?
Thank you very much!
I got the meaning of your guide. Thank you again.
I am trying to get netlib-java on CentOS 6.5 GCC version is 4.4.7....should I upgrade gcc to 4.8.2 or just follow the above lines since it looks like we can compile netlib-java fine in CentOS 6.5 with GCC version 4.4.7 as well ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can avoid the
sed
line by checking out a specific tag/hash from github.