逝者如斯夫

          靜而思之
          數(shù)據(jù)加載中……

          MySQL-python 安裝的問題

          在Mac下安裝MySQL-python一直有問題,不管是用pip還是用setup.py,都是返回如下錯(cuò)誤:


          sudo python setup.py install

          running install
          running bdist_egg
          running egg_info
          writing MySQL_python.egg-info/PKG-INFO
          writing top-level names to MySQL_python.egg-info/top_level.txt
          writing dependency_links to MySQL_python.egg-info/dependency_links.txt
          reading manifest file 'MySQL_python.egg-info/SOURCES.txt'
          reading manifest template 'MANIFEST.in'
          writing manifest file 'MySQL_python.egg-info/SOURCES.txt'
          installing library code to build/bdist.macosx-10.7-x86_64/egg
          running install_lib
          running build_py
          copying MySQLdb/release.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb
          running build_ext
          building '_mysql' extension
          / A p p l i c a t i o n s / X c o d e . a p p / C o n t e n t s / D e v e l o p e r / T o o l c h a i n s / X c o d e D e f a u l t . x c t o o l c h a i n / u s r / b i n / c l a n g?? - f n o - s t r i c t - a l i a s i n g?? - f n o - c o m m o n?? - d y n a m i c?? - I / u s r / l o c a l / i n c l u d e?? - I / u s r / l o c a l / o p t / s q l i t e / i n c l u d e?? - i s y s r o o t?? / A p p l i c a t i o n s / X c o d e . a p p / C o n t e n t s / D e v e l o p e r / P l a t f o r m s / M a c O S X . p l a t f o r m / D e v e l o p e r / S D K s / M a c O S X 1 0 . 7 . s d k?? - I / A p p l i c a t i o n s / X c o d e . a p p / C o n t e n t s / D e v e l o p e r / P l a t f o r m s / M a c O S X . p l a t f o r m / D e v e l o p e r / S D K s / M a c O S X 1 0 . 7 . s d k / S y s t e m / L i b r a r y / F r a m e w o r k s / T k . f r a m e w o r k / V e r s i o n s / 8 . 5 / H e a d e r s?? - D N D E B U G?? - g?? - f w r a p v?? - O 3?? - W a l l?? - W s t r i c t - p r o t o t y p e s?? -Dversion_info=(1,2,4,'final',1) -D__version__=1.2.4 -I/usr/local/Cellar/mysql/5.6.10/include -I/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.7-x86_64-2.7/_mysql.o -Os -g -fno-strict-aliasing
          unable to execute /: Permission denied
          error: command '/' failed with exit status 1


          經(jīng)過Google,發(fā)現(xiàn)原來是XCode沒有安裝Command line Tools的問題,參考:http://sourceforge.net/p/mysql-python/bugs/333/

          posted on 2013-07-22 01:59 ideame 閱讀(557) 評(píng)論(0)  編輯  收藏 所屬分類: Script


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 闽侯县| 阿拉善左旗| 容城县| 德江县| 航空| 罗江县| 兰西县| 沙田区| 民县| 玉门市| 义乌市| 息烽县| 巴楚县| 德钦县| 锦州市| 寿阳县| 曲阜市| 永平县| 四会市| 合肥市| 大兴区| 日喀则市| 怀集县| 泰和县| 澎湖县| 两当县| 建瓯市| 吐鲁番市| 汕尾市| 霍山县| 广宁县| 宁晋县| 临邑县| 泸水县| 东乡| 巴东县| 昭苏县| 青河县| 灵寿县| 滦南县| 天镇县|