./configure \
--prefix=/usr/local/apache2 \
--enable-mods-shared=all \
--enable-deflate \
--enable-proxy \
--enable-proxy-balancer \
--enable-proxy-http \
--with-ssl=/usr/local/openssl \
--enable-ssl \
LIBS=-L/usr/local/openssl \
CPPFLAGS=-I/usr/local/openssl/include/openssl
우분투 18.04에 http2.2소스설치
sudo apt-get install --reinstall zlibc zlib1g zlib1g-dev
configure: error: ...No recognized SSL/TLS toolkit detected
apt-get install libssl-dev openssl
error: ... Error, SSL/TLS libraries were missing or unusable
openssl 소스설치 해야함
make[4]: *** [mod_ssl.la] Error 1
make[4]: Leaving directory `/home/backup/tar/src/httpd-2.4.3/modules/ssl'
make[3]: *** [shared-build-recursive] Error 1
make[3]: Leaving directory `/home/backup/tar/src/httpd-2.4.3/modules/ssl'
make[2]: *** [shared-build-recursive] Error 1
make[2]: Leaving directory `/home/backup/tar/src/httpd-2.4.3/modules'
make[1]: *** [shared-build-recursive] Error 1
make[1]: Leaving directory `/home/backup/tar/src/httpd-2.4.3'
make: *** [all-recursive] Error 1
[root@linux httpd-2.4.3]#
해결방법
openssl 소스 컴파일을 할때 -fPIC 옵션을 추가하고 컴파일 해야합니다.
./config -fPIC
www.modssl.or.kr 에서는 -fPIC 옵션에 대해다음과 같이 설명하고 있습니다.
"./config -fPIC로 해, DSO판 작성시에 필요한 PIC(Position Independent Code)옵션을 지정해 config한다.
php
./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-config-file-path=/usr/local/apache2/conf \
--with-regex=php \
--with-zlib \
--disable-debug \
--enable-calendar \
--enable-ftp \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-magic-quotes
configure: error: xml2-config not found. Please check your libxml2 installation
apt-get install libxml2-dev
error: dereferencing pointer to incomplete type ‘xmlBuf {aka struct _xmlBuf}’
root@techsmile-61583:/usr/local/src/php-5.3.3/ext/gd# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script
위 에러뜨면서 configure가 생성되지 않는다.
apt-get install autoconf
configure error: png.h not found.
gd 설치 시 해당 에러 발생하면
apt-get install libpng-dev
18.04 mysql5.1 소스 설치
컨피규 에러
checking for termcap functions library... configure: error: No curses/termcap library found
-> apt-get install ncurses-dev
소스코드 컴파일 에러 시 컨피큐 후 중간에 gcc등을 설치하면 발생할 수 있다.
make clean 후 재컴파일 후 순차적으로 다시 시도 해봐야 한다.
./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-config-file-path=/usr/local/apache2/conf –with-regex=php –with-zlib --with-zlib-dir –disable-debug –enable-calendar –enable-ftp –enable-sockets –enable-sysvsem –enable-sysvshm –enable-magic-quotes --with-mysql=/usr/local/mysql --with-mod_charset --enable-safe-mode --enable-sigchild --with-openssl --with-bz2 --with-jpeg-dir --with-tiff-dir --with-curl --enable-dba --with-gdbm --enable-dbx --with-dom --enable-exif --with-gd --with-jpeg-dir --with-png-dir --with-ttf --with-freetype-dir --enable-gd-native-ttf --with-gettext --with-iconv --with-imap --with-imap-ssl --with-kerberos --enable-mbstring --with-openssl-dir --with-mhash --with-mcrypt --enable-sysvmsg --enable-wddx --enable-zend-multibyte --with-zip
--with-imap
--with-openssl
php 설치
컨피규 중 에러
error: Please reinstall the BZip2 distribution
=> apt-get install libbz2-dev
컨피규 중 에러
error: Please reinstall the libcurl distribution
cd /usr/local/include sudo ln -s /usr/include/x86_64-linux-gnu/curl curl
=> sudo apt-get install libcurl4-gnutls-dev
컨피규 중 에러
error: DBA: Could not find necessary header file(s)
=> apt-get install libgdbm-dev
컨피규 중 에러
error: libjpeg.(a|so) not found
=> 설치 사이트 https://codeng.tistory.com/209
=> apt-get install libjpeg-devel???
=> # ln -s /usr/lib64/libjpeg.so /usr/lib/
# ln -s /usr/lib64/libpng.so /usr/lib/
컨피규 중 에러
error: freetype.h not found.
=> 옵션에 --with-xpm-dir=/usr/local/src/php-5.3.3/ext/gd/tests 추가
컨피규 중 에러
error: Problem with libpng.(a|so) or libz.(a|so).
=> --with-zlib-dir
make 시 에러
/usr/bin/ld: cannot find lltdl
=> sudo apt-get install libltdl-dev
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/apache2/conf --with-mysql=/usr/local/mysql --with-mod_charset --enable-safe-mode --enable-sigchild --enable-magic-quotes --with-openssl --with-zlib --with-zlib-dir --with-bz2 --enable-calendar --with-jpeg-dir --with-tiff-dir --with-curl --enable-dba --with-gdbm --enable-dbx --with-dom --enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-ttf --with-freetype-dir --enable-gd-native-ttf --with-gettext --with-iconv --with-imap --with-imap-ssl --with-kerberos --enable-mbstring --with-openssl-dir --with-mhash --with-mcrypt --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-sockets --with-regex=php --enable-zend-multibyte --with-zip
apm 5 - 7.5 버전
dns 3 - 4.5 // X
백업 5 - 7.5 경로
ㄴ니 3 설정 파일
roundcubuMail 3 - 4.5
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/apache2/conf --with-regex=php --with-zlib --disable-debug --enable-calendar --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes
'APM' 카테고리의 다른 글
centos6 apache2.2 + php5.3 + mysql5.1 (0) | 2019.06.26 |
---|---|
centos6 mariadb 10.1 , php5.4 yum설치 (0) | 2019.06.11 |
mysql 5.7 설치 (0) | 2019.04.30 |
apache 2.4.x 설치 (0) | 2019.04.30 |
mysql 설치 (0) | 2019.01.30 |