Difference between revisions of "MPFR"

From CBLFS
Jump to navigationJump to search
m
Line 8: Line 8:
  
 
== Dependencies ==
 
== Dependencies ==
 +
 +
{{Note|The latest official cumulative patch can be downloaded at http://www.mpfr.org/mpfr-current/patches. The officially recommended command to apply it is: '''patch -Np1 -Z -i ../patches'''}}
  
 
=== Required ===
 
=== Required ===
Line 16: Line 18:
 
Compile the package:
 
Compile the package:
  
 +
patch -Np1 -Z -i ../patches &&
 
  ./configure --prefix=/usr --enable-shared &&
 
  ./configure --prefix=/usr --enable-shared &&
 
  make
 
  make
Line 29: Line 32:
 
Compile the package:
 
Compile the package:
  
 +
patch -Np1 -Z -i ../patches &&
 
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
 
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
 
     --enable-shared &&
 
     --enable-shared &&
Line 41: Line 45:
 
Compile the package:
 
Compile the package:
  
 +
patch -Np1 -Z -i ../patches &&
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
 
     --libdir=/usr/lib32 --enable-shared &&
 
     --libdir=/usr/lib32 --enable-shared &&
Line 53: Line 58:
 
Compile the package:
 
Compile the package:
  
 +
patch -Np1 -Z -i ../patches &&
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
 
     --libdir=/usr/lib64 --enable-shared &&
 
     --libdir=/usr/lib64 --enable-shared &&

Revision as of 11:51, 25 June 2008

Download Source: http://www.mpfr.org/mpfr-current/mpfr-2.4.1.tar.bz2

Introduction to MPFR

The MPFR library is a C library for multiple-precision floating-point computations with exact rounding (also called correct rounding).

Project Homepage: http://www.mpfr.org/

Dependencies

Caution.png

Note

The latest official cumulative patch can be downloaded at http://www.mpfr.org/mpfr-current/patches. The officially recommended command to apply it is: patch -Np1 -Z -i ../patches

Required

Non-Multilib

Compile the package:

patch -Np1 -Z -i ../patches &&
./configure --prefix=/usr --enable-shared &&
make

Install the package:

make install

Multilib

32Bit

Compile the package:

patch -Np1 -Z -i ../patches &&
CC="gcc ${BUILD32}" ./configure --prefix=/usr \
    --enable-shared &&
make

Install the package:

make install

N32

Compile the package:

patch -Np1 -Z -i ../patches &&
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 --enable-shared &&
make

Install the package:

make install

64Bit

Compile the package:

patch -Np1 -Z -i ../patches &&
CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 --enable-shared &&
make

Install the package:

make install

Documentation

Create the directory that the documentation will be installed into:

install -d -v -m755 /usr/share/doc/mpfr-2.4.1

DVI

make dvi &&
install -v -m644 mpfr.dvi /usr/share/doc/mpfr-2.4.1

PS

make mpfr.ps && 
install -v -m644 mpfr.ps /usr/share/doc/mpfr-2.4.1

PDF

make pdf && 
install -v -m644 mpfr.pdf /usr/share/doc/mpfr-2.4.1

Contents

  • Installed Libraries: libmpfr.{la,a,so,so.1,so.1.0.1}