LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-27-2009, 02:14 PM   #1
A.V.
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
How to link gfortran compiled code with lapack and arpack libraries


Hello everybody,

Could anybody help me?
In mandriva 2008 platform I have installed gcc-g77, liblapack, liblapack-devel, libblas, libblas-devel, arpack, arpack-devel and arpack-static packages. When I link *.f code and these libraries, using g77 compiler with –llapack –lblas –larpack options, everything work. Then when I replaced g77 by gfortran compiler, to be able to work with double precision complex arithmetic, I have got a number of undefined references errors:
/usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../liblapack.so: undefined references to ‘etime_’
-- -- -- -- -- -- -- ‘s_stop’
-- -- -- -- -- -- -- ‘s_wsfe’
-- -- -- -- -- -- -- ‘s_cmp’
-- -- -- -- -- -- -- ‘e_wsfe’
-- -- -- -- -- -- -- ‘z_abs’
/usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../libarpack.so: undefined references to ‘G77_etim_0’
/usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../liblapack.so: undefined references to ‘z_sqrt’
-- -- -- -- -- -- -- ‘s_cat’
-- -- -- -- -- -- -- ‘c_sqrt’
-- -- -- -- -- -- -- ‘s_copy’
-- -- -- -- -- -- -- ‘do_fio’
-- -- -- -- -- -- -- ‘z_exp’
-- -- -- -- -- -- -- ‘c_abs’
-- -- -- -- -- -- -- ‘c_exp’

It looks as if I need to install f95 lapack and arpack libraries. Does anybody know if such rpm packages exist? I cannot find them in the net. If they exist, where is it possible to download them? Or shall I do something else?

Thank you very much,

A.V.
 
Old 07-03-2009, 08:40 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
Googling .. gfortran-based blas/lapack/atlas .. ,
I found

.. MKL ..Intel® Math Kernel Library
http://software.intel.com/en-us/intel-mkl/
http://software.intel.com/en-us/arti...e-development/
> > l_mkl_p_10.2.1.017.tar.gz
http://www.intel.com/software/produc...appA_SMSF.html

May be MKL ( + ifort ) can be used ??

(( And this, found with the same "keyword"
http://itpp.sourceforge.net/current/installation.html ))
.....
.....
Other related ...
http://www.cise.ufl.edu/research/sparse/SuiteSparse/
.....

Last edited by knudfl; 07-03-2009 at 08:41 AM.
 
  


Reply



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
Install ARPACK (fortran libraries) StudMuffin Linux - Software 14 05-29-2013 04:14 AM
ARPACK vs. LAPACK mkrems Programming 3 05-15-2008 01:00 PM

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

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