디시인사이드 갤러리

갤러리 이슈박스, 최근방문 갤러리

갤러리 본문 영역

[🔎질문] centos7 pyodbc 설치 에러..

ㅇㅇ(175.196) 2021.12.08 15:15:16
조회 410 추천 0 댓글 1
														

pyodbc 설치하려고 하면 아래처럼 에러 발생하는데 뭐가 문제인가요 ?ㅜㅜ

[test@test ~] pip install pyodbc

Defaulting to user installation because normal site-packages is not writeable

Collecting pyodbc

  Using cached pyodbc-4.0.32.tar.gz (280 kB)

  Preparing metadata (setup.py) ... done

Building wheels for collected packages: pyodbc

  Building wheel for pyodbc (setup.py) ... error

  ERROR: Command errored out with exit status 1:

   command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-svsxgzu3/pyodbc_5c32707e197440308656ef89b5a51727/setup.py'"'"'; __file__='"'"'/tmp/pip-install-svsxgzu3/pyodbc_5c32707e197440308656ef89b5a51727/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();[...])' bdist_wheel -d /tmp/pip-wheel-o4dv75tm

       cwd: /tmp/pip-install-svsxgzu3/pyodbc_5c32707e197440308656ef89b5a51727/

  Complete output (14 lines):

  running bdist_wheel

  running build

  running build_ext

  building 'pyodbc' extension

  creating build

  creating build/temp.linux-x86_64-3.6

  creating build/temp.linux-x86_64-3.6/src

  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.6m -c src/buffer.cpp -o build/temp.linux-x86_64-3.6/src/buffer.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/include

  In file included from src/buffer.cpp:12:0:

  src/pyodbc.h:56:17: fatal error: sql.h: 그런 파일이나 디렉터리가 없습니다

   #include <sql.h>

                   ^

  compilation terminated.

  error: command 'gcc' failed with exit status 1

  ----------------------------------------

  ERROR: Failed building wheel for pyodbc

  Running setup.py clean for pyodbc

Failed to build pyodbc

Installing collected packages: pyodbc

    Running setup.py install for pyodbc ... error

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-svsxgzu3/pyodbc_5c32707e197440308656ef89b5a51727/setup.py'"'"'; __file__='"'"'/tmp/pip-install-svsxgzu3/pyodbc_5c32707e197440308656ef89b5a51727/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();[...])' install --record /tmp/pip-record-8nu6h1o7/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/actian/.local/include/python3.6m/pyodbc

         cwd: /tmp/pip-install-svsxgzu3/pyodbc_5c32707e197440308656ef89b5a51727/

    Complete output (16 lines):

    running install

    /usr/local/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

      setuptools.SetuptoolsDeprecationWarning,

    running build

    running build_ext

    building 'pyodbc' extension

    creating build

    creating build/temp.linux-x86_64-3.6

    creating build/temp.linux-x86_64-3.6/src

    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.6m -c src/buffer.cpp -o build/temp.linux-x86_64-3.6/src/buffer.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/include

    In file included from src/buffer.cpp:12:0:

    src/pyodbc.h:56:17: fatal error: sql.h: 그런 파일이나 디렉터리가 없습니다

     #include <sql.h>

                     ^

    compilation terminated.

    error: command 'gcc' failed with exit status 1

    ----------------------------------------

ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-svsxgzu3/pyodbc_5c32707e197440308656ef89b5a51727/setup.py'"'"'; __file__='"'"'/tmp/pip-install-svsxgzu3/pyodbc_5c32707e197440308656ef89b5a51727/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();[...])' install --record /tmp/pip-record-8nu6h1o7/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/actian/.local/include/python3.6m/pyodbc Check the logs for full command output.



추천 비추천

0

고정닉 0

0

댓글 영역

전체 댓글 0
본문 보기

하단 갤러리 리스트 영역

왼쪽 컨텐츠 영역

갤러리 리스트 영역

