First of all a disclaimer: I am relatively inexperienced at using linux commands.
I have a CentOS5 server running php 5.2.9 on a 1and1.com VPS.
I want to install Magento, but in order to do so I need the mcrypt extension.
I attempted to install using
yum install mhash
yum install mcrypt
yum install php-mhash
yum install php-mcrypt
BUT it didn't work. Now I get:
# php -v
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
[B]These options need to match[/B]
in Unknown on line 0
PHP Warning: PHP Startup: mhash: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
[B]These options need to match[/B]
in Unknown on line 0
PHP 5.2.9 (cli) (built: Jul 8 2009 05:59:13)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
Then I attempted to follow the directions here:
But then I get this (I don't know what it means):
# ./configure –disable-posix-threads
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: –disable-posix-threads
checking build system type... Invalid configuration `–disable-posix-threads': machine `–disable-posix' not recognized
configure: error: /bin/sh ./config.sub –disable-posix-threads failed
I just want to install Magento!
Please help me get this mcrypt thing installed.