salt 安装MySQL-python和过程

1.下载 MySQL-python-1.2.3.tar.gz 

tar zxvf MySQL-python-1.2.3.tar.gz 

cd MySQL-python-1.2.3

python26 setup.py  install

提示错误:

Traceback (most recent call last):

  File "setup.py", line 5, in <module>

    from setuptools import setup, Extension

ImportError: No module named setuptools

解决方法:

 wget --no-check-certificate http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz 

tar zxvf setuptools-0.6c11.tar.gz 

cd setuptools-0.6c11

python26 setup.py  install

cd ..

cd MySQL-python-1.2.3

python26 setup.py  install

提示错误:

error: command 'gcc' failed with exit status 1

yum install python26-devel.x86_64 -y

就行了

有时还提示错误:

    raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

修改site.cfg

#mysql_config = /usr/local/bin/mysql_config

修改为:

mysql_config = /usr/local/mysql/bin/mysql_config


2.下载APScheduler-2.1.2.tar.gz 

tar zxvf APScheduler-2.1.2.tar.gz 

cd APScheduler-2.1.2

python26 setup.py  install



你可能感兴趣的:(mysql,SALT)