Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yangliuyu/59416361d4b3a413be49 to your computer and use it in GitHub Desktop.
Save yangliuyu/59416361d4b3a413be49 to your computer and use it in GitHub Desktop.
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
@fommil
Copy link

fommil commented Jul 23, 2014

you can avoid the sed line by checking out a specific tag/hash from github.

@wangzk
Copy link

wangzk commented Aug 4, 2014

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.

@debasish83
Copy link

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