2017-02-13 2 views
0

postgresql 개발 패키지를 설치했고 C :/pgsql96 (bin 디렉토리에서 pg_config와 같은 패키지가 있고 환경 변수에 대한 경로도 추가했습니다. 내가 Multicorn (PostgreSQL의 파이썬 패키지)를 설치하려면, 나는 C에서 Multicorn의 자식 저장소를 복제 :설치되어있는 동안 pg_config가 발견되지 않음

make: pg_config: Command not found 
make: pythonpython:-config: Command not found 
expr: syntax error 
expr: syntax error 
Python version is python: 
./preflight-check.sh 
which: no pg_config in (/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl) 
No pg_config found in your path. 
Please check if you installed the PostgreSQL development packages. 
make: *** [Makefile:28: preflight-check] Error 1 
:/Multicorn, 그리고 실행할 때 & & make가 명령을 설치하게, 나는 다음과 같은 오류가 발생합니다

내 명령 프롬프트에서 액세스 할 수 있기 때문에 파이썬이 내 시스템에 설치되어 있습니다 (python --version을 실행하고 설치되어있는 것을 볼 수 있습니다).하지만 MinGW bash에서 실행 중입니다. & & make install, python이 설치되어 있지 않습니다. 누구나이 문제를 해결할 수있는 방법을 알고 있습니다. 시스템 경로에 C : \ pgsql96 \ bin을 추가 했더라도 (예 : 시스템 변수 대신 사용자 변수에 추가해야합니까?) 내 경로에 pg_config가 있어야합니다.

which pg_config 

나를 반환 : 또한 모두 환경 변수!)하지만, 명령에 추가 시도

no pg_config in (/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl) 

2 내 명령 프롬프트에서 파이썬 모듈에 액세스 할 수 있지만 내가 그들을 액세스 할 수 없습니다 mingw bash, 나는 mingw bas와 함께 일할 필요가있다. h를 실행하려면 make & & make 명령을 사용하십시오. 명령 프롬프트를 사용해야 할 때와 MinGW를 사용해야하는 경우와이 둘 사이의 동기화가 필요한 경우 설명해주십시오.

업데이트 1 : pg_config가 발견되지 않는 첫 번째 문제에 대해 mingw/bin 디렉토리 경로를 추가했습니다.

make: pythonpython:-config: Command not found 
Python version is python: 
x86_64-w64-mingw32-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -I. -I./ -IC:/pgsql96/include/server -IC:/pgsql96/include/internal -I/c/Builds/postgresql/source/src/include/port/win32 -DEXEC_BACKEND -IC:/pgsql96/include/server/port/win32 -c -o src/errors.o src/errors.c 
In file included from src/errors.c:15:0: 
src/multicorn.h:1:20: fatal error: Python.h: No such file or directory 
#include "Python.h" 
        ^
compilation terminated. 
make: *** [<builtin>: src/errors.o] Error 1 

UPDATE : 2 : 그러나, 나는 python.h에 대한 또 다른 문제가

내가 구성 프로세스에 파이썬 경로를 추가, 그리고 여기 결과입니다 : 다른 오류 :

$ make && make install 
Python version is 2.7 
[ -d sql ] || mkdir sql 
[ -d src ] || mkdir src 
touch directories.stamp 
x86_64-w64-mingw32-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -I/usr/include/python2.7 -I/usr/include/python2.7 -I. -I./ -IC:/pgsql96/include/server -IC:/pgsql96/include/internal -I/c/Builds/postgresql/source/src/include/port/win32 -DEXEC_BACKEND -IC:/pgsql96/include/server/port/win32 -c -o src/errors.o src/errors.c 
make: *** [<builtin>: src/errors.o] Error 1 

모든 생각?

답변

0

그것은 나에게 말한다

PATH="/c/pgsql96/bin:$PATH" make 
+0

을 시도하지 : -bash한다 : ./configure를 : 그런 파일이나 디렉토리. – User193452

+0

죄송합니다. 나는 'make'를 의미했습니다. $ PATH에 문제는 지금 해결 감사 –

+0

나는에/C/msys64/mingw64/bin 디렉토리를 추가했다, 그래서 나는와 Mingw bin 디렉토리에이 명령을 사용 이 문제는 내 mingw bin 디렉토리에 pgsql95의 경로를 설정 한 후 수정되었지만 다음과 같은 또 다른 오류가 있습니다. pythonpython : -config : 명령을 찾을 수 없습니다. 어떤 생각이 있습니까? (질문이 업데이트되었습니다) – User193452

관련 문제