database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
ㆍCUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
CUBRID Q&A 916 게시물 읽기
No. 916
Q.제가 셋팅 메뉴얼인데 한번 봐주세요
작성자
이상인
작성일
2008-02-11 17:28:13
조회수
3,289

리눅스 인데여 이렇게 메뉴얼을 만들어 봤습니다  잘 되는건지 봐주세여

 

[root@localhost free]# sh CUBRID-7.3.0.1085-x86-Linux-glibc234.sh

Install CUBRID to /free/CUBRID...

In case a different version of the CUBRID product is being used in other machines, please note that the CUBRID 7.3 servers are only compatible with the CUBRID 7.3 clients and vice versa.

Do you want to continue? (y/n) [Default: y] : y   <----y 엔터

The CUBRID java stored procedure can not be used in this server, because java environment was not installed or could not be used. Do you want to continue? (y/n) [Default: n] :Y

[root@localhost free]#

[root@localhost free]# sh CUBRID-7.3.0.1085-x86-Linux-glibc234.sh

Install CUBRID to /free/CUBRID...

In case a different version of the CUBRID product is being used in other machines, please note that the CUBRID 7.3 servers are only compatible with the CUBRID 7.3 clients and vice versa.

Do you want to continue? (y/n) [Default: y] : y <----y 엔터

The CUBRID java stored procedure can not be used in this server, because java environment was not installed or could not be used. Do you want to continue? (y/n) [Default: n] :y

 

CUBRID has been successfully installed.

 

demodb has been successfully created.

subway database has been successfully created.

 

If you want to use CUBRID, run the following commands

  % . /root/.cubrid.sh

  % cubrid_service start

 

[root@localhost free]# reboot <- 재부팅을 해야 아래와 같은 메세지가 나옴

root@localhost ~]# cubrid_rel

CUBRID Standalone Release 7.3.0.1085  Oct 23 2007 at 19:55:46

[root@localhost ~]#

 

이렇게 설치는 끝입낟

 

[root@localhost ~]# mkdir -p /usr/local/php/modules

[root@localhost modules]# tar zxvf cubrid_php_src_7.3.0.1085.tar.gz

cubrid_phpext/

cubrid_phpext/src/

cubrid_phpext/src/Makefile.in

cubrid_phpext/src/config.m4

cubrid_phpext/src/cubrid_err.msg

cubrid_phpext/src/cubrid_php4.h

cubrid_phpext/src/error.c

cubrid_phpext/src/error.h

cubrid_phpext/src/php_cubrid.c

cubrid_phpext/src/php_cubrid.h

cubrid_phpext/src/php_cubrid_version.h

cubrid_phpext/INSTALL

[root@localhost modules]#cd cubrid_phpext

[root@localhost modules]#mkdir cci

[root@localhost modules]#cp $CUBRID_BROKER/cci/libcascci.a cci

[root@localhost modules]#cp $CUBRID_BROKER/cci/cas_cci.h cci

[root@localhost modules]#cd src

[root@localhost src]# vi /usr/local/lib/php//build/phpize.m4

                                                                        

