Background Image

FORUM

조회 수 12795 추천 수 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 Views119
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4475
    read more
  3. 윈도우 구동시 데이터베이스 구동 관련 문의 2

    Date2009.02.24 By이석희 Views12799
    Read More
  4. CUBRID PHP Extension 이용시 에러 해결 방법??

    Date2010.03.11 By요한 Views12795
    Read More
  5. CUBRID_Setup.sh: No such file or directory설치에러입니다.

    Date2010.02.04 By럭키늘보 Views12787
    Read More
  6. 깔끔하게 포멧하고 같은부분까지 다시 왔습니다!

    Date2009.06.02 Bygorillia Views12786
    Read More
  7. 큐브리드 개발 환경 구축 문제

    Date2009.05.08 By흐승욱 Views12783
    Read More
  8. 쿼리 오류인데 어쩌해야할지

    Date2010.04.13 By노닝 Views12779
    Read More
  9. [질문]재설치 실패...

    Date2009.02.13 By야매코더 Views12779
    Read More
  10. 큐브리드 함수 문의

    Date2012.08.10 By아름다운음악 Views12779
    Read More
  11. varchar 형식 insert 문의

    Date2012.04.04 By유니콘 Views12778
    Read More
  12. default to_char(sys_datetime, 'YYYYMMDDHH24MISS') -> ERROR

    Date2013.03.19 Bycyber Views12777
    Read More
  13. 큐브리드용량문제

    Date2009.11.17 By우주와나 Views12776
    Read More
  14. OPENROWSET 을 사용한 검색결과 문의

    Date2013.01.17 Byidonot Views12772
    Read More
  15. 질의가 무한 루프로 발생시 대처법 질문

    Date2009.03.18 By이석희 Views12769
    Read More
  16. CUBRID HA 구성방안 문의

    Date2013.06.19 By뒷태지존 Views12767
    Read More
  17. tray icon 실행여부 문의

    Date2013.11.23 By기정아빠 Views12766
    Read More
  18. clob 조회 크기 문의

    Date2013.06.20 By김상윤 Views12746
    Read More
  19. Nginx-PHP-Cubrid 연동시 Cubrid 확장 모듈 로딩 불가 문의 입니다.

    Date2011.03.30 Byreerror Views12745
    Read More
  20. 큐브리드 유닉스 설치

    Date2016.11.22 By맛있는버터링 Views12734
    Read More
  21. php에서 cubrid 모듈이 로드가 안되는듯합니다

    Date2010.04.16 Bysanguine Views12727
    Read More
  22. 테이블의 내용 컬럼을 다른 테이블에 분리시 성능 향상 여부

    Date2010.06.08 By종이 Views12727
    Read More
Board Pagination Prev 1 ... 28 29 30 31 32 33 34 35 36 37 ... 200 Next
/ 200

Contact Cubrid

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