Lamp finally has a shape:
The Debian system has nothing to do with, and the commands are similar.
Apache is not tested at present, and it is estimated that there will be problems
MySQL problem solved
Python is okay.
Another problem is as follows:
I,
Traceback (most recent call last): File "setup.py", line 10, in <module> from ez_setup import use_setuptoolsImportError: No module named ez_setup
The solution is to download ez_setup,
wget http://peak.telecommunity.com/dist/ez_setup.pypython ez_setup.py
Ii. environmenterror: mysql_config not found when installing mysqldb/MySQL-Python:
sh: mysql_config: not foundTraceback (most recent call last): File "setup.py", line 15, in <module> metadata, options = get_config() File "/root/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config libs = mysql_config("libs_r") File "/root/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config raise EnvironmentError("%s not found" % (mysql_config.path,))EnvironmentError: mysql_config not found
First, find the location of mysql_config and use find/-name mysql_config, for example, in/usr/local/MySQL/bin/mysql_config
Modify the setup_posix.py file in 26 rows:
Modify mysql_config.path = "mysql_config":
Mysql_config.path = "/usr/local/MySQL/bin/mysql_config"
Save the modification and then execute
III,
After installing mysql-Python, the import module prompts the following error,
ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
Soft link all the so files about libmysqlclient under MySQL/lib to/usr/lib.
ln -s /usr/local/mysql/lib/mysql/libmysqlclient* /usr/libldconfig
In this way, errors will not occur during the import of mysqldb.