환경 : ubuntu 16.04~19.04
apahce 2.4 / mysql 5.6 5.7 8.0 / php 5.3 7.3
ubuntu 16 - mysql 5.6.12
apt-get install gcc zlibc zlib1g zlib1g-dev libssl-dev openssl libxml2-dev ncurses-dev g++ build-essential cmake
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DMYSQL_DATADIR=/usr/local/mysql/data -DENABLED_LOCAL_INFILE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_USER=mysql -DMYSQL_TCP_PORT=3306 -DENABLE_DOWNLOADS=1
make install
cp -apr /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf
/usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql/data
cp -arp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld
chown -R mysql:mysql /usr/local/mysql/
chmod 700 /etc/init.d/mysqld
chmod 711 /usr/local/mysql
chmod 700 /usr/local/mysql/data
chmod 751 /usr/local/mysql/bin
chmod 750 /usr/local/mysql/bin/*
chmod 755 /usr/local/mysql/bin/mysql
chmod 755 /usr/local/mysql/bin/mysqldump
vi /etc/profile
update-rc.d mysqld defaults
우분투 16 -mysql 오류
make install
/usr/local/src/mysql-5.6.12/storage/innobase/row/row0log.cc:2367:11: error: ‘srv_buf_size’ was not declared in this scope
ofs, srv_buf_size);
=> srv_sort_buf_size 로 수정
ubuntu 16 apache-2.4.12 설치
arp,apr-util 설치
httpd-2.4.12/srclib/위치에 버전 이름 지우고 복사
cd pcre-7.9
./configure --prefix=/usr/local/pcre
make && make install
configure 옵션
./configure --prefix=/usr/local/apache --with-included-apr --with-pcre=/usr/local/pcre/bin/pcre-config --with-ssl --enable-so --enable-ssl --enable-rewrite --with-mpm=worker --enable-cache --enable-modules=all --enable-mods-shared=all --with-apr=/usr/local/src/httpd-2.4.12/srclib/apr --with-apr-util=/usr/local/apr/httpd-2.4.12/srclib/apr-util
ubuntu 16 apache 2.4.12 에러(18에서도 동일)
configure: error: Bundled APR-Util requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
=>src 밑에 압축 해제한 apr-1.5.x , apr-util-1.5.x 를 버전 이름 지우고 srclib밑에 복사한다.
ubuntu 16 php 5.3.21
libcrypt,mhash
configure
/configure --prefix=/usr/local/php --with-apache-install=/usr/local/apache --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --with-exec-dir=/usr/local/apache/bin --with-mysql=/usr/local/mysql --enable-sigchild --disable-debug
ubuntu 16 mysql 5.7.14
컨피규
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DENABLED_LOCAL_INFILE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DSYSCONFDIR=/etc -DDEFAULT_CHARSET=utf8 -DMYSQL_TCP_PORT=3306 -DWITH_EXTRA_CHARSETS=all -DDEFAULT_COLLATION=utf8_general_ci -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/include/boost
ubuntu 18 mysql 5.6.20 오류
/usr/local/src/mysql-5.6.20/sql/sql_acl.cc:3215:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (combo->plugin.str == NULL || combo->plugin.str == '\0')
NULL로 수정
ubuntu 16 php-7.3.4
(imap,openssl-1.0.2s 설치)
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/apache/conf --with-apxs2=/usr/local/apache/bin/apxs --with-mysqli --with-pdo-mysql --enable-sigchild --with-libxml-dir --with-openssl=/usr/local/openssl --with-zlib --with-zlib-dir --with-bz2 --enable-calendar --enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-mbstring --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-curl --with-curl --with-kerberos --with-iconv --enable-bcmath --with-gettext --enable-inline-optimization --enable-shmop --with-gdbm --enable-mbregex --enable-soap --disable-debug --enable-zip --enable-fpm CPPFLAGS=-I/usr/include/openssl LIBS=-L/usr/include/openssl
openssl 컨피규 옵션:
config --prefix=/usr/local/openssl -fPIC
imap make error
osdep.c:89:31: fatal error: security/pam_appl.h: No such file or director
apt-get install libpam0g-dev libreadline5-dev libreadline-gplv2-dev
configure error
configure: error: Cannot find OpenSSL's libraries
=> 소스 설치 후 with-openssl-dir=/usr/local/openssl
configure: error: Please reinstall the BZip2 distribution
=> apt-get install libbz2-dev
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
=> apt-get install libcurl4-gnutls-dev
error: DBA: Could not find necessary header file(s)
=> apt-get install libgdbm-dev
configure: error: jpeglib.h not found
=> apt-get install libjpeg-dev
configure: error: png.h not found
=> apt-get install libpng-dev
configure: error: freetype-config not found
=> apt-get install libfreetype6-dev
error: Please reinstall the libzip distribution
=> apt-get install libzip-distribution
ubuntu 16 mysql 8
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DENABLED_LOCAL_INFILE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DSYSCONFDIR=/etc -DDEFAULT_CHARSET=utf8 -DWITH_SSL=system -DMYSQL_TCP_PORT=3306 -DWITH_EXTRA_CHARSETS=all -DDEFAULT_COLLATION=utf8_general_ci -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/include/boost
ubuntu 18 apache
openssl 설치 (16과 동일)
/configure --prefix=/usr/local/apache --with-included-apr --with-pcre=/usr/local/pcre/bin/pcre-config --with-ssl=/usr/local/openssl --enable-so --enable-ssl --enable-rewrite --with-mpm=prefork --enable-cache --enable-modules=all --enable-mods-shared=all --with-included-apr --with-included-apr-util
18 php 5.3
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --with-regex=php --with-zlib --disable-debug --enable-calendar --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes
18 mtsql 5.7.14
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DENABLED_LOCAL_INFILE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DSYSCONFDIR=/etc -DDEFAULT_CHARSET=utf8 -DMYSQL_TCP_PORT=3306 -DWITH_EXTRA_CHARSETS=all -DDEFAULT_COLLATION=utf8_general_ci -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/include/boost
ubuntu 18 php 7
컨피규 error: Please reinstall the BZip2 distribution
apt-get install bzip2 libbz2-dev
configure: error: cURL version 7.15.5 or later is required to compile php with cURL support
curl 다운 사이트 http://download.nust.na/pub2/openpkg1/sources/DST/openpkg/
error: DBA: Could not find necessary header file(s).
블로그 참고
error: jpeglib.h not found.
error: png.h not found
블로그참고
error: freetype-config not found
error: Please reinstall the libzip distribution
apt-get zip libzip-dev
configure: error: xpm.h not found.
yum install libXpm-devel
18 php7.3.4
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/apache/conf --with-apxs2=/usr/local/apache/bin/apxs --with-mysqli --with-pdo-mysql --enable-sigchild --with-libxml-dir --with-openssl=/usr/local/openssl --with-zlib --with-zlib-dir --with-bz2 --enable-calendar --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/include --with-png-dir=/usr/include --with-freetype --enable-mbstring --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-curl=/usr/local/curl --with-kerberos --with-iconv --enable-bcmath --with-gettext --enable-inline-optimization --enable-shmop --with-gdbm --enable-mbregex --enable-soap --disable-debug --enable-zip --enable-fp
imap make error
error dereferencing pointer to incomplete type ‘x509’
=> apt-get install libssl1.0-dev
'APM' 카테고리의 다른 글
open jdk 설치 (0) | 2020.04.08 |
---|---|
그누보드 와 영카트 설치 (0) | 2020.01.12 |
centos6 apache2.2 + php5.3 + mysql5.1 (0) | 2019.06.26 |
centos6 mariadb 10.1 , php5.4 yum설치 (0) | 2019.06.11 |
ubuntu 18 apm 소스설치 (0) | 2019.06.01 |