首页 > 代码库 > ubuntu 安装mysql-python和 python-ldap,navicate 问题

ubuntu 安装mysql-python和 python-ldap,navicate 问题

1.Ubuntu 下 pip install mysql-python

报错 EnvironmentError: mysql_config not found

原因是缺少mysqlclient 包,执行 sudo apt-get install libmysqlclient-dev 即可解决

参考 http://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found

 

2.Installing python-ldap in Ubuntu

In file included from Modules/LDAPObject.c:9:0: Modules/errors.h:8:18: fatal error: lber.h: No such file or directory

执行 sudo apt-get install libldap2-dev 即可解决

参考 http://blog.csdn.net/xiaoxinyu316/article/details/46344393

 

3.Ubuntu 下安装 Navicate

查看系统支持的字符集: locale -a  

打开start_navicat文件,会看到 export LANG="en_US.UTF-8" 将这句话改为 export LANG="zh_CN.UTF-8"

参考 http://blog.csdn.net/loadrunn/article/details/50886772

 

 

ubuntu 安装mysql-python和 python-ldap,navicate 问题