"Pip MySQL-python 설치"의 두 판 사이의 차이

잔글 (Jmnote 사용자가 Python MySQLdb 모듈 설치 문서를 MySQL-python 모듈 설치 문서로 옮겼습니다)
1번째 줄: 1번째 줄:
;Python MySQLdb 모듈 설치
;Python MySQLdb 모듈 설치
;MySQL-python 설치
;MySQL-python 설치
==확인==
<source lang='dos'>
[root@jmnote ~]# pip show MySQL-python
[root@jmnote ~]# pip list | grep MySQL-python
</source>


==방법==
==방법==
<source lang='dos'>
<source lang='dos'>
[root@jmnote ~]# wget http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz
[root@jmnote ~]# pip install MySQL-python
... (생략)
Downloading/unpacking MySQL-python
2014-07-07 10:44:57 (375 KB/s) - “MySQL-python-1.2.3.tar.gz” saved [70305/70305]
  Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
  Running setup.py egg_info for package MySQL-python
Installing collected packages: MySQL-python
  Running setup.py install for MySQL-python
    building '_mysql' extension
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-x86_64-2.6/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -DUNIV_LINUX -DUNIV_LINUX
    In file included from /usr/include/mysql/my_config.h:14,
                    from _mysql.c:44:
    /usr/include/mysql/my_config_x86_64.h:1082:1: warning: "HAVE_WCSCOLL" redefined
    In file included from /usr/include/python2.6/pyconfig.h:6,
                    from /usr/include/python2.6/Python.h:8,
                    from _mysql.c:29:
    /usr/include/python2.6/pyconfig-64.h:808:1: warning: this is the location of the previous definition
    gcc -pthread -shared build/temp.linux-x86_64-2.6/_mysql.o -L/usr/lib64/mysql -L/usr/lib64 -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lssl -lcrypto -lpython2.6 -o build/lib.linux-x86_64-2.6/_mysql.so
Successfully installed MySQL-python
Cleaning up...
</source>
 
==확인 2==
<source lang='dos'>
[root@cloud-hub ~]# pip show MySQL-python
---
Name: MySQL-python
Version: 1.2.4b4
Location: /usr/lib64/python2.6/site-packages/MySQL_python-1.2.4b4-py2.6-linux-x86_64.egg
Requires:
</source>
</source>


16번째 줄: 47번째 줄:
*[[this is MySQLdb version (1, 2, 3, 'gamma', 1), but _mysql is version (1, 2, 3, 'final', 0)]]
*[[this is MySQLdb version (1, 2, 3, 'gamma', 1), but _mysql is version (1, 2, 3, 'final', 0)]]


[[분류: 설치]]
[[분류: pip 설치]]

2014년 7월 8일 (화) 15:31 판

Python MySQLdb 모듈 설치
MySQL-python 설치

1 확인

[root@jmnote ~]# pip show MySQL-python
[root@jmnote ~]# pip list | grep MySQL-python

2 방법

[root@jmnote ~]# pip install MySQL-python
Downloading/unpacking MySQL-python
  Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
  Running setup.py egg_info for package MySQL-python
Installing collected packages: MySQL-python
  Running setup.py install for MySQL-python
    building '_mysql' extension
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-x86_64-2.6/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -DUNIV_LINUX -DUNIV_LINUX
    In file included from /usr/include/mysql/my_config.h:14,
                     from _mysql.c:44:
    /usr/include/mysql/my_config_x86_64.h:1082:1: warning: "HAVE_WCSCOLL" redefined
    In file included from /usr/include/python2.6/pyconfig.h:6,
                     from /usr/include/python2.6/Python.h:8,
                     from _mysql.c:29:
    /usr/include/python2.6/pyconfig-64.h:808:1: warning: this is the location of the previous definition
    gcc -pthread -shared build/temp.linux-x86_64-2.6/_mysql.o -L/usr/lib64/mysql -L/usr/lib64 -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lssl -lcrypto -lpython2.6 -o build/lib.linux-x86_64-2.6/_mysql.so
Successfully installed MySQL-python
Cleaning up...

3 확인 2

[root@cloud-hub ~]# pip show MySQL-python
---
Name: MySQL-python
Version: 1.2.4b4
Location: /usr/lib64/python2.6/site-packages/MySQL_python-1.2.4b4-py2.6-linux-x86_64.egg
Requires:

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}