반응형

오래전에 kldp에서 봤는데..

http://kldp.org/HOWTO/html/Program-Library-HOWTO/
반응형

'Tip & Tech > Linux | Unix' 카테고리의 다른 글

Linux Shell MOTD(로그인 후 배너)  (0) 2019.07.15
Jenkins 다른 계정으로 구동  (0) 2019.07.15
PHP 확장모듈 만들기  (0) 2010.10.21
shell scripting - date 사용하기  (0) 2010.10.21
AVR-GCC 설치법...  (0) 2010.10.21
반응형

[PHP] PHP Full Library 컴파일
.....................................................................
http://prdownloads.sourceforge.net/freetype/freetype-2.2.1.tar.gz?download
freetype : remove
# rpm -qa |grep freetype
freetype-2.1.3-6
# rpm -e --nodeps freetype-2.1.3-6

freetype : install
# cd freetype-2.1.10
# ./configure
# make
# make install
# cd /usr/local/include/ 해서 freetype2가 설치되어 있는지 확인합니다.

.....................................................................
http://prdownloads.sourceforge.net/libungif
http://sourceforge.net/project/showfiles.php?group_id=102202
libgif : remove

libgif : install
# cd giflib-4.1.0
# ./configure
# make
# make install
# ls -al /usr/local/lib/libgif.a : 날짜확인

libungif : remove

libungif : install
# cd libungif-4.1.0
# ./configure
# make
# make install

.....................................................................
http://prdownloads.sourceforge.net/libpng/
libpng : remove
# rpm -qa | grep libpng
libpng-1.2.2-16
# rpm -e --nodeps libpng-1.2.2-16

libpng : install
# ./configure
# make
# make install

libpng : install
# cd libpng-1.2.8
# cd scripts
# cp makefile.linux ../makefile
# cd ..
# make test
=> 컴파일 에러 발생하면..........................
# cd /usr/local/lib
# cp libz.so* /usr/lib
# cd /usr/lib
[lib]# rm -rf libz.so
[lib]# rm -rf libz.so.1
[lib]# ln -s libz.so.1.2.8 libz.so
[lib]# ln -s libz.so.1.2.8 libz.so.1
-------------------------------------------------
# make install
# ls -al /usr/local/lib/libpng*

libpng 1.2.9 ...............................
./configure
make
make install

..........................................................................
X 6b-33 이 설치되어있다면 제거하지 말고 devel RPM 만 추가 설치 요망.......
http://freshmeat.net/projects/libjpeg/
libjpeg : remove
# rpm -qa libjpeg
libjpeg-6b-26
# rpm -e --nodeps libjpeg-6b-26

another method From: http://site.n.ml.org/info/libjpeg/
I downloaded libjpeg-6b.tar.gz and put it in ~/tmp. There,
$ tar xzvf libjpeg-6b.tar.gz
$ cd jpeg-6b
$ ./configure --enable-shared
$ make test
$ make
. The directory /usr/local/man/man1 didn't exist. I created it, with:
# mkdir /usr/local/man
# mkdir /usr/local/man/man1
. Then,
# make install

# ls -al /usr/local/lib/libjpeg*

another method ................
libjpeg : install
# cd jpeg-6b
# ./configure
# make
# make test
# make install
# make install-lib
# make install-headers

.....................................................................
http://dl.maptools.org/dl/libtiff/
libtiff : remove
rpm -qa libtiff

libtiff : Install
# cd tiff-3.7.2/
# ./configure (Press enter/return to use default paths)
# make
# make install

.....................................................................
####################################################
gd 라이브러리를 등록하기전에 /usr/local/lib이 반드시 라이브러리패스에
등록되어 있어야 정상적으로 gd에서 위에 추가된 라이브러리를 불러온다.
# echo "/usr/local/lib" >> /etc/ld.so.conf
# /sbin/ldconfig
####################################################
http://www.boutell.com/gd/
libgd : remove
# rpm -qa gd
gd-1.8.4-11
# rpm -e --nodeps gd-1.8.4-11

