11-28 Essays

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.