LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-13-2008, 04:09 AM   #1
munichtexan
Member
 
Registered: Oct 2005
Posts: 74

Rep: Reputation: 15
greenie over his head with installing lapack


I have a dual pentium dual core machine using Suse 10.3. A good friend of mine gave me the following list to follow which worked fine on his single processor/single core machine. I am wanting to run octave plus gnuplot. Don't have the money for a Matlab license. Blas tested ok, but I keep getting the error:

../../tmglib.a ../../lapack.a ../../blas.a -o ../xlintsts
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status

Blas tested ok. Here were the instructions. Any suggestions? Another friend of mine who is a sys admin claims that the pthreads are in the library that they are suppose to be in. So I do not understand the error.

1.) Unpack the BLAS sources and enter the GotoBlas directory.
2.) Edit the Makefile.rule and choose the following settings: a) gfortran, b) Binary64=1 , c) smp=1
(Note, that I didn't specify the maximum number of threads! This can be done automatically...)

3.) Invoke the quickbuild.64bit script.

4.) The script creates two libraries, a shared one and a static one, which are both located in the GotoBlas directory. However, it will fail to create or link some test driver - or so it seems to me.

5.) Assume superuser privileges. That is, invoke su, enter Your password...

6.) Copy the shared library into the directory /usr/local/lib and create a link to libblas.so: ln -s libgoto....so libblas.so

7.) Copy the static library into the directory /usr/local/lib, enter that directory and create a link: ln -s libgoto...a libblas.a

8.) Run the command ldconfig -v, /sbin/ldconfig -v or possibly /usr/sbin/ldconfig -v. This may depend on Your computer's configuration. Catch the output with >& ldout.txt and check whether You can find libblas.so in the linker cache.

9.) This should do the trick. If You want, You can go back to the GotoBlas directory, enter the test subdirectory and call make there. Thi should run a number of small tests on the libraries You have build.

===========================================================================================

Now to the lapack package. This comes with an extensive test suite. As the package will use the BLAS libraries You have just created, there is no need to worry about the incomplete GotoBlas build.

1.) Unpack the sources and enter the lapack directory.

2.) Copy the library /usr/local/lib/libblas.a into the lapack directory: cp /usr/local/lib/libblas.a blas.a

3.) Copy the file INSTALL/make.inc.gfortran into the lapack directory: cp INSTALL/make.inc.gfortran make.inc

4.) Open make.inc with an editor and find the line PLAT = _LINUX. Erase the string _LINUX. The line shoud now read: PLAT =

5.) Invoke make. This should build everything and perform the test afterwards.

6.) Assume root privileges: su ...

7.) Copy the library lapack.a into the directory /usr/local/lib: cp lapack.a /usr/local/lib/liblapack.a

8.) This is it! You should now be able to install the SparseSuite, which You can find here: http://www.cise.ufl.edu/research/sparse/SuiteSparse/
 
  


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
Jacklab anyone have any input for greenie??????..thanx pooleman Linux - Newbie 1 02-18-2008 10:45 PM
some problem about LAPACK and BLAS ztdep Linux - Software 8 08-03-2005 05:32 AM
Compiling lapack hussar Linux - Software 0 10-18-2004 02:24 PM
LAPACK library for Slackware 9.1 rsamurti Slackware 1 06-11-2004 02:05 PM
lapack library problem marlinux Red Hat 3 09-02-2003 09:57 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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