ubuntu 安裝mysql-python和 python-ldap,navicate 問題

來源:互聯網
上載者:User

標籤:tail   查看   local   object   conf   over   字元   errors   mysql   

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 問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.