第ä¸æ¥å®è£
Djangoï¼
ä¸è½½å
ï¼Django-0.96.1.tar.gz
解åè¿ä¸ªå
ï¼tar zxf Django-0.96.1.tar.gz -C
/usr/tmp
å®è£
ï¼
cd /usr/tmp
cd Django-0.96.1
su
python setup.py install
æ£æ¥å®è£
æ¯å¦æ£ç¡®ï¼
python
>>> import django
>>> django.VERSION
(0, 96.099999999999994, None)
>>>
第äºæ¥å®è£
MySQLï¼
ä¸è½½å
ï¼mysql-5.1.23-rc.tar.gz
解åï¼tar zxf mysql-5.1.23-rc.tar.gz -C
/usr/tmp
å®è£
ï¼
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip
shell> cd mysql-VERSION
shell> ./configure
--prefix=/usr/local/mysql
shell> make
è¿ä¸æ¥éª¤ä¼éè¦ä¸æ®µæ¶é´ï¼ä½ å¯ä»¥éæ©å»åé¡¿é¥ï¼ä½ä¸è¦åå¾å¤ªå¿«ã
shell> make install
shell> cp support-files/my-medium.cnf
/etc/my.cnf
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> bin/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> bin/mysqld_safe --user=mysql &
cp /usr/local/mysql/lib/mysql/libmysqlclient.so.16
/usr/lib/.
cp /usr/local/mysql/lib/mysql/libmysqlclient_r.so.16
/usr/lib/.
第ä¸æ¥å®è£
Apache
ä¸è½½å
ï¼
httpd-2.2.8.tar.gz
解åï¼
tar zxf httpd-2.2.8.tar.gz -C
/usr/tmp
å®è£
ï¼
./configure
--prefix=/usr/local/httpd
make
make install
第åæ¥å®è£
mod_python
ä¸è½½å
ï¼
mod_python-3.3.1.tgz
解åï¼
tar zxf mod_python-3.3.1.tgz -C
/usr/tmp
å®è£
ï¼
./configure
--with-apxs=/usr/local/httpd/bin/apxs
make
make install
第äºæ¥å®è£
MySQLdb
ä¸è½½å
ï¼
MySQL-python-1.2.2.tar.gz
setuptools-0.6c5-py2.4.egg
解åï¼
tar zxf MySQL-python-1.2.2.tar.gz
-C /usr/tmp
cp setuptools-0.6c5-py2.4.egg
/usr/tmp/MySQL-python-1.2.2
å®è£
ï¼
cd
/usr/tmp/MySQL-python-1.2.2
python setup.py build
su
python setup.py install
chmod 644
/root/.python-eggs/MySQL_python-1.2.2-py2.4-linux-i686.egg-tmp/_mysql.so
å®è£
å·®ä¸å¤å°±æ¯è¿æ ·åã
温馨提示:答案为网友推荐,仅供参考