AC_DEFUN(PHP_WITH_PHP_CONFIG,[ < ---이걸                                

AC_DEFUN([PHP_WITH_PHP_CONFIG],[,<---이렇게 바꿔준다                                              

                                                                                

AC_DEFUN(PHP_EXT_BUILDDIR,[.])dnl< ---이걸                                        

AC_DEFUN(PHP_EXT_DIR,[\"\"])dnl< ---이걸                                

AC_DEFUN(PHP_EXT_SRCDIR,[$abs_srcdir])dnl< ---이걸                    

AC_DEFUN(PHP_ALWAYS_SHARED,[< ---이걸                                

                                                                    

AC_DEFUN([PHP_EXT_BUILDDIR],[.])dnl<---이렇게 바꿔준다                

AC_DEFUN([PHP_EXT_DIR],[\"\"])dnl<---이렇게 바꿔준다                    

AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir])dnl<---이렇게 바꿔준다          

AC_DEFUN([PHP_ALWAYS_SHARED],[<---이렇게 바꿔준다                    

                                                                           

[root@localhost src]# vi /usr/local/lib/php//build/acinclude.m4      

AC_DEFUN(PHP_PROG_RE2C,[< ---이걸                                    

AC_DEFUN([PHP_PROG_RE2C],[<---이렇게 바꿔준다

위에 처럼 안 바꿔 주면 phpize할때 에러가남

 

[root@localhost src]# phpize

Configuring for:

  PHP Api Version:   20020918

  Zend Module Api No:   20020429

  Zend Extension Api No:   20021010

[root@localhost src]#

[root@localhost src]# ./configure --enable-cubrid --with-php-config=/usr/local/bin/php-config

[root@localhost src]# make

[root@localhost src]# cp modules/cubrid.so ../..

[root@localhost src]# cp cubrid_err.msg ../..

 

[root@localhost src]# vi /usr/local/apache/conf/php.ini 파일을 열어 아래와 같이 넣준다

extension_dir = \"/usr/local/php/modules\"

 

; Local Variables:

; tab-width: 4

; End:

extension=cubrid.so

cubrid.err_path=\"/usr/lib/php/modules\"

이 글에 대한 댓글이 총 1건 있습니다.

안녕하세요.

직접 작성하시느라 고생하셨네요...

중간 중간에 직접 comment 를 넣어보도록 하겠읍니다.

 

>리눅스 인데여 이렇게 메뉴얼을 만들어 봤습니다  잘 되는건지 봐주세여

>

>[root@localhost free]# sh CUBRID-7.3.0.1085-x86-Linux-glibc234.sh

>Install CUBRID to /free/CUBRID...

>In case a different version of the CUBRID product is being used in other machines, please note that the CUBRID 7.3 servers are only compatible with the CUBRID 7.3 clients and vice versa.

>Do you want to continue? (y/n) [Default: y] : y   <----y 엔터

>The CUBRID java stored procedure can not be used in this server, because java environment was not installed or could not be used. Do you want to continue? (y/n) [Default: n] :Y

>[root@localhost free]#

>[root@localhost free]# sh CUBRID-7.3.0.1085-x86-Linux-glibc234.sh

>Install CUBRID to /free/CUBRID...

>In case a different version of the CUBRID product is being used in other machines, please note that the CUBRID 7.3 servers are only compatible with the CUBRID 7.3 clients and vice versa.

>Do you want to continue? (y/n) [Default: y] : y <----y 엔터

>The CUBRID java stored procedure can not be used in this server, because java environment was not installed or could not be used. Do you want to continue? (y/n) [Default: n] :y

>

>CUBRID has been successfully installed.

>

>demodb has been successfully created.

>subway database has been successfully created.

>

>If you want to use CUBRID, run the following commands

>  % . /root/.cubrid.sh

>  % cubrid_service start

>

>[root@localhost free]# reboot <- 재부팅을 해야 아래와 같은 메세지가 나옴

 

재부팅하실필요없읍니다. 재로그인을 하시거나 위의 마지막 윗줄을 수행하시면 됩니다. 즉 . /root/.cubrid.sh 하시면 됩니다.

 

>root@localhost ~]# cubrid_rel

>CUBRID Standalone Release 7.3.0.1085  Oct 23 2007 at 19:55:46

>[root@localhost ~]#

>

>이렇게 설치는 끝입낟

>

>[root@localhost ~]# mkdir -p /usr/local/php/modules

 

내용을 쭉 보면 여기서 cd /usr/local/php/modules 를 하셔야 할 것 같네요

 

>[root@localhost modules]# tar zxvf cubrid_php_src_7.3.0.1085.tar.gz

>cubrid_phpext/

>cubrid_phpext/src/

>cubrid_phpext/src/Makefile.in

>cubrid_phpext/src/config.m4

>cubrid_phpext/src/cubrid_err.msg

>cubrid_phpext/src/cubrid_php4.h

>cubrid_phpext/src/error.c

>cubrid_phpext/src/error.h

>cubrid_phpext/src/php_cubrid.c

>cubrid_phpext/src/php_cubrid.h

>cubrid_phpext/src/php_cubrid_version.h

>cubrid_phpext/INSTALL

>[root@localhost modules]#cd cubrid_phpext

>[root@localhost modules]#mkdir cci

>[root@localhost modules]#cp $CUBRID_BROKER/cci/libcascci.a cci

>[root@localhost modules]#cp $CUBRID_BROKER/cci/cas_cci.h cci

>[root@localhost modules]#cd src

>[root@localhost src]# vi /usr/local/lib/php//build/phpize.m4

>                                                                        

>AC_DEFUN(PHP_WITH_PHP_CONFIG,[ < ---이걸                                

>AC_DEFUN([PHP_WITH_PHP_CONFIG],[,<---이렇게 바꿔준다                                              

>                                                                                

>AC_DEFUN(PHP_EXT_BUILDDIR,[.])dnl< ---이걸                                        

>AC_DEFUN(PHP_EXT_DIR,[\"\"])dnl< ---이걸                                

>AC_DEFUN(PHP_EXT_SRCDIR,[$abs_srcdir])dnl< ---이걸                    

>AC_DEFUN(PHP_ALWAYS_SHARED,[< ---이걸                                

>                                                                    

>AC_DEFUN([PHP_EXT_BUILDDIR],[.])dnl<---이렇게 바꿔준다                

>AC_DEFUN([PHP_EXT_DIR],[\"\"])dnl<---이렇게 바꿔준다                    

>AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir])dnl<---이렇게 바꿔준다          

>AC_DEFUN([PHP_ALWAYS_SHARED],[<---이렇게 바꿔준다                    

>                                                                           

>[root@localhost src]# vi /usr/local/lib/php//build/acinclude.m4      

>AC_DEFUN(PHP_PROG_RE2C,[< ---이걸                                    

>AC_DEFUN([PHP_PROG_RE2C],[<---이렇게 바꿔준다

>위에 처럼 안 바꿔 주면 phpize할때 에러가남

>

>[root@localhost src]# phpize

>Configuring for:

>  PHP Api Version:   20020918

>  Zend Module Api No:   20020429

>  Zend Extension Api No:   20021010

 

 

위와같이 하지 않으셔도 새로이 설치한 php 가 위치한 곳의 phpize 를 수행시켜주시면 됩니다. 예를 들어 /usr/local/php 아래에 설치하였다면 /usr/local/php/bin/phpize 와 같이 전체 패스를 주고 수행시키면 됩니다.

 

>[root@localhost src]#

>[root@localhost src]# ./configure --enable-cubrid --with-php-config=/usr/local/bin/php-config

>[root@localhost src]# make

>[root@localhost src]# cp modules/cubrid.so ../..

>[root@localhost src]# cp cubrid_err.msg ../..

>

 

copy 하는 위치가 애매해 보이니 풀패스를 적어주시는 것이 매뉴얼을 위해서는 좋을 것입니다.

 

>[root@localhost src]# vi /usr/local/apache/conf/php.ini 파일을 열어 아래와 같이 넣준다

>extension_dir = \"/usr/local/php/modules\"

>

>; Local Variables:

>; tab-width: 4

>; End:

>extension=cubrid.so

>cubrid.err_path=\"/usr/lib/php/modules\"

남재우님이 2008-02-11 17:43:12에 작성한 댓글입니다. Edit
[Top]
No.
제목
작성자
작성일
조회
919Q.백업 할뗀 [2]
이상인
2008-02-11
3109
918Q.이게 무슨 에러인가요 [1]
이상인
2008-02-11
3328
917Q.그리고 이메지좀 봐죽세요 [1]
이상인
2008-02-11
2962
916Q.제가 셋팅 메뉴얼인데 한번 봐주세요 [1]
이상인
2008-02-11
3289
915Q.솔라리스용 7.3 은 언제쯤 나오나요? [1]
엄은석
2008-02-11
3181
914Q.리눅스에서 한글은 안되는건가요.. [1]
묵검추
2008-02-11
3221
913Q.데이터베이스 에러 관련입니다. ^^ [1]
김지완
2008-02-07
3834
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2019 DSN, All rights reserved.
작업시간: 0.284초, 이곳 서비스는
	PostgreSQL v11.5로 자료를 관리합니다