libgd : install
# cd gd-2.0.28
# ./configure --with-freetype-dir=/usr/local/include/freetype2        ## 수정 옵션하나 추가.
# make
.....................................................................................
[root@ gd-2.0.35]# make
make: Warning: File `.deps/webpng.Po' has modification time 3e+04 s in the future
cd . && /bin/sh /home/nexer/pack/gd-2.0.35/config/missing --run aclocal-1.9 -I config
aclocal:configure.ac:64: warning: macro `AM_ICONV' not found in library
cd . && /bin/sh /home/nexer/pack/gd-2.0.35/config/missing --run automake-1.9 --foreign
cd . && /bin/sh /home/nexer/pack/gd-2.0.35/config/missing --run autoconf
configure.ac:64: error: possibly undefined macro: AM_ICONV
     If this token and others are legitimate, please use m4_pattern_allow.
     See the Autoconf documentation.
make: *** [configure] Error 1
make 중 아래 에러나면 "make"를 한번더 날려준다.....................................

# make install

.....................................................................
wget ftp://ftp.gnome.org/mirror/gnome.org/sources/libxml2/2.6/libxml2-2.6.22.tar.gz
wget ftp://ftp.gnome.org/mirror/gnome.org/sources/libxml2/2.6/libxml2-2.6.26.tar.gz
libxml : remove
#rpm -qa | grep libxml
libxml-1.8.17-8
# rpm -e --nodeps libxml-1.8.17-8

libxml : install
# cd libxml2-2.6.22
# ./configure
# make
# make install

.....................................................................
zlib : remove
# rpm -qa zlib
zlib-1.1.4-8
rpm -e --nodeps zlib-1.1.4-8

zlib : install
#cd zlib-1.2.1
//-->libz.so와 관련된 모듈을 생성시킨다 이것이 정말 중요하다
# ./configure -s
# make

//--> libz.a를 만든다
# ./configure
# make test
# make install

[root@davinci zlib-1.1.4]# mv libz.so* /usr/local/lib
[root@davinci zlib-1.1.4]# ls /usr/local/lib

####################################################
zlib을 새로 설치하였다면 /usr/local/lib이 반드시 라이브러리패스에
등록되어 있어야 rpm등 zlib을 사용하는 프로그램이 정상적으로 구동된다.
# echo "/usr/local/lib" >> /etc/ld.so.conf
# /sbin/ldconfig
####################################################

.....................................................................
mySQL 종료
mySQL 삭제

mySQL 설치
./configure \
--prefix=/usr/local/mysql \
--localstatedir=/usr/local/mysql/data \
--with-mysqld-user=root \
--with-charset=euckr

!!"--with-charset=euckr" <= euckr : 4.0 에서 사용안됨 4.1 에선 됨

make

make install

./scripts/mysql_install_db

/usr/local/mysql/bin/mysqld_safe --user=root &

.....................................................................
http://ftp.apache-kr.org/httpd/httpd-2.2.9.tar.gz    
아파치 종료.
아파치 삭제.

apache2 : install
./configure \
--prefix=/usr/local/apache2 \
--enable-module=so \
--enable-module=rewrite \
--enable-dav \
--enable-dav-fs \

2.2.9 //////////////
./configure \
--prefix=/usr/local/apache2 \
--enable-dav \
--enable-dav-fs \
--enable-so \
--enable-ssl

# make
# make install

.....................................................................
php 삭제.

php : install
./configure \
--prefix=/usr/local/php5 \
--with-exec-dir=/usr/bin \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-apache-install=/usr/local/apache2 \
--with-config-file-path=/etc \
--disable-debug \
--enable-safe-mode \
--enable-track-vars \
--enable-sockets \
--enable-mailparse \
--enable-calender \
--enable-sysvsem=yes \
--enable-sysvshm=yes \
--enable-magic-quotes \
--enable-gd-native-ttf \
--enable-versioning \
--enable-url-includes \
--enable-trans-id \
--enable-inline-optimization \
--enable-bcmath \
--enable-sigchild \
--enable-module=so \
\
--with-ttf \
--with-gettext \
--with-mod_charset \
--with-charset=euc_kr \
--with-language=korean \
\
--with-freetype \
--with-freetype-dir=/usr/local/include/freetype2 \
\
--with-xml \
--with-libxml-dir=/usr/lib \
--with-zlib \
--with-zlib-dir=/usr/lib \
--with-tiff \
--with-tiff-dir=/usr/lib \
--with-gd \
--with-gd-dir=/usr/lib \
\
--with-ungif \
--with-ungif-dir=/usr/local/lib \
--with-jpeg \
--with-jpeg-dir=/usr/local/lib \
--with-png \
--with-png-dir=/usr/local/lib \
--with-gif \
--with-gif-dir=/usr/local/lib \
\
--with-mysql

