반응형
pip를 사용하여 우분투 12.04에 pymssql을 설치하려고
pip를 사용하여 우분투 12.04에 pymssql을 설치하려고합니다. 이것은 내가 얻는 오류입니다. 내가 완전히 길을 잃었으므로 어떤 도움이라도 대단히 감사하겠습니다!
인터넷 검색을 시도했지만 불행히도 아무 소용이 없습니다 ...
Downloading pymssql-2.0.0b1-dev-20130403.tar.gz (2.8Mb): 2.8Mb downloaded
Running setup.py egg_info for package pymssql
warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Utility'
Compiling module Cython.Plex.Scanners ...
Compiling module Cython.Plex.Actions ...
Compiling module Cython.Compiler.Lexicon ...
Compiling module Cython.Compiler.Scanning ...
Compiling module Cython.Compiler.Parsing ...
Compiling module Cython.Compiler.Visitor ...
Compiling module Cython.Compiler.FlowControl ...
Compiling module Cython.Compiler.Code ...
Compiling module Cython.Runtime.refnanny ...
Installed /home/radek/build/pymssql/Cython-0.19.1-py2.7-linux-x86_64.egg
cc -c /tmp/clock_gettimeh7sDgX.c -o tmp/clock_gettimeh7sDgX.o
cc tmp/clock_gettimeh7sDgX.o -lrt -o a.out
warning: no files found matching 'win32/freetds.zip'
Installing collected packages: pymssql
Running setup.py install for pymssql
skipping '_mssql.c' Cython extension (up-to-date)
building '_mssql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/radek/build/pymssql/freetds/nix_64/include -I/usr/include/python2.7 -c _mssql.c -o build/temp.linux-x86_64-2.7/_mssql.o -Wno-parentheses-equality -DMSDBLIB
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/_mssql.o -L/home/radek/build/pymssql/freetds/nix_64/lib -lsybdb -lct -lrt -o build/lib.linux-x86_64-2.7/_mssql.so
/usr/bin/ld: cannot find -lct
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/radek/build/pymssql/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Et_P1_-record/install-record.txt:
running install
running build
running build_ext
skipping '_mssql.c' Cython extension (up-to-date)
building '_mssql' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/radek/build/pymssql/freetds/nix_64/include -I/usr/include/python2.7 -c _mssql.c -o build/temp.linux-x86_64-2.7/_mssql.o -Wno-parentheses-equality -DMSDBLIB
creating build/lib.linux-x86_64-2.7
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/_mssql.o -L/home/radek/build/pymssql/freetds/nix_64/lib -lsybdb -lct -lrt -o build/lib.linux-x86_64-2.7/_mssql.so
/usr/bin/ld: cannot find -lct
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/radek/build/pymssql/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Et_P1_-record/install-record.txt failed with error code 1
python-dev
패키지가 설치되어 있는지 확인합니다 (@ravihemnani 덕분에 네이티브 바인딩으로 패키지를 컴파일해야 함).
그런 다음 pip freetds-dev
로 설치하기 전에 FreeTDS 개발 패키지 ( )를 설치해야합니다 pymssql
.
$ sudo apt-get install freetds-dev
그런 다음 virtualenv 또는 설치하려는 위치에 :
$ pip install pymssql
freetds-dev와 별도로 python-dev를 설치해야합니다.
sudo apt-get install python-dev
그렇지 않으면 다시 몇 가지 오류가 발생합니다.
OpenSuse (및 관련 OS) 사용자 :
zypper in freetds-devel
pip install pymssql
Mac에서
brew install freetds@0.91
brew link --force freetds@0.91
pip install pymssql
ReferenceURL : https://stackoverflow.com/questions/17368964/trying-to-install-pymssql-on-ubuntu-12-04-using-pip
반응형
'Nice programing' 카테고리의 다른 글
존재하지 않는 경우 디렉토리 생성 (0) | 2021.01.09 |
---|---|
Interface Builder의 UILabel에 유니 코드 문자를 입력하는 방법은 무엇입니까? (0) | 2021.01.09 |
아틀라스에서 로컬로 방랑 상자 파일을 다운로드하고 구성 (0) | 2021.01.09 |
corecrt.h를 찾을 수 없음 : $ (UniversalCRT_IncludePath)가 잘못되었습니다. (0) | 2021.01.09 |
c # : 문자열 상수를 저장하기 위해 열거 형을 사용하는 방법? (0) | 2021.01.09 |