LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   BLAS installation using yum doesn't install header files?? (https://www.linuxquestions.org/questions/linux-software-2/blas-installation-using-yum-doesn%27t-install-header-files-887814/)

jpark 06-22-2011 04:13 PM

BLAS installation using yum doesn't install header files??
 
I installed BLAS using yum on my RHEL.
Code:

yum install blas
Also installed blas-devel
Code:

yum install blas-devel
There are shared objects in
/usr/lib/libblas.so.3
/usr/lib/libblas.so.3.0
/usr/lib/libblas.so.3.0.3
/usr/lib64/libblas.so.3
/usr/lib64/libblas.so.3.0
/usr/lib64/libblas.so.3.0.3

But I can't find cblas.h file. Should I install something else to get the header file installed? I appreciate your help!

knudfl 06-23-2011 02:15 AM

Welcome to LQ.

# yum provides */cblas.h

# yum install atlas-sse2-devel

jpark 06-23-2011 04:15 PM

Thank you, knudfl!

Enabled EPLE (Extra Packages for Enterprise Linux) repository by
Code:

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Then followed your recommendation. It worked like a charm.

But I'm having another problem with linking BLAS library. For testing BLAS, I tried a simple program, testblas.c and compiled and linked with GNU compiler. Got the following error:
Code:

$ cc -o testblas testblas.c -lblas
/tmp/cccUobOl.o: In function `main':
testblas.c:(.text+0xb4): undefined reference to `cblas_dgemv'
collect2: ld returned 1 exit status

Googling hasn't helped me find the solution so far. Any idea? Thank you in advance!

jp

knudfl 06-23-2011 05:13 PM

Well, obviously no "cblas objects" in libblas.so .

rpm -ql atlas-sse2-devel | grep libcblas :
/usr/lib/atlas-sse2/libcblas.a
/usr/lib/atlas-sse2/libcblas.so
/usr/lib/atlas/libcblas.a
/usr/lib/atlas/libcblas.so

I'd guess you will have to use the -L option, and libcblas :
-L /usr/lib/atlas/ -lcblas

..


All times are GMT -5. The time now is 06:23 PM.