--with-mysql=/usr/lib/mysql

!!!!!!2008-09-12!!!!!! 성공함

DEFAULT LIB ++++++++++++++++++++++++++++++++++++++++++++++++++++++
./configure \
--prefix=/usr/local/php5 \
--with-exec-dir=/usr/bin \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-apache-install=/usr/local/apache2 \
--with-config-file-path=/etc \
--disable-debug \
--enable-safe-mode \
--enable-track-vars \
--enable-sockets \
--enable-mailparse \
--enable-calender \
--enable-sysvsem=yes \
--enable-sysvshm=yes \
--enable-magic-quotes \
--enable-gd-native-ttf \
--enable-versioning \
--enable-url-includes \
--enable-trans-id \
--enable-inline-optimization \
--enable-bcmath \
--enable-sigchild \
--enable-module=so \
\
--with-ttf \
--with-gettext \
--with-mod_charset \
--with-charset=euc_kr \
--with-language=korean \
\
--with-gd \
--with-gd-dir=/usr/lib \
--with-gif \
--with-gif-dir=/usr/lib \
--with-tiff \
--with-tiff-dir=/usr/lib \
\
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-png \
--with-png-dir=/usr/local/lib \
--with-jpeg \
--with-jpeg-dir=/usr/local/lib \
--with-xml \
--with-libxml-dir=/usr/local/lib \
\
--with-mysql=/usr/local/mysql

#--enable-ftp \

# make
# make install
# cp php.ini-dist /etc/php.ini

....................................................................

./configure \
--prefix=/usr/local/php5 \
--with-exec-dir=/usr/bin \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-apache-install=/usr/local/apache2 \
--with-config-file-path=/etc \
--disable-debug \
--enable-safe-mode \
--enable-track-vars \
--enable-sockets \
--enable-mailparse \
--enable-calender \
--enable-sysvsem=yes \
--enable-sysvshm=yes \
--enable-magic-quotes \
--enable-gd-native-ttf \
--enable-versioning \
--enable-url-includes \
--enable-trans-id \
--enable-inline-optimization \
--enable-bcmath \
--enable-sigchild \
--enable-module=so \
\
--with-ttf \
--with-gettext \
--with-mod_charset \
--with-charset=euc_kr \
--with-language=korean \
\
--with-tiff \
--with-tiff-dir=/usr/lib \
--with-xml \
--with-libxml-dir=/usr/lib \
\
--with-freetype \
--with-freetype-dir=/usr/local/include/freetype2 \
\
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gif \
--with-gif-dir=/usr/local/lib \
--with-jpeg \
--with-jpeg-dir=/usr/local/lib \
--with-xml \
--with-libxml-dir=/usr/local/lib \
\
--with-mysql=/usr/local/mysql


....................................................................
./configure \
--prefix=/usr/local/php5 \
--with-exec-dir=/usr/bin \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-apache-install=/usr/local/apache2 \
--with-config-file-path=/etc \
--disable-debug \
--enable-safe-mode \
--enable-track-vars \
--enable-sockets \
--enable-mailparse \
--enable-calender \
--enable-sysvsem=yes \
--enable-sysvshm=yes \
--enable-magic-quotes \
--enable-gd-native-ttf \
--enable-versioning \
--enable-url-includes \
--enable-trans-id \
--enable-inline-optimization \
--enable-bcmath \
--enable-sigchild \
--enable-module=so \
\
--with-ttf \
--with-gettext \
--with-mod_charset \
--with-charset=euc_kr \
--with-language=korean \
\
--with-jpeg \
--with-jpeg-dir=/usr/lib \
--with-mysql \
\
--with-freetype \
--with-freetype-dir=/usr/local/include/freetype2 \
\
--with-xml \
--with-libxml-dir=/usr/local/lib \
--with-png \
--with-png-dir=/usr/local/lib \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gif \
--with-gif-dir=/usr/local/lib \
--with-ungif \
--with-ungif-dir=/usr/local/lib \
--with-tiff \
--with-tiff-dir=/usr/local/lib
반응형

+ Recent posts