LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-22-2011, 04:13 PM   #1
jpark
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
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!
 
Old 06-23-2011, 02:15 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

# yum provides */cblas.h

# yum install atlas-sse2-devel
 
1 members found this post helpful.
Old 06-23-2011, 04:15 PM   #3
jpark
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-23-2011, 05:13 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

..

Last edited by knudfl; 06-24-2011 at 02:28 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blas installation bernard.cns Linux - Software 1 10-26-2010 03:54 PM
blas library and yum soltanloo Linux - Software 3 10-05-2009 12:40 PM
blas library doesn't link lies Linux - Software 2 09-16-2007 11:58 AM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 02:24 AM
Kernel header files needed for Nvidia driver installation natalinasmpf Linux - Hardware 10 12-08-2003 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration