mpc - C library for the arithmetic of complex numbers ChangeLog

HOWTO


# GNU MPC 1.3.1
# =============
# Slackware 14.0, 14.1: libmpc 0.8.2
# Slackware 14.2: libmpc 1.0.3
# Slackware 15.0: libmpc 1.2.1

# Prerequisites:
# GMP >= 5.0.0
# MPFR >= 4.1.0

# If you have trouble downloading with the URL below, here are other
# options:
# https://ftp.gnu.org/gnu/mpc/
# https://ftpmirror.gnu.org/mpc/ (automatic redirect)
# https://www.gnu.org/prep/ftp.html (GNU mirrors)

# Get the tarball
cd
test -f installed/mpc-1.3.1.tar.gz &&
mv -f installed/mpc-1.3.1.tar.gz .
test ! -f mpc-1.3.1.tar.gz &&
wget https://ftpmirror.gnu.org/mpc/mpc-1.3.1.tar.gz

# Verify tarball w/ sha256sum:
# (this came from my gpg-verified tarball)
echo "ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759\
b8  mpc-1.3.1.tar.gz" | sha256sum -c

# Verify tarball w/ gpg:
# https://www.multiprecision.org/downloads/enge.gpg
( gpg --list-keys AD17A21EF8AED8F1CC02DBD9F7D5C9BF765C61E3 > /dev/null 2>&1 ||
  gpg --recv-keys AD17A21EF8AED8F1CC02DBD9F7D5C9BF765C61E3 ) &&
wget -nc https://ftpmirror.gnu.org/mpc/mpc-1.3.1.tar.gz.sig &&
  gpg --verify mpc-1.3.1.tar.gz.sig && rm mpc-1.3.1.tar.gz.sig

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "mpc-*" exec rm -r {} \;
tar xzvf ~/mpc-1.3.1.tar.gz
cd mpc-1.3.1
test $UID = 0 && chown -R root:root .

# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --infodir=/usr/info --libdir=/usr/lib64

# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure --prefix=/usr --infodir=/usr/info

# Build it
make

# Become root to install it
su

# Before removing the Slackware package, or instead of removing the
# Slackware package, keep a copy of /usr/lib*/libmpc.so.* in case
# something breaks.  If the new version is also symlinked with
# libmpc.so.3 like this one is, you should be fine.  If not, you may
# need to put the older version back in there, or try a symlink:
# ( cd /usr/lib64
#   ln -s libmpc.so libmpc.so.2
#   ldconfig )

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libmpc

# Install it
make install
ldconfig

# Become yourself again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/mpc-*.tar.*
mv -f mpc-1.3.1.tar.gz installed/


# If you ever want to uninstall MPC, this should do it:
cd
su
test -d src/mpc-* && ( cd src/mpc-* ; make uninstall )
find /usr/doc -maxdepth 1 -type d -name "libmpc-*" -exec rm -r {} \;
test -d /usr/doc/mpc && rm -r /usr/doc/mpc
( cd /usr/info ; rm -f mpc.info mpc.info.gz )
rm -f /usr/include/mpc.h /usr/lib*/libmpc.*
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "mpc-*" -exec rm -r {} \;
rm -f ~/installed/mpc-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2024-03-01 12:35am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]