디시인사이드 갤러리

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

갤러리 본문 영역

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

ㅇㅇ(175.196) 2021.12.08 15:15:16
조회 401 추천 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
본문 보기

하단 갤러리 리스트 영역

왼쪽 컨텐츠 영역

갤러리 리스트 영역

갤러리 리스트
번호 말머리 제목 글쓴이 작성일 조회 추천
- 설문 해외에서 겪는 불합리한 대우에 대응 잘 할 것 같은 스타는? 운영자 25/11/03 - -
- AD 저녁 뭐먹지? 오늘의 메뉴 추천! 운영자 25/10/31 - -
1047 🔎질문 씹늅) 셀레늄 질문 [10] ㅇㅇ(59.2) 21.12.13 160 1
1046 🔎질문 흑백사진을 csv파일로 변환하려는데 도움좀 [2] ㅇㅇ(116.120) 21.12.12 167 0
1045 일반 딱지 온 ㅋㅋ [1] 주넹갤로그로 이동합니다. 21.12.12 117 0
1044 🔎질문 프린트는 되는데 플랏이 안되는 이유가 멀까요? [4] 외않돼(221.150) 21.12.12 133 0
1043 🔎질문 matplotlib 그래프 질문이요! [1] 00(58.121) 21.12.12 146 0
1038 🔎질문 응애 뉴비 질문좀 [6] ㅇㅇ(180.66) 21.12.10 185 0
1037 🔎질문 메서드에서 만든 프로퍼티? 질문점.. [4] ㅇㅇ(117.111) 21.12.10 152 0
1036 🔎질문 다음 구경갈 컨텐츠 추천좀 [4] 키메라(1.212) 21.12.10 117 0
1035 🔎질문 독학중인 뉴비 질문점 ㅠㅠ [3] ㅇㅇ(121.172) 21.12.09 173 0
1034 일반 인간딥러닝 On [8] 사밀(223.38) 21.12.09 165 0
1033 일반 이거 님들한텐 3시간 컷 아님? 10만원 드릴께 [6] 11(106.253) 21.12.09 211 0
1032 일반 라이부러리 만드는쉑 = 초보자마을만렙대머리 맞노? [1] 키메라(1.212) 21.12.09 124 0
1031 일반 KoNLpy 설치 다시 도오오오오오전! [8] 사밀(14.39) 21.12.08 155 0
🔎질문 centos7 pyodbc 설치 에러.. [1] ㅇㅇ(175.196) 21.12.08 401 0
1028 🔎질문 혹시 에러 뜰 때 인풋값 체크 하는 방법 있나요 [3] ㅇㅇ(183.101) 21.12.08 123 0
1027 일반 질문 답변하니깐 글삭을 해버리노 ㅋㅋㅋㅋ [4] 라댜갤로그로 이동합니다. 21.12.07 167 0
1026 🔎질문 컴알못 파이썬 진짜 사소한거 질문 [5] ㅇㅇ(183.101) 21.12.07 196 0
1024 🔎질문 from A import * 랑 import A as B랑 합치기 [13] ㅇㅇ(220.76) 21.12.07 184 0
1023 일반 파이썬 코테 수준별 스터디 [1] ㅇㅇ(203.251) 21.12.07 322 0
1022 🔎질문 koNLpy 써보려는데 뭔가 Java 설치하는데서 막히는데 도움 좀.. [4] 사밀(14.39) 21.12.07 350 0
1019 일반 딱지 주넹갤로그로 이동합니다. 21.12.06 112 0
1018 🔎질문 커서를 이동시키지 않고 클릭한 효과를 내려면 어떻게 어떻게 해야되나요? [5] ㅇㅇ(61.102) 21.12.06 207 0
1017 🔎질문 아톰으로 1초단위로 관측된 데이터 읽으려면 어떻게 해야되나요? [2] ㅇㅇ(1.230) 21.12.06 117 0
1016 🔎질문 파이썬 클래스랑 메서드 배우는데 문제 질문좀 받아주세요 [2] ㅇㅇ(124.57) 21.12.06 225 0
1012 🔎질문 디스코드'를' 크롤링하고 싶은데 질문 [4] ㅇㅇ(112.153) 21.12.06 330 0
1011 일반 나도 랜덤 통계내는 프로그램 만들엇음 [1] ㅇㅇ(210.183) 21.12.06 129 0
1010 🔎질문 간단한거 질문좀요.. [4] ㅇㅇ(121.167) 21.12.06 131 0
1007 🔎질문 csv파일을 이용하여 그래프를 그려보고 싶습니다.(제발 도와주세요 제발요 [1] 제발도와주세요(1.231) 21.12.06 209 0
1006 🔎질문 랜덤 숫자 횟수 그래프를 그리기 질문 [5] ㅇㅇ(183.99) 21.12.05 177 0
1005 일반 Programing newbie's 오늘의 thinking 키메라(112.148) 21.12.05 109 0
1004 일반 기사 검색 프로그램 겨우 다 만들었다 [12] 사밀(14.39) 21.12.05 352 0
1001 🔎질문 스타트업쪽으로 창업할려는데 조언좀 [11] (122.46) 21.12.05 289 0
999 🔎질문 Java 기반의 클래스를 쓰는 라이브러리로 뭘 만들면 [4] 사밀(14.39) 21.12.05 141 0
998 🔎질문 cd 명령어가 안먹어 [2] ㅇㅇ(218.51) 21.12.04 140 0
997 일반 오늘은 지난번에 만들어보겠다는 거 약식으로라도 만들어봐야겠다 [1] 사밀(14.39) 21.12.04 121 1
996 일반 며칠동안 출장갔다오고 바쁘기도 해서 간만에 컴터 켰는데 사밀(14.39) 21.12.04 104 0
995 일반 뉴비특) 피드백이 없음 [2] ㅇㅇ(223.39) 21.12.04 162 3
994 🔎질문 파이썬 기초 좀 물어볼게있어.. [6] 파린이(49.164) 21.12.04 219 0
993 🔎질문 형들 리스트 정렬 간단한 질문 있습니다 [7] ㅇㅇ(125.191) 21.12.04 156 0
992 🔎질문 이거 실행하는 법 좀 [4] ㅇㅇ(106.253) 21.12.04 192 0
991 🔎질문 map 쓸 때 내부 함수의 파라미터? 같은건 따로 설정 못하나요? [4] ㅇㅇ(183.101) 21.12.03 137 0
990 🔎질문 파이썬 텍스트 파일 읽을 때 질문! [4] ㅇㅇ(220.116) 21.12.03 138 0
989 일반 하나씩 배울수록 공구통이 커지는 느낌이노? [7] 키메라(112.148) 21.12.03 182 0
988 🔎질문 주피터 노트북에서 모듈안에 있는 변수를 불러낼 때는 어떻게 해야 하나요? [2] dd(180.68) 21.12.02 135 0
987 🔎질문 입문자 과제좀 도와줍셔 [12] ㅇㅇ(58.120) 21.12.02 215 0
986 🔎질문 넘파이 이거 문법 해석 가능한 사람?? [1] ㅇㅇ(14.33) 21.12.02 125 0
985 🔎질문 구글코랩에서 이미지 출력이 안되는데 뭐가 문제일까요 ㅠㅠ [7] ㅇㅇ(175.195) 21.12.02 516 0
984 일반 과제로 프로그램 추천 좀 해달라는 놈들은 [5] SeRA(223.38) 21.12.02 167 0
982 🔎질문 c언어도 vscode로 쓰나요?? [5] ㅇㅇ(106.102) 21.12.02 210 0
981 일반 유튜브 강의보다 보니 타채널에서 댓글 영업 뛰는 사람도 있네 [1] ㅇㅇ(223.38) 21.12.02 138 0
갤러리 내부 검색
제목+내용게시물 정렬 옵션

오른쪽 컨텐츠 영역

실시간 베스트

1/8

디시미디어

디시이슈

1/2