LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-05-2017, 01:10 AM   #1
cristi92b
Member
 
Registered: May 2011
Posts: 92

Rep: Reputation: Disabled
Building LAPACK


Hello,

I'm trying to build LAPACK package from here: http://www.netlib.org/lapack/#_lapack_version_3_7_0_2
I extracted lapack-3.7.0.tgz archive, renamed make.inc.example to make.inc and typed make.

But make fails with the following error message:
Code:
make[1]: Leaving directory `<absolute_path_to_lapack>/lapack-3.7.0/BLAS/TESTING'
( cd BLAS; rm -f xblat* )
( cd CBLAS/testing; make clean )
make[1]: Entering directory `<absolute_path_to_lapack>/lapack-3.7.0/CBLAS/testing'
rm -f core *.o *.out x*
make[1]: Leaving directory `<absolute_path_to_lapack>/lapack-3.7.0/CBLAS/testing'
gfortran: error: ../../librefblas.a: No such file or directory
make[1]: *** [../xblat1s] Error 1
make: *** [blas_testing] Error 2
Do you know what could be the problem? It does not look like a dependency issue.
 
Old 01-05-2017, 10:54 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,816

Rep: Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975
Quote:
Originally Posted by cristi92b View Post
Hello,
I'm trying to build LAPACK package from here: http://www.netlib.org/lapack/#_lapack_version_3_7_0_2 I extracted lapack-3.7.0.tgz archive, renamed make.inc.example to make.inc and typed make. But make fails with the following error message:
Code:
make[1]: Leaving directory `<absolute_path_to_lapack>/lapack-3.7.0/BLAS/TESTING'
( cd BLAS; rm -f xblat* )
( cd CBLAS/testing; make clean )
make[1]: Entering directory `<absolute_path_to_lapack>/lapack-3.7.0/CBLAS/testing'
rm -f core *.o *.out x*
make[1]: Leaving directory `<absolute_path_to_lapack>/lapack-3.7.0/CBLAS/testing'
gfortran: error: ../../librefblas.a: No such file or directory
make[1]: *** [../xblat1s] Error 1
make: *** [blas_testing] Error 2
Do you know what could be the problem? It does not look like a dependency issue.
It looks like you didn't read the README file that comes with that. From that very file:
Quote:
Originally Posted by LAPACK Readme
LAPACK INSTALLATION:
- LAPACK can be installed with make. Configuration have to be set in the
make.inc file.
A make.inc.example for a Linux machine running GNU compilers
is given in the main directory. Some specific make.inc are also available in
the INSTALL directory
So did you actually configure that file? Check for a specific make where told? You don't tell us what version/distro of Linux you're using...did you also try the cmake option? Again, detailed in the README file....
 
Old 01-05-2017, 01:53 PM   #3
cristi92b
Member
 
Registered: May 2011
Posts: 92

Original Poster
Rep: Reputation: Disabled
No, I did not configure the file, just renamed it.
It's a CentOS 7.2.1511 but installing the package with yum is not an option because I do not have root access.
I did not try the cmake option.

I think I should compile & install BLAS first and then modify make.inc to point to the BLAS (and other dependencies) install path.


Thank you for you answer!
 
Old 01-05-2017, 03:11 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,816

Rep: Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975Reputation: 6975
Quote:
Originally Posted by cristi92b View Post
No, I did not configure the file, just renamed it.
If you didn't follow the instructions, don't be surprised if it didn't work.
Quote:
It's a CentOS 7.2.1511 but installing the package with yum is not an option because I do not have root access.
Then why are you trying to install ANYTHING? Get your systems admin to load this for you.
Quote:
I did not try the cmake option.
Perhaps you should.
Quote:
I think I should compile & install BLAS first and then modify make.inc to point to the BLAS (and other dependencies) install path.
Would certainly help, if those are things that are mentioned in the instructions...
 
Old 01-05-2017, 03:22 PM   #5
cristi92b
Member
 
Registered: May 2011
Posts: 92

Original Poster
Rep: Reputation: Disabled
Quote:
I think I should compile & install BLAS first and then modify make.inc to point to the BLAS (and other dependencies) install path.
It worked. Thank you very much!

Without modifying the make.inc file:
Code:
make blaslib
make cblaslib
make lapacklib
I'm closing the thread.
 
  


Reply

Tags
librefblas


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
instruction for installing lapack and lapack-devel on Centos 6.5 yalashloo Linux - Software 15 12-18-2016 01:35 AM
lapack subroutines kypamadhav Linux - Newbie 1 12-06-2010 11:37 AM
Lapack soltanloo Linux - Software 1 10-01-2009 04:41 AM
ARPACK vs. LAPACK mkrems Programming 3 05-15-2008 01:00 PM
Compiling lapack hussar Linux - Software 0 10-18-2004 02:24 PM

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

All times are GMT -5. The time now is 09:00 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