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/