갤러리 리스트
번호 말머리 제목 글쓴이 작성일 조회 추천
- 설문 주류 모델하면 매출 폭등시킬 것 같은 아이돌 스타는? 운영자 26/01/05 - -
- AD 집에서 즐기는 Fresh 미식회 운영자 25/12/22 - -
1054 📚정보 ※ 질문게이 필독! 질문하는 법.txt [2] ㅇㅇ(121.142) 21.12.14 697 6
1053 🔎질문 한문제만 도와주세요 ㅠ [3] 파이선(182.216) 21.12.14 164 0
1052 🔎질문 흑백사진 질문 다시 앙망합니다 [3] ㅇㅇ(116.120) 21.12.13 134 0
1049 🔎질문 터미널 줄맞춤 [9] ㅇㅇ(112.156) 21.12.13 159 0
1048 🔎질문 파이썬 or 파이게임 공부하기 좋은 유튜브 채널 있나요? [4] ㅇㅇ(110.15) 21.12.13 205 0
1047 🔎질문 씹늅) 셀레늄 질문 [10] ㅇㅇ(59.2) 21.12.13 166 1
1046 🔎질문 흑백사진을 csv파일로 변환하려는데 도움좀 [2] ㅇㅇ(116.120) 21.12.12 170 0
1045 일반 딱지 온 ㅋㅋ [1] 주넹갤로그로 이동합니다. 21.12.12 120 0
1044 🔎질문 프린트는 되는데 플랏이 안되는 이유가 멀까요? [4] 외않돼(221.150) 21.12.12 136 0
1043 🔎질문 matplotlib 그래프 질문이요! [1] 00(58.121) 21.12.12 147 0
1038 🔎질문 응애 뉴비 질문좀 [6] ㅇㅇ(180.66) 21.12.10 189 0
1037 🔎질문 메서드에서 만든 프로퍼티? 질문점.. [4] ㅇㅇ(117.111) 21.12.10 156 0
1036 🔎질문 다음 구경갈 컨텐츠 추천좀 [4] 키메라(1.212) 21.12.10 125 0
1035 🔎질문 독학중인 뉴비 질문점 ㅠㅠ [3] ㅇㅇ(121.172) 21.12.09 177 0
1034 일반 인간딥러닝 On [8] 사밀(223.38) 21.12.09 168 0
1033 일반 이거 님들한텐 3시간 컷 아님? 10만원 드릴께 [6] 11(106.253) 21.12.09 216 0
1032 일반 라이부러리 만드는쉑 = 초보자마을만렙대머리 맞노? [1] 키메라(1.212) 21.12.09 126 0
1031 일반 KoNLpy 설치 다시 도오오오오오전! [8] 사밀(14.39) 21.12.08 161 0
🔎질문 centos7 pyodbc 설치 에러.. [1] ㅇㅇ(175.196) 21.12.08 410 0
1028 🔎질문 혹시 에러 뜰 때 인풋값 체크 하는 방법 있나요 [3] ㅇㅇ(183.101) 21.12.08 125 0
1027 일반 질문 답변하니깐 글삭을 해버리노 ㅋㅋㅋㅋ [4] 라댜갤로그로 이동합니다. 21.12.07 169 0
1026 🔎질문 컴알못 파이썬 진짜 사소한거 질문 [5] ㅇㅇ(183.101) 21.12.07 200 0
1024 🔎질문 from A import * 랑 import A as B랑 합치기 [13] ㅇㅇ(220.76) 21.12.07 186 0
1023 일반 파이썬 코테 수준별 스터디 [1] ㅇㅇ(203.251) 21.12.07 329 0
1022 🔎질문 koNLpy 써보려는데 뭔가 Java 설치하는데서 막히는데 도움 좀.. [4] 사밀(14.39) 21.12.07 365 0
1019 일반 딱지 주넹갤로그로 이동합니다. 21.12.06 117 0
1018 🔎질문 커서를 이동시키지 않고 클릭한 효과를 내려면 어떻게 어떻게 해야되나요? [5] ㅇㅇ(61.102) 21.12.06 213 0
1017 🔎질문 아톰으로 1초단위로 관측된 데이터 읽으려면 어떻게 해야되나요? [2] ㅇㅇ(1.230) 21.12.06 120 0
1016 🔎질문 파이썬 클래스랑 메서드 배우는데 문제 질문좀 받아주세요 [2] ㅇㅇ(124.57) 21.12.06 227 0
1012 🔎질문 디스코드'를' 크롤링하고 싶은데 질문 [4] ㅇㅇ(112.153) 21.12.06 347 0
1011 일반 나도 랜덤 통계내는 프로그램 만들엇음 [1] ㅇㅇ(210.183) 21.12.06 135 0
1010 🔎질문 간단한거 질문좀요.. [4] ㅇㅇ(121.167) 21.12.06 137 0
1007 🔎질문 csv파일을 이용하여 그래프를 그려보고 싶습니다.(제발 도와주세요 제발요 [1] 제발도와주세요(1.231) 21.12.06 216 0
1006 🔎질문 랜덤 숫자 횟수 그래프를 그리기 질문 [5] ㅇㅇ(183.99) 21.12.05 180 0
1005 일반 Programing newbie's 오늘의 thinking 키메라(112.148) 21.12.05 113 0
1004 일반 기사 검색 프로그램 겨우 다 만들었다 [12] 사밀(14.39) 21.12.05 363 0
1001 🔎질문 스타트업쪽으로 창업할려는데 조언좀 [11] (122.46) 21.12.05 303 0
999 🔎질문 Java 기반의 클래스를 쓰는 라이브러리로 뭘 만들면 [4] 사밀(14.39) 21.12.05 145 0
998 🔎질문 cd 명령어가 안먹어 [2] ㅇㅇ(218.51) 21.12.04 147 0
997 일반 오늘은 지난번에 만들어보겠다는 거 약식으로라도 만들어봐야겠다 [1] 사밀(14.39) 21.12.04 124 1
996 일반 며칠동안 출장갔다오고 바쁘기도 해서 간만에 컴터 켰는데 사밀(14.39) 21.12.04 107 0
995 일반 뉴비특) 피드백이 없음 [2] ㅇㅇ(223.39) 21.12.04 168 3
994 🔎질문 파이썬 기초 좀 물어볼게있어.. [6] 파린이(49.164) 21.12.04 226 0
993 🔎질문 형들 리스트 정렬 간단한 질문 있습니다 [7] ㅇㅇ(125.191) 21.12.04 159 0
992 🔎질문 이거 실행하는 법 좀 [4] ㅇㅇ(106.253) 21.12.04 194 0
991 🔎질문 map 쓸 때 내부 함수의 파라미터? 같은건 따로 설정 못하나요? [4] ㅇㅇ(183.101) 21.12.03 142 0
990 🔎질문 파이썬 텍스트 파일 읽을 때 질문! [4] ㅇㅇ(220.116) 21.12.03 142 0
989 일반 하나씩 배울수록 공구통이 커지는 느낌이노? [7] 키메라(112.148) 21.12.03 186 0
988 🔎질문 주피터 노트북에서 모듈안에 있는 변수를 불러낼 때는 어떻게 해야 하나요? [2] dd(180.68) 21.12.02 137 0
987 🔎질문 입문자 과제좀 도와줍셔 [12] ㅇㅇ(58.120) 21.12.02 217 0
갤러리 내부 검색
제목+내용게시물 정렬 옵션

오른쪽 컨텐츠 영역

실시간 베스트

1/8

디시미디어

디시이슈

1/2