2017-11-20 6 views
0

Windows에서 git bash 설정을하고 시스템에 libpqxx을 설치하려고합니다.libpq에서 PQexec() 함수를 찾지 못했습니다.

g ++ 컴파일러를 사용하고 있습니다. 여기

Did not find the PQexec() function in libpq. This is the litmus test for a 
working libpq installation. 

가있다 : 그것은 치명적인 오류가 표시 될 때까지 내 자식 bash는 터미널에서

, 내가 libpqxx 설치 디렉토리를 입력하고 ./configure을 실행하고 모두가 잘 어울리는, 그것은 PostgreSQL을 설치 디렉토리 등을 찾아 실행의 전체 출력 :

$ ./configure 
checking for g++... g++ 
checking whether the C++ compiler works... yes 
checking for C++ compiler default output file name... a.exe 
checking for suffix of executables... .exe 
checking whether we are cross compiling... no 
checking for suffix of object files... o 
checking whether we are using the GNU C++ compiler... yes 
checking whether g++ accepts -g... yes 
checking whether g++ supports C++11 features by default... yes 
checking for a BSD-compatible install... /usr/bin/install -c 
checking whether build environment is sane... yes 
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p 
checking for gawk... gawk 
checking whether make sets $(MAKE)... no 
checking for style of include used by make... none 
checking whether make supports nested variables... no 
checking dependency style of g++... none 
checking whether we are using the GNU C++ compiler... (cached) yes 
checking whether g++ accepts -g... (cached) yes 
checking build system type... x86_64-pc-mingw32 
checking host system type... x86_64-pc-mingw32 
checking how to print strings... printf 
checking for gcc... gcc 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts -g... yes 
checking for gcc option to accept ISO C89... none needed 
checking whether gcc understands -c and -o together... yes 
checking dependency style of gcc... none 
checking for a sed that does not truncate output... /usr/bin/sed 
checking for grep that handles long lines and -e... /usr/bin/grep 
checking for egrep... /usr/bin/grep -E 
checking for fgrep... /usr/bin/grep -F 
checking for ld used by gcc... c:/mingw/mingw32/bin/ld.exe 
checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes 
checking for BSD- or MS-compatible name lister (nm)... /c/MinGW/bin/nm -B 
checking the name lister (/c/MinGW/bin/nm -B) interface... BSD nm 
checking whether ln -s works... no, using cp -pR 
checking the maximum length of command line arguments... 8192 
checking how to convert x86_64-pc-mingw32 file names to x86_64-pc-mingw32 format... func_convert_file_msys_to_w32 
checking how to convert x86_64-pc-mingw32 file names to toolchain format... func_convert_file_msys_to_w32 
checking for c:/mingw/mingw32/bin/ld.exe option to reload object files... -r 
checking for objdump... objdump 
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL 
checking for dlltool... dlltool 
checking how to associate runtime and link libraries... func_cygming_dll_for_implib 
checking for ar... ar 
checking for archiver @FILE support... @ 
checking for strip... strip 
checking for ranlib... ranlib 
checking command to parse /c/MinGW/bin/nm -B output from gcc object... ok 
checking for sysroot... no 
checking for a working dd... /usr/bin/dd 
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 
checking for mt... no 
checking if : is a manifest tool... no 
checking how to run the C preprocessor... gcc -E 
checking for ANSI C header files... yes 
checking for sys/types.h... yes 
checking for sys/stat.h... yes 
checking for stdlib.h... yes 
checking for string.h... yes 
checking for memory.h... yes 
checking for strings.h... yes 
checking for inttypes.h... yes 
checking for stdint.h... yes 
checking for unistd.h... yes 
checking for dlfcn.h... yes 
checking for objdir... .libs 
checking if gcc supports -fno-rtti -fno-exceptions... no 
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC 
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes 
checking if gcc static flag -static works... yes 
checking if gcc supports -c -o file.o... yes 
checking if gcc supports -c -o file.o... (cached) yes 
checking whether the gcc linker (c:/mingw/mingw32/bin/ld.exe) supports shared libraries... yes 
checking dynamic linker characteristics... Win32 ld.exe 
checking how to hardcode library paths into programs... immediate 
checking whether stripping libraries is possible... yes 
checking if libtool supports shared libraries... yes 
checking whether to build shared libraries... no 
checking whether to build static libraries... yes 
checking how to run the C++ preprocessor... g++ -E 
checking for ld used by g++... c:/mingw/mingw32/bin/ld.exe 
checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes 
checking whether the g++ linker (c:/mingw/mingw32/bin/ld.exe) supports shared libraries... yes 
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC 
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes 
checking if g++ static flag -static works... yes 
checking if g++ supports -c -o file.o... yes 
checking if g++ supports -c -o file.o... (cached) yes 
checking whether the g++ linker (c:/mingw/mingw32/bin/ld.exe) supports shared libraries... yes 
checking dynamic linker characteristics... Win32 ld.exe 
checking how to hardcode library paths into programs... immediate 
checking whether make sets $(MAKE)... (cached) no 
checking for mkdir... /usr/bin/mkdir 
checking for pkg-config... no 
checking for doxygen... no 
checking for dot... no 
checking for xmlto... no 
checking whether to enable maintainer-specific portions of Makefiles... no 
checking maintainer mode... 
checking C++14 deprecation attribute... yes 
checking for C++17 std::optional support... no 
checking for experimental C++17 std::optional support... yes 
checking for poll(2)... no 
checking sys/select.h usability... no 
checking sys/select.h presence... no 
checking for sys/select.h... no 
checking sys/time.h usability... yes 
checking sys/time.h presence... yes 
checking for sys/time.h... yes 
checking for library containing select... no 
checking for main in -lws2_32... yes 
checking g++ visibility attribute... yes 
checking whether the compiler supports function __attribute__((__const__))... yes 
checking g++ pure attribute... yes 
checking for pg_config... /c/PostgreSQL/pg10/bin/pg_config 
configure: using PostgreSQL headers at C:/POSTGR~1/pg10/include 
configure: using PostgreSQL libraries at C:/POSTGR~1/pg10/lib 
checking C:/POSTGR~1/pg10/include/libpq-fe.h usability... yes 
checking C:/POSTGR~1/pg10/include/libpq-fe.h presence... yes 
checking for C:/POSTGR~1/pg10/include/libpq-fe.h... yes 
checking for ability to compile source files using libpq... yes 
checking for PQexec in -lpq... no 
configure: error: 
Did not find the PQexec() function in libpq. This is the litmus test for a 
working libpq installation. 

A source file using the PQexec() function did compile without problems, and the 
libpq library is available for linking, but for some reason a call to PQexec() 
failed to link properly to the libpq library. This may be because the libpq 
library file is damaged, or in some incorrect format, or if your libpq is much 
more recent than libpqxx version 6.0, perhaps libpq has undergone a 
radical ABI change. 

The last parts of config.log may give you a clue as to what really went wrong, 
but be warned that this is no easy reading. Look for the last error message 
occurring in the file. 

나는 신선한가의 PostgreSQL 설치 사용하고, 그래서 최신 버전입니다. 이것이 일어날 수있는 이유와이 문제를 해결할 수있는 방법에 대한 의견이 있으십니까?

답변

0

당신은 config.log보고 싶을 수도 있지만, 명백한 설명은 32 비트 libpq.dll 또는 그 반대의 경우도 마찬가지로 64 비트 libpqxx 구축을 위해 노력하는 것을 하나 libpq.dllPATH에없는 것을이거나 것이다.