mysql (5.1 이상), python (2.6 이상) 및 mysqldb python 모듈을 사용하여 ec2에서 Linux ami를 설정하려고합니다. 처음부터 시작하거나 내가 시작한 문제를 해결하는 두 가지 옵션이 있습니다.Linux에서 MySQLdb Python 모듈을 설치하는 중 문제 AMI
처음부터 시작하는 것이 쉬운 경우 누구나 ami 및 관련 명령을 사용하여이 구성을 사용할 수 있습니까?
다음은 내가 시도한 내용입니다. 나는이 ami로 시작했다 : LAMP_Rails_Python_plus_goodies (ami-5db76434). 그게 저에게 mysql과 python을줍니다. mysqldb 모듈을 가지고 있지만 python-devel 패키지가 필요하다고 생각한다. 나는 다음에 그것을 설치하려고 : 나는 문제가 발생할 어디 그
Transaction Check Error:
file /etc/rpm/macros.python from install of python-1:2.6-2.22.amzn1.noarch conflicts with file from package system-release-2011.09-2.3.noarch
:
얌이 결과 파이썬 (STABLE)
를 설치합니다. 그 갈등을 어떻게 해결해야할지 모르겠다.
이In file included from _mysql.c:29:
pymemcompat.h:10:20: error: Python.h: No such file or directory
_mysql.c:30:26: error: structmember.h: No such file or directory
_mysql.c:36:23: error: my_config.h: No such file or directory
_mysql.c:38:19: error: mysql.h: No such file or directory
_mysql.c:39:26: error: mysqld_error.h: No such file or directory
_mysql.c:40:20: error: errmsg.h: No such file or directory
_mysql.c:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
인터넷 검색을 내가 파이썬 (STABLE)가 설치되어 있어야합니다 믿고 날 리드 다음 mysqldb 모듈 (파이썬 setup.py 빌드) 구축을 초래한다. 어쩌면 나는 다른 ami를 사용해야하지만 나는이 시점에서 추측 게임을하고있는 것처럼 느낍니다. 어떤 도움을 주셔서 감사합니다.
내 문제가 해결되었습니다. 감사합니다. – Chris