mysql++ 설치시 error message 출력 문제
글쓴이: arizona0 / 작성시간: 목, 2013/12/05 - 10:56오후
5.5.34 MySQL Community Server (GPL)을 설치하고 c++과 연동하기 위하여 mysql++를 설치하고 있습니다.
1. 다음을 통해 mysql++-3.2.0.tar.gz을 다운 받았습니다.
wget http://tangentsoft.net/mysql++/releases/mysql++-3.2.0.tar.gz
2. 다운 받은 파일의 압축을 해제했습니다.
tar -zxvf mysql++-3.2.0.tar.gz
3. mysql++를 구성하기 위하여 다음을 실행했습니다.
./configure
3을 실행한 후 아래와 같은 message들이 화면에 출력됐고, 마지막에 "Didn't find mysqlclient library "라는 error message가 출력되었습니다.
무엇이 잘 못되었고 어떻게 해결하면 될까요?
이후에 다음 4와 5 항목을 실행해주면 되는 것으로 알고 있는데 맞는지요?
4. make
5. make install
[root@localhost usr]# cd mysql++-3.2.0/ [root@localhost mysql++-3.2.0]# ./configure checking build system type... i686-redhat-linux-gnu checking host system type... i686-redhat-linux-gnu checking target system type... i686-redhat-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by gcc... /bin/ld checking if the linker (/bin/ld) is GNU ld... yes checking for /bin/ld option to reload object files... -r checking for BSD-compatible nm... /bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all 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 dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse /bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so 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... yes checking whether to build static libraries... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking for ANSI C header files... (cached) yes checking for getopt... yes checking whether -lm is needed to use C math functions... no checking whether -lsocket is needed... no checking whether -lnsl is needed... no checking for MySQL library directory... configure: error: Didn't find mysqlclient library in '/usr/lib64 /usr/lib /usr/lib64/mysql /usr/lib/mysql /usr/local/lib64 /usr/local/lib /usr/local/lib/mysql /usr/local/mysql/lib /usr/local/mysql/lib/mysql /usr/mysql/lib/mysql /opt/mysql/lib /opt/mysql/lib/mysql /sw/lib /sw/lib/mysql' <code>
Forums:
$ sudo yum install
문제가 여전히 발생하네요 ^^;
동일한 문제가 생기네요 ㅠ
config.log파일을 올려주세여
이 파일에 자세한 에러메세지가 있을겁니다.
--
검색해보니끼
mysql-shared 설치해야 한다고도 하네여
즐린
해결됐네요 ㅎ
mysql-client와 mysql-shared 등 mysql-server 말고도 깔아줘야 되는 것들이 있네요.
이걸 누락 시켜서 위와 같은 메세지가 떴네요.
댓글 달기