boost - c++ libraries, see the site for more info ChangeLog

HOWTO


# Boost 1.84.0
# ============
# Slackware 14.0: boost 1.49.0
# Slackware 14.1: boost 1.54.0
# Slackware 14.2: boost 1.59.0
# Slackware 15.0: boost 1.78.0
#
# Always check 'patches' too in case of upgrades

# If you want to uninstall Boost or remove files from a previous version
# before installing the new one, skip down to the bottom

# Prerequisites:
# Python
# zlib
# bzip2
# glibc's iconv or libiconv
# ICU

# Boost 1.84.0 release notes
# Boost 1.84.0 Library Documentation

# If you have trouble with the download URL below, try here instead:
# https://sourceforge.net/projects/boost/files/boost/

# Get the tarball
cd
test -f installed/boost_1_84_0.tar.bz2 &&
mv installed/boost_1_84_0.tar.bz2 .
test ! -f boost_1_84_0.tar.bz2 &&
wget https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/\
boost_1_84_0.tar.bz2

# Verify tarball w/ sha256sum:
# (this works too: shasum -a 256 boost_1_84_0.tar.bz2)
# (this works too: openssl sha256 boost_1_84_0.tar.bz2)
echo "cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c241094\
54  boost_1_84_0.tar.bz2" | sha256sum -c

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

# If you want everything to go in to /usr/local, leave off --prefix below
# Below we match the location of the Slackware package

# Configure it - 64-bit
test $(uname -m) = 'x86_64' &&
./bootstrap.sh --prefix=/usr --libdir=/usr/lib64

# Configure it - anything else
test $(uname -m) != 'x86_64' &&
./bootstrap.sh --prefix=/usr

# Build it
./b2

# Become root to build and install it
su

# Older versions of this howto (e.g. boost 1.31.0) also installed these
# binaries, remove them if they're there:
( cd /usr/bin ; rm -f jam mkjambase yyacc )
( cd /usr/local/bin ; rm -f jam mkjambase yyacc )

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

# Remove files from previously installed versions:
find /usr/include -maxdepth 1 -type d -name "boost-*"\
-exec rm -r {} \;
test -d /usr/include/boost && rm -r /usr/include/boost
rm -f /usr/lib*/libboost_*

# Install it
./b2 install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .

# Become yourself again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/boost_*.tar.*
mv boost_1_84_0.tar.bz2 installed/


# If you ever want to uninstall Boost, this should do it:
cd
su
for pfx in /usr /usr/local;
do
  find ${pfx}/include -maxdepth 1 -type d -name "boost-*"\
   -exec rm -r {} \;
  test -d ${pfx}/include/boost && rm -r ${pfx}/include/boost
  rm -f ${pfx}/lib*/libboost_*
done
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "boost_*" -exec rm -r {} \;
rm -f ~/installed/boost_*.tar.*

List of HOWTOs

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