Background Image

FORUM

조회 수 15882 추천 수 0 댓글 3
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

안녕하십니까?
cubrid 2008 R2.0, php-5.1.6, apache 2.2.14 환경에서 개발을 할려고 하는 개발자입니다

cubrid-php_src.tar 파일을 다운로드 받아서 INSTALL문서에 있는 내용을 실행했지만
"PHP Fatal error:  Call to undefined function unisql_connect()" 에러가 나오면서 디비 연결이 되지 않아
질문을 올립니다.

-- 작업과정을 정리 하였습니다. 참고하시고 답변 부탁드립니다. 수고하십시오. --

1. cubrid-php_src.tar 다운로드

2. 압축해제

3. cci 디렉토리를 만들고 그 안에 CUBRID CCI library를 복사합니다.
cubrid_phpext> mkdir cci
cubrid_phpext> cp 큐브리드서버경로/lib/libcascci.a cci
cubrid_phpext> cp 큐브리드서버경로/include/cas_cci.h cci

4. src/config.m4 파일에서 경로를 수정합니다
"$CUBRID"으로 "/usr/local/src/cubrid-php/cci"으로 수정

5. PHP 소스를 다운로드 받아 cubrid_phpext 디렉토리에서 압축을 풉니다.
cubrid_phpext> tar -xzvf php-5.2.6.tar.gz

6. php-5.2.6/ext 디렉토리로 이동하여 cubrid 디렉토리를 생성하고 이동합니다.
cubrid_phpext> cd php-5.2.6/ext
ext> mkdir cubrid
ext> cd cubrid

7. cubrid 디렉토리에 src 디렉토리에 있는 파일들의 symbolic link를 생성합니다.

cubrid> ln -s ../../../src/* .

8. PHP 소스의 root 디렉토리로 이동하여 configure 파일을 생성합니다.

cubrid> cd ../..
php-5.2.6> ./buildconf --force

9. configure를 이용하여 Makefile을 생성합니다.
./configure
--prefix=/usr/local/php
--with-cubrid=shared
--enable-maintainer-zts
--with-exec-dir=/usr/bin
--with-apxs2=/usr/local/apache2/bin/apxs
--with-apache-install=/usr/local/apache2
--with-config-file-path=/etc
--with-png-dir=/usr/lib
--with-jpeg-dir=/usr/lib
--enable-safe-mode
--enable-track-vars
--enable-sockets
--with-mod_charset
--with-charset=euc_kr
--with-xml
--with-language=korean
--enable-mailparse
--enable-calender
--enable-sysvsem=yes
--enable-sysvshm=yes
--enable-ftp
--enable-magic-quotes
--enable-gd-native-ttf
--enable-url-includes
--enable-trans-id
--enable-inline-optimization
--enable-bcmath
--with-png
--with-jpeg
--with-zlib
--with-gd
--with-ttf
--with-gettext
--enable-sigchild
--enable-module=so

10. cubrid_err_msg파일을 /var/log폴더에 복사

11. php.ini 설정
extension_dir="/usr/local/php/lib/php/extension/no-debug-zts-20050922"
extension=cubrid.so
cubrid.err_path=/var/log


  1. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

    Date2024.04.23 Byadmin Views144122
    read more
  2. 데이터베이스 백업 문의

    Date2010.03.31 By닉네임2 Views12920
    Read More
  3. 저장프로시저(function) 오류 문제입니다.

    Date2010.03.29 Byyoon Views13544
    Read More
  4. jdbc 관련 질문입니다. 톰켓 종료시 문제입니다.

    Date2010.03.25 By노스 Views17401
    Read More
  5. 쿼리 오류 질문 입니다.

    Date2010.03.24 By초보 Views17365
    Read More
  6. 디비 사용자 추가시 오류 문의드립니다.

    Date2010.03.24 By큐브초보 Views13099
    Read More
  7. DB 생성 오류 질문입니다.

    Date2010.03.24 By노스 Views15267
    Read More
  8. 날짜함수 문의

    Date2010.03.24 By초보 Views15613
    Read More
  9. 엔터 개행문자 역슬래쉬 문제

    Date2010.03.24 By초보 Views29687
    Read More
  10. grails에서 사용이 가능한 방법이 있나요?

    Date2010.03.23 Bynsky13 Views16456
    Read More
  11. 마이그레이션 툴문의

    Date2010.03.23 Bywebdoors Views13257
    Read More
  12. cast 연산쿼리 성능 질문드립니다~

    Date2010.03.22 By파란시인 Views15603
    Read More
  13. JVM terminated. Exit code=13 이런 코드가 나와서 cubridmanager가 실행 안됩니다.

    Date2010.03.19 By검신81 Views27187
    Read More
  14. cubridmanager 의 호스트 목록이 가끔 사라집니다.

    Date2010.03.19 By하야로비 Views13189
    Read More
  15. mysql 쿼리 변환 질문 입니다.

    Date2010.03.16 By초보 Views14929
    Read More
  16. 오라클과 큐브리드중 어느걸 도입해야하는지 고민중입니다.

    Date2010.03.16 By신의손 Views13301
    Read More
  17. 큐브리드 R2.1 PHP확장모듈 관련

    Date2010.03.15 By차오이 Views15722
    Read More
  18. 저장 프로시저 작성법

    Date2010.03.14 Bywebdoors Views19198
    Read More
  19. mysql에서는 빠른데 큐브리드에서 쿼리를 포문으로 돌려 여러번 실행시 너무 오래 걸립니다.

    Date2010.03.13 By초보 Views17162
    Read More
  20. 큐브리드 모델링 툴

    Date2010.03.13 Bywebdoors Views15159
    Read More
  21. CUBRID PHP Extension 이용시 에러 해결 방법??

    Date2010.03.11 By요한 Views15882
    Read More
Board Pagination Prev 1 ... 179 180 181 182 183 184 185 186 187 188 ... 213 Next
/ 213

Contact Cubrid

영업문의 070-4077-2112 / 기술문의 070-4077-2148 / 대표전화 070-4077-2110 / Email. contact_at_cubrid.com
Contact Sales