标签:
编译安装找软件编译的过程实在太浪费时间,索性今天就把常用的都记在这了,以后再用省得找了。
软件名 地址
apr https://archive.apache.org/dist/apr
apr-util https://archive.apache.org/dist/apr
apache https://archive.apache.org/dist/httpd/
serf http://archive.apache.org/dist/serf/
zlib https://zlib.net
pcre ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
openssl https://www.openssl.org/source/
libpng https://sourceforge.net/projects/libpng/files/
freetype http://download.savannah.gnu.org/releases/freetype/
php http://php.net/releases/
subversion http://archive.apache.org/dist/subversion/
sqlite http://www.sqlite.org/
nginx http://nginx.org/download/
zabbix http://www.zabbix.com/download2.php
编译参数
apr
./configure --prefix=/usr/local/apr
apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
serf
yum install expat-devel
./configure --prefix=/usr/local/serf --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
apache
./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr-util/bin/apu-1-config --with-pcre=/usr/local/pcre --with-z=/usr/local/zlib --enable-deflate --enable-log-config --enable-log-forensic --enable-logio --enable-env --enable-mime-magic --enable-expires --enable-headers --enable-setenvif --enable-proxy --enable-proxy-http --enable-http --enable-mime --enable-status --enable-autoindex --enable-info --enable-cgi --enable-dir --enable-actions --enable-rewrite --enable-so --enable-http --enable-dav --enable-maintainer-mode
subversion
./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr-util/bin/apu-1-config --with-apxs=/usr/local/apache2/bin/apxs --with-serf=/usr/local/serf(支持http,1.8版本以后是此参数,之前是neno) --with-sqlite=$PWD/sqlite-amalgamation/sqlite3.c --with-openssl=/usr/local/openssl --with-zlib=/usr/local/zlib --enable-shared --enable-maintainer-mode --enable-mod-activation
php
./configure --prefix=/usr/local/phpfpm538 --with-config-file-path=/usr/local/phpfpm538/etc --with-iconv-dir=/usr/local/libiconv --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --with-mcrypt=/usr/local/libmcrypt --with-png-dir=/usr/local/libpng --with-freetype-dir=/usr/local/freetype --with-libxml-dir=/usr/local/libxml2 --with-jpeg-dir=/usr/local/jpeg --with-gd --with-zlib --with-openssl --with-pear --with-gettext --enable-fpm --enable-safe-mode --enable-mbstring --enable-zip --enable-soap --enable-sysvsem --enable-shmop --enable-sockets --enable-ftp --enable-gd-native-ttf --enable-bcmath --with-gdbm --with-curl --with-mhash --with-curlwrappers --with-ldap --enable-pcntl --enable-maintainer-ztswith-xmlrpc --with-tidy
mysql
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/mysql -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
nginx
./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --error-log-path=/usr/local/nginx/logs/error.log --http-log-path=/usr/local/nginx/logs/access.log --pid-path=/usr/local/nginx/logs/nginx.pid --http-client-body-temp-path=/usr/local/nginx/client_body_temp --http-proxy-temp-path=/usr/local/nginx/proxy_temp --http-fastcgi-temp-path=/usr/local/nginx/fcgi_temp --http-uwsgi-temp-path=/usr/local/nginx/uwsgi_temp --http-scgi-temp-path=/usr/local/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_rewrite_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-pcre=/usr/local/pcre --with-zlib=/usr/local/zlib --with-http_flv_module
zabbix
./configure --prefix=/usr/local/zabbix/ --enable-server --enable-agent --enable-proxy --with-mysql --with-net-snmp --with-libcurl --with-libxml2
标签:
原文地址:http://www.cnblogs.com/weijing24/p/5714850.html