리눅스에서 CUBRID-python설치시 문제 질문드려요

by 배수민 posted May 12, 2020

* 질문 등록 시 다음의 내용을 꼭 기입하여 주세요.
OS
ubuntu18.04
CUBRID Ver.
cubrid 10.2
CUBRID TOOL Ver.
manager 10.1.0.0007 64bit
응용 환경(API)
python 3.6

* CUBRID 응용 오류, SQL 오류 또는 SQL 튜닝 관련된 문의는 반드시 다음의 내용을 추가해 주세요. 비밀글이나 비밀 댓글도 가능합니다.
* 저희가 상황을 이해하고, 재현이 가능해야 알 수 있는 문제들이 많습니다. 가능한 정보/정황들을 부탁합니다.
에러 내용 및 재현 방법 재현 가능한 Source와 SQL
관련 테이블(인덱스, 키정보 포함) 정보 CUBRID 홈 디렉토리 아래 log 디렉토리 압축


-------------- 아래에 질문 사항을 기입해 주세요. ------------------------------------------------------------------------
리눅스에서 다른 서버에 설치된 CUBRID와 연동하려고 cubrid-python 드라이버를 설치해서 연동을 했습니다.


pip install CUBRID-Python 또는 easy_install CUBRID-Python

으로 설치를 했었는데 계속 (-20002, 'ERROR: CCI, -20002, Invalid connection handle') 에러가 나타나 이것저것 확인해보니

pip나 easy_install로 설치하면 cubrid가 9.3.0.1버젼으로 설치가 되더군요.


제가 필요한 버젼은 10.2버젼이기 때문에 cubrid-python-10.2-latest.tar.gz 파일을 다운받아서 압축해제한 뒤 

python setup.py build 를 실행해 소스코드설치방법 대로 했지만 

아래와 같이 에러가 뜨면서 종료가 되는데
10.2 드라이버 설치하는 다른 방법 알 수 있을까요?

