Linux HOWTOs

About | Home | Search


HOWTO: liboil
Description: Library of functions optimized for various CPUs
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# liboil 0.3.14
# =============
# Prerequisites:
# pkg-config
# Glib-2.0

cd
test -f installed/liboil-0.3.14.tar.gz &&
 mv installed/liboil-0.3.14.tar.gz .
test ! -f liboil-0.3.14.tar.gz &&
 wget http://liboil.freedesktop.org/download/liboil-0.3.14.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "liboil-*" -exec rm -r {} \;
tar xzvf ~/liboil-0.3.14.tar.gz
cd liboil-0.3.14
test $UID = 0 && chown -R root:root .
./configure
make

# Become root to install it
su

rm -f /usr/local/lib/liboil-*
make install
ldconfig

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

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/liboil-*.tar.*
mv liboil-0.3.14.tar.gz installed/


# If you ever want to uninstall liboil, this should do it:
cd
su
test -d src/liboil-* && ( cd src/liboil-* ; make uninstall )
find /usr/local/include -maxdepth 1 -type d -name "liboil-*" \
 -exec rm -r {} \;
test -d /usr/local/share/gtk-doc/html/liboil &&
 rm -r /usr/local/share/gtk-doc/html/liboil
rm -f /usr/local/lib/liboil-* /usr/local/lib/pkgconfig/liboil-*.pc
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "liboil-*" -exec rm -r {} \;
rm -f ~/installed/liboil-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>