LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2012, 11:45 AM   #1
bcramer
LQ Newbie
 
Registered: Apr 2007
Location: Brazil
Distribution: OpenSUSE
Posts: 20

Rep: Reputation: 0
Post -lblas not found


Hi,
The program(prgm) that I'm installing requires 'lapack' and 'blas' libs. Lapack is installed automatically by the prgm and 'blas' was downloaded from the net and installed in the prgm directory.Compiling the prgm everything works fine (all executables and etc. are generated) except that one error
"cannot find -lblas" implicates that one important module of the prgm will not run.
In the compiling file(script) one must include the path of 'blas', which I did: BLAS=' -L/../../BLAS -lblas'
I also installed ATLAS (recommended by the prgm UserGuide). Successfully installed and tested, the same error message is printed out after prgm compilation.
Other details attached in the compilation file (Compall as txt) and compilation output.
Any help is welcome.
Thank you
Bruno
Attached Files
File Type: txt -lblas_sapt_install.txt (5.9 KB, 70 views)
File Type: txt Compall.txt (35.1 KB, 50 views)
 
Old 05-26-2012, 06:57 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Looking at the shell script, "Compall.txt", I see a problem. You have:

Code:
BLAS=' -L/usr/local/SAPT2008/BLAS/blas_LINUX.a  -lblas '
You just use directory names with the -L option, so the first thing to do is remove the "blas_LINUX.a" part of that path. Secondly, with regards to the -l option, the linker looks for files named libfoo.so (or .a), where foo is whatever follows "-l". So, you should either rename "blas_LINUX.a" to "libblas.a" or provide a symbolic link called "libblas.a" that points to "blas_LINUX.a".

Does that help?

Last edited by Nylex; 05-26-2012 at 07:02 AM.
 
1 members found this post helpful.
Old 05-26-2012, 05:30 PM   #3
bcramer
LQ Newbie
 
Registered: Apr 2007
Location: Brazil
Distribution: OpenSUSE
Posts: 20

Original Poster
Rep: Reputation: 0
[QUOTE=Nylex;4688066]Looking at the shell script, "Compall.txt", I see a problem. You have:

Code:
BLAS=' -L/usr/local/SAPT2008/BLAS/blas_LINUX.a  -lblas '
You just use directory names with the -L option, so the first thing to do is remove the "blas_LINUX.a" part of that path. Secondly, with regards to the -l option, the linker looks for files named libfoo.so (or .a), where foo is whatever follows "-l". So, you should either rename "blas_LINUX.a" to "libblas.a" or provide a symbolic link called "libblas.a" that points to "blas_LINUX.a".

Does that help?[YES, it solved the problem]
 
  


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
Xorg, no screens found; no devices found (after Virtualbox install) Archytas Linux - General 6 03-06-2013 03:41 PM
[SOLVED] x-windows-system package not found, other packages not found. bwilky11 Debian 3 04-12-2012 12:39 PM
Directory not found; -xzvf not found; Makefile not found RealGomer Linux - Software 4 09-20-2010 10:02 AM
Fedora Core 6 boot No medium found No volume groups found awadhut Linux - Hardware 1 02-22-2007 01:15 AM
PDC 20276 - Promise Fasttrack 133 found but still not found.. FransE Linux - Hardware 3 02-16-2004 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 AM.

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