ERROR: Slooooow dooooown... this page load was delayed.


mcrypt - Cryptography library ChangeLog

HOWTO


# mcrypt
# ======
# mcrypt can be used by PHP for encryption support (and other things too,
# but that's the one I use it for)


# libmcrypt 2.5.8
# ===============
cd
test -f installed/libmcrypt-2.5.8.tar.bz2 &&
mv installed/libmcrypt-2.5.8.tar.bz2 .
test ! -f libmcrypt-2.5.8.tar.bz2 &&
wget http://downloads.sf.net/mcrypt/libmcrypt-2.5.8.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libmcrypt-*" -exec rm -r {} \;
tar xjvf ~/libmcrypt-2.5.8.tar.bz2
cd libmcrypt-2.5.8
test $UID = 0 && chown -R root:root .
./configure
make

# Become root to install it
su

# Clean up shared libraries from old versions
rm -f /usr/local/lib/libmcrypt.*
test -d /usr/local/lib/libmcrypt && rm -r /usr/local/lib/libmcrypt

# Install it
make install
ldconfig

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

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libmcrypt-*.tar.*
mv libmcrypt-2.5.8.tar.bz2 installed/


# mcrypt 2.6.8
# ============
# Prerequisites:
# libmcrypt >= 2.5.0
# mhash >= 0.8.15
# gettext
# zlib
# gzip
# bzip2

cd
test -f installed/mcrypt-2.6.8.tar.gz &&
mv installed/mcrypt-2.6.8.tar.gz .
test ! -f mcrypt-2.6.8.tar.gz &&
wget http://downloads.sf.net/mcrypt/mcrypt-2.6.8.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "mcrypt-*" -exec rm -r {} \;
tar xzvf ~/mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8
test $UID = 0 && chown -R root:root .
./configure --mandir=/usr/local/man --disable-nls
make

# Become root to install it
su

# Install it
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/mcrypt-*.tar.*
mv mcrypt-2.6.8.tar.gz installed/


# If you ever want to uninstall libmcrypt, this should do it:
cd
su
test -d src/libmcrypt-* && ( cd src/libmcrypt-* ; make uninstall )
test -d /usr/local/lib/libmcrypt && rm -r /usr/local/lib/libmcrypt
( cd /usr/local/lib ; rm -f libmcrypt.* )
rm -f /usr/local/bin/libmcrypt-config /usr/local/man/man3/mcrypt.3 \
/usr/local/share/aclocal/libmcrypt.m4
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libmcrypt-*" -exec rm -r {} \;
rm -f ~/installed/libmcrypt-*.tar.*


# If you ever want to uninstall mcrypt, this should do it:
cd
su
test -d src/mcrypt-* && ( cd src/mcrypt-* ; make uninstall )
( cd /usr/local/bin ; rm -f mcrypt mdecrypt )
rm -f /usr/local/man/man1/mcrypt.1
find /usr/local/share/locale -type f -name mcrypt.mo -exec rm {} \;
exit
find ~/src -maxdepth 1 -type d -name "mcrypt-*" -exec rm -r {} \;
rm -f ~/installed/mcrypt-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2009-03-08 10:03pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]