- Fedora 9
$ bash
$ su
Password:
# yum install gcc gcc-c++ gcc-gfortran
# yum install lapack lapack-devel blas blas-devel
# yum install gmp gmp-devel
$ tar xvfz mpack-0.0.6.tar.gz
$ cd mpack-0.0.6
$ ./configure
$ make install
- Ubuntu 8.04
Apply following patch to /etc/apt/sources.list (remove two `#' in /etc/apt/sources.list)
diff -u /etc/apt/sources.list.org /etc/apt/sources.list
--- /etc/apt/sources.list 2008-07-17 11:51:10.000000000 +0900
+++ /etc/apt/sources.list 2008-07-17 11:53:34.000000000 +0900
@@ -37,8 +37,8 @@
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
-# deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-backports main restricted universe multiverse
-# deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-backports main restricted universe multiverse
+deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-backports main restricted universe multiverse
+deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ hardy-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
Then,
$ bash
$ sudo apt-get update
$ sudo apt-get install lapack3 lapack3-dev
$ sudo apt-get install libgmp3 libgmp3-dev libgmpxx4ldbl
$ tar xvfz mpack-0.0.6.tar.gz
$ cd mpack-0.0.6
$ ./configure
$ make install
- MacOSX
On MacOSX with fink
$ bash
$ sudo fink install gmp
$ tar xvfz mpack-0.0.6.tar.gz
$ cd mpack-0.0.6
$ CXXFLAGS="-I/sw/include" ; export CXXFLAGS
$ CPPFLAGS="-I/sw/include" ; export CPPFLAGS
$ CFLAGS="-I/sw/include" ; export CFLAGS
$ LDFLAGS="-L/sw/lib"; export LDFLAGS
$ ./configure
$ make install
or, without fink:
First download GMP from http://gmplib.org/ and install GMP
by: (You may change "/Users/maho/gmp" to appropriate one)
$ bash
$ tar xvfz gmp-4.2.2.tar.gz
$ cd gmp-4.2.2
$ ./configure --enable-cxx --prefix=/Users/maho/gmp
$ make install
$ make check
$ cd
$ tar xvfz mpack-0.0.6.tar.gz
$ cd mpack-0.0.6
$ CXXFLAGS="-I/Users/maho/gmp/include" ; export CXXFLAGS
$ CPPFLAGS="-I/Users/maho/gmp/include" ; export CPPFLAGS
$ CFLAGS="-I/Users/maho/gmp/include" ; export CFLAGS
$ LDFLAGS="-L/Users/maho/gmp/lib"; export LDFLAGS
$ ./configure
$ make install
- On FreeBSD 7 and later
$ sh
$ F77="gfortran42"; export F77
$ CXXFLAGS="-I/usr/local/include" ; export CXXFLAGS
$ CPPFLAGS="-I/usr/local/include" ; export CPPFLAGS
$ CFLAGS="-I/usr/local/include" ; export CFLAGS
$ LDFLAGS="-L/usr/local/lib"; export LDFLAGS
$ tar xvfz mpack-0.0.6.tar.gz
$ cd mpack-0.0.6
$ ./configure
$ make install