Difference between revisions of "GSL"

From CBLFS
Jump to navigationJump to search
m
 
(7 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| ftp://ftp.gnu.org/gnu/gsl/gsl-1.8.tar.gz
+
| ftp://ftp.gnu.org/gnu/gsl/gsl-{{GSL-Version}}.tar.gz
 
|}
 
|}
  
The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. The library provides over 1000 functions covering a wide range of mathematical routines such as random number generators, special functions and least-squares fitting.
+
----
 +
 
 +
{{Package-Introduction|The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. The library provides over 1000 functions covering a wide range of mathematical routines such as random number generators, special functions and least-squares fitting.}}
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 11: Line 13:
 
Compile the package:
 
Compile the package:
  
    ./configure --prefix=/opt/scimath &&
+
./configure --prefix=/usr &&
    make
+
make
  
 
Install the package:
 
Install the package:
  
    make install
+
make install
  
 
== Multilib ==
 
== Multilib ==
Line 24: Line 26:
 
Compile the package:
 
Compile the package:
  
    CC="gcc ${BUILD32}" ./configure --prefix=/opt/scimath --libdir=/opt/scimath/lib &&
+
CC="gcc ${BUILD32}" ./configure --prefix=/usr \
    make
+
    --libdir=/usr/lib &&
 +
make
  
 
Install the package:
 
Install the package:
  
    make install
+
make install &&
 +
mv -v /usr/bin/gsl-config{,-32}
  
 
=== N32 ===
 
=== N32 ===
  
 
Compile the package:
 
Compile the package:
 +
 +
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
 +
    --libdir=/usr/lib32
  
 
Install the package:
 
Install the package:
 +
 +
make install &&
 +
mv -v /usr/bin/gsl-config{,-n32}
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 41: Line 51:
 
Compile the package:
 
Compile the package:
  
    CC="gcc ${BUILD64}" ./configure --prefix=/opt/scimath --libdir=/opt/scimath/lib64 &&
+
CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    make
+
    --libdir=/usr/lib64 &&
 +
make
  
 
Install the package:
 
Install the package:
  
     make install
+
make install &&
 +
mv -v /usr/bin/gsl-config{,-64} &&
 +
ln -sfv /usr/bin/multiarch_wrapper /usr/bin/gsl-config
 +
 
 +
== Documentation ==
 +
 
 +
Build and install the info pages for the GSL:
 +
 
 +
  make install-info
 +
 
 +
Build and install the html documentation for the GSL:
 +
 
 +
  make html &&
 +
  install -v -m755 -d /usr/share/doc/GSL-{{GSL-Version}}/html &&
 +
  for i in doc/gsl-ref.html/*.html; do
 +
     cp -v $i /usr/share/doc/GSL-{{GSL-Version}}/html
 +
  done
 +
 
 +
Build and install the postscript documentation for the GSL:
 +
 
 +
  make dvi &&
 +
  install -v -m755 -d /usr/share/doc/GSL-{{GSL-Version}}/ps &&
 +
  cp -v doc/gsl-ref.ps /usr/share/doc/GSL-{{GSL-Version}}/ps
 +
 
 +
Install the example programs, if desired:
 +
 
 +
  install -v -m755 -d /usr/share/doc/GSL-{{GSL-Version}}/examples &&
 +
  cp -v doc/examples/* /usr/share/doc/GSL-{{GSL-Version}}/examples
  
 
== Contents ==
 
== Contents ==
  
*Installed Libraries: libgslcblas.{so,la,a}, libgsl.{so,la,a}
+
* Installed Libraries: libgslcblas.{so,la,a}, libgsl.{so,la,a}
 +
 
 +
[[Category:Science_Engineering]]

Latest revision as of 11:23, 18 August 2008

Download Source: ftp://ftp.gnu.org/gnu/gsl/gsl-1.12.tar.gz

Introduction to GSL

The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. The library provides over 1000 functions covering a wide range of mathematical routines such as random number generators, special functions and least-squares fitting.

Project Homepage: Unknown

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package:

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr \
    --libdir=/usr/lib &&
make

Install the package:

make install &&
mv -v /usr/bin/gsl-config{,-32}

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32

Install the package:

make install &&
mv -v /usr/bin/gsl-config{,-n32}

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 &&
make

Install the package:

make install &&
mv -v /usr/bin/gsl-config{,-64} &&
ln -sfv /usr/bin/multiarch_wrapper /usr/bin/gsl-config

Documentation

Build and install the info pages for the GSL:

 make install-info

Build and install the html documentation for the GSL:

 make html &&
 install -v -m755 -d /usr/share/doc/GSL-1.12/html &&
 for i in doc/gsl-ref.html/*.html; do
   cp -v $i /usr/share/doc/GSL-1.12/html
 done

Build and install the postscript documentation for the GSL:

 make dvi &&
 install -v -m755 -d /usr/share/doc/GSL-1.12/ps &&
 cp -v doc/gsl-ref.ps /usr/share/doc/GSL-1.12/ps

Install the example programs, if desired:

 install -v -m755 -d /usr/share/doc/GSL-1.12/examples &&
 cp -v doc/examples/* /usr/share/doc/GSL-1.12/examples

Contents

  • Installed Libraries: libgslcblas.{so,la,a}, libgsl.{so,la,a}