cd
test -f installed/ming-0.4.0.beta5.tar.bz2 &&
mv installed/ming-0.4.0.beta5.tar.bz2 .
test ! -f ming-0.4.0.beta5.tar.bz2 &&
wget http://downloads.sf.net/ming/ming-0.4.0.beta5.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "ming-*" -exec rm -r {} \;
tar xjvf ~/ming-0.4.0.beta5.tar.bz2
cd ming-0.4.0.beta5
test $UID = 0 && chown -R root:root .
# To enable the Perl extension, pass --enable-perl to configure
# To enable the PHP extension, pass --enable-php to configure
# To enable the Python extension, pass --enable-python to configure
# To enable the Tcl extension, pass --enable-tcl to configure
./configure
make
# Become root to install it
su
# Remove old library files, install it
rm -f /usr/local/lib/libming.*
make install
ldconfig
# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .