Install clapack on linux

Source: Internet
Author: User
Tags superuser permission
Install clapack on linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. (1) first download clapack on netlib:
Wget http://www.netlib.org/clapack/clapack.tgz

(2). decompress the downloaded file:
Tar zxvf clapack. tgz

(3). cd CLAPACK/then copy make. inc. LINUX in the/INSTALL Folder to the clapack/folder.
And modify it to make. inc.
Cp CLAPACK/INSTALL/make. inc. LINUX ./
Mv make. inc. LINUX make. inc

(4). Compile the f2c Library:
Make f2clib

(5) Compile the blaslib Library:
Make blaslib

(6). Enter the make folder in the CLAPACK/SRC folder.
Cd CLAPACK/SRC; make

(7) Compile matrxi generation software, eigenroutine TESTING code, linear system TESTING code
Then run LAPACK tests:
Cd CLAPACK/TESTING/MATGEN; make
Cd CLAPACK/TESTING; make

(8). Go to the CLAPACK directory and copy some static connection libraries and header files to the corresponding folder.
(If you have superuser permissions)

Cp lapack_LINUX.a/usr/local/lib/libclapack.
Cp blas_LINUX.a/usr/local/lib/libcblas.
Cp F2CLIBS/libF77.a/usr/local/lib/libF77.a
Cp F2CLIBS/libI77.a/usr/local/lib/libI77.a
Cp clapack. h/usr/local/include
Cp F2CLIBS/f2c. h/usr/local/include

If you do not have the superuser permission, you can create
LIBS/INCLUDE/directory. Then copy the above files to these folders.

(9)./sbin/ldconfig Load Static Connection Library

In this way, you can basically compile the program that calls the clapack library function.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.