에러 전체----------------------------------------------------------------
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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 whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -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 (/usr/bin/ld -m elf_x86_64) 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 ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -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 (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for ranlib... (cached) ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking for egrep... (cached) /bin/grep -E
checking for gawk... (cached) mawk
checking for diff... diff
checking for main in -lm... yes
checking for main in -ldl... yes
checking for main in -lpthread... yes
checking for main in -lcurses... no
checking for main in -lstdc++... yes
checking for ANSI C header files... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether stat file-mode macros are broken... no
checking whether time.h and sys/time.h may both be included... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for limits.h... (cached) yes
checking for limits.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking rpc/des_crypt.h usability... yes
checking rpc/des_crypt.h presence... yes
checking for rpc/des_crypt.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking vsnprintf usability... no
checking vsnprintf presence... no
checking for vsnprintf... no
checking for off_t... yes
checking for size_t... yes
checking for pid_t... yes
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of void *... 8
checking for long long... yes
checking for byte_t... no
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for intmax_t... yes
checking for intptr_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uintmax_t... yes
checking for uintptr_t... yes
checking for off64_t... no
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether byte ordering is bigendian... no
checking for --hash-style=both linker support... yes
checking for vprintf... yes
checking for _doprnt... no
checking for getrlimit... yes
checking for sysconf... yes
checking for open_memstream... yes
checking for vasprintf... yes
checking for asprintf... yes
checking for strdup... yes
checking for strlcpy... no
checking for strlcat... no
checking for getopt... yes
checking for getopt_long... yes
checking for dirname... yes
checking for basename... yes
checking for ctime_r... yes
checking for localtime_r... yes
checking for drand48_r... yes
checking for glibc gethostbyname_r... yes
checking for Solaris/Irix gethostbyname_r... no
checking for struct hostent_data gethostbyname_r... no
checking whether gcc provides atomic builtins... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether build cci library only... yes
checking for java home... 
checking for bison... no
checking for libedit library... no
checking for lzo2 library... no
checking for libgcrypt library... no
checking for main in -lgcrypt... no
checking for libgpg-error library... no
checking for main in -lgpg-error... no
checking for aio library... no
checking for cubrid manager server... no
checking for expat library... no
checking for jansson library... no
checking whether to use CUBRID environment variable... yes
checking for bindir... ${exec_prefix}/bin
checking for libdir... ${exec_prefix}/lib
checking for localstatedir... ${prefix}/var
checking for confdir... $(prefix)/conf
checking for jspdir... $(prefix)/java
checking for jdbcdir... $(prefix)/jdbc
checking for demodir... $(prefix)/demo
checking for msgdir... $(prefix)/msg
checking for shlocdir... $(prefix)/locales
checking for compatdir... $(prefix)/compat
checking for logdir... $(prefix)/log
checking for tmpdir... $(prefix)/tmp
checking for tzlibdir... $(prefix)/timezones
configure: creating ./config.status
config.status: creating Makefile
config.status: creating external/Makefile
config.status: creating include/Makefile
config.status: creating cci/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in external/libregex38a (/root/Downloads/RB-10.2.0/cci-src/external/libregex38a)
configure: running /bin/bash ./configure.gnu --disable-option-checking '--prefix=/root/cubrid'  '--enable-64bit' --cache-file=/dev/null --srcdir=.
configured already. skip /root/Downloads/RB-10.2.0/cci-src/external/libregex38a
make  all-recursive
make[1]: Entering directory '/root/Downloads/RB-10.2.0/cci-src'
Making all in external
make[2]: Entering directory '/root/Downloads/RB-10.2.0/cci-src/external'
Making all in libregex38a
make[3]: Entering directory '/root/Downloads/RB-10.2.0/cci-src/external/libregex38a'
make  all-recursive
make[4]: Entering directory '/root/Downloads/RB-10.2.0/cci-src/external/libregex38a'
Making all in include
make[5]: Entering directory '/root/Downloads/RB-10.2.0/cci-src/external/libregex38a/include'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/root/Downloads/RB-10.2.0/cci-src/external/libregex38a/include'
make[5]: Entering directory '/root/Downloads/RB-10.2.0/cci-src/external/libregex38a'
make[5]: Leaving directory '/root/Downloads/RB-10.2.0/cci-src/external/libregex38a'
make[4]: Leaving directory '/root/Downloads/RB-10.2.0/cci-src/external/libregex38a'
make[3]: Leaving directory '/root/Downloads/RB-10.2.0/cci-src/external/libregex38a'
make[3]: Entering directory '/root/Downloads/RB-10.2.0/cci-src/external'
Skip install in libregex38a
make[3]: Leaving directory '/root/Downloads/RB-10.2.0/cci-src/external'
make[2]: Leaving directory '/root/Downloads/RB-10.2.0/cci-src/external'
Making all in cci
make[2]: Entering directory '/root/Downloads/RB-10.2.0/cci-src/cci'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../src/api -I../src/base -I../src/broker -I../src/cci -I../src/compat    -I../external/include/libregex38a     -DGCC -DLINUX -D_GNU_SOURCE -DI386 -DX86 -DMAJOR_VERSION=10 -DMINOR_VERSION=1 -DPATCH_VERSION=0 -DRELEASE_STRING=10.1.0 -DMAJOR_RELEASE_STRING=10.1 -DBUILD_NUMBER=10.1.0.7663 -DBUILD_OS='linux_gnu'   -fPIC -Wall -W -Wwrite-strings -Wno-cast-qual -Wmissing-prototypes -Wredundant-decls -Wlong-long -Wextra -Wno-unused -ggdb -O2 -DNDEBUG -finline-functions -fno-omit-frame-pointer -MT libcascci_la-porting.lo -MD -MP -MF .deps/libcascci_la-porting.Tpo -c -o libcascci_la-porting.lo `test -f '../src/base/porting.c' || echo './'`../src/base/porting.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../src/api -I../src/base -I../src/broker -I../src/cci -I../src/compat -I../external/include/libregex38a -DGCC -DLINUX -D_GNU_SOURCE -DI386 -DX86 -DMAJOR_VERSION=10 -DMINOR_VERSION=1 -DPATCH_VERSION=0 -DRELEASE_STRING=10.1.0 -DMAJOR_RELEASE_STRING=10.1 -DBUILD_NUMBER=10.1.0.7663 -DBUILD_OS=linux_gnu -fPIC -Wall -W -Wwrite-strings -Wno-cast-qual -Wmissing-prototypes -Wredundant-decls -Wlong-long -Wextra -Wno-unused -ggdb -O2 -DNDEBUG -finline-functions -fno-omit-frame-pointer -MT libcascci_la-porting.lo -MD -MP -MF .deps/libcascci_la-porting.Tpo -c ../src/base/porting.c  -fPIC -DPIC -o .libs/libcascci_la-porting.o
In file included from ../include/system.h:81:0,
                 from ../config.h:318,
                 from ../src/base/porting.c:26:
../src/base/getopt.h:64:7: warning: redundant redeclaration of 'getopt' [-Wredundant-decls]
   int getopt (int, char *const *, const char *);
       ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/getopt_posix.h:27:0,
                 from /usr/include/unistd.h:872,
                 from ../include/system.h:64,
                 from ../config.h:318,
                 from ../src/base/porting.c:26:
/usr/include/x86_64-linux-gnu/bits/getopt_core.h:91:12: note: previous declaration of 'getopt' was here
 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
            ^~~~~~
In file included from ../include/system.h:81:0,
                 from ../config.h:318,
                 from ../src/base/porting.c:26:
../src/base/getopt.h:74:16: warning: redundant redeclaration of 'optarg' [-Wredundant-decls]
   extern char *optarg;
                ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/getopt_posix.h:27:0,
                 from /usr/include/unistd.h:872,
                 from ../include/system.h:64,
                 from ../config.h:318,
                 from ../src/base/porting.c:26:
/usr/include/x86_64-linux-gnu/bits/getopt_core.h:36:14: note: previous declaration of 'optarg' was here
 extern char *optarg;
              ^~~~~~
In file included from ../include/system.h:81:0,
                 from ../config.h:318,
                 from ../src/base/porting.c:26:
../src/base/getopt.h:75:14: warning: redundant redeclaration of 'opterr' [-Wredundant-decls]
   extern int opterr;
              ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/getopt_posix.h:27:0,
                 from /usr/include/unistd.h:872,
                 from ../include/system.h:64,
                 from ../config.h:318,
                 from ../src/base/porting.c:26:
/usr/include/x86_64-linux-gnu/bits/getopt_core.h:55:12: note: previous declaration of 'opterr' was here
 extern int opterr;
            ^~~~~~
In file included from ../include/system.h:81:0,
                 from ../config.h:318,
                 from ../src/base/porting.c:26:
../src/base/getopt.h:76:14: warning: redundant redeclaration of 'optind' [-Wredundant-decls]
   extern int optind;
              ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/getopt_posix.h:27:0,
                 from /usr/include/unistd.h:872,
                 from ../include/system.h:64,
                 from ../config.h:318,
                 from ../src/base/porting.c:26:
/usr/include/x86_64-linux-gnu/bits/getopt_core.h:50:12: note: previous declaration of 'optind' was here
 extern int optind;
            ^~~~~~
In file included from ../include/system.h:81:0,
                 from ../config.h:318,
                 from ../src/base/porting.c:26:
../src/base/getopt.h:77:14: warning: redundant redeclaration of 'optopt' [-Wredundant-decls]
   extern int optopt;
              ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/getopt_posix.h:27:0,
                 from /usr/include/unistd.h:872,
                 from ../include/system.h:64,
                 from ../config.h:318,
                 from ../src/base/porting.c:26:
/usr/include/x86_64-linux-gnu/bits/getopt_core.h:59:12: note: previous declaration of 'optopt' was here
 extern int optopt;
            ^~~~~~
../src/base/porting.c:48:10: fatal error: curses.h: No such file or directory
 #include <curses.h>
          ^~~~~~~~~~
compilation terminated.
Makefile:483: recipe for target 'libcascci_la-porting.lo' failed
make[2]: *** [libcascci_la-porting.lo] Error 1
make[2]: Leaving directory '/root/Downloads/RB-10.2.0/cci-src/cci'
Makefile:454: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/Downloads/RB-10.2.0/cci-src'
Makefile:343: recipe for target 'all' failed
make: *** [all] Error 2
script_dir: /root/Downloads/RB-10.2.0
CCI static lib not found. Exit.


Articles

37 38 39 40 41 42 43 44 45 46