常用软件编译参数以及软件地址
编译安装找软件编译的过程实在太浪费时间,索性今天就把常用的都记在这了,以后再用省得找了。
软件名 地址
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 http://www.zlib.net/fossils/zlib-1.2.8.tar.gz
pcre https://ftp.pcre.org/pub/pcre/pcre-8.32.tar.gz
openssl https://www.openssl.org/source/old
libpng https://sourceforge.net/projects/libpng/files/
libiconv https://ftp.gnu.org/gnu/libiconv/
freetype http://download.savannah.gnu.org/releases/freetype/
jpeg http://www.ijg.org/files/jpegsrc.v8b.tar.gz
gd https://jaist.dl.sourceforge.net/project/gd2/
php http://museum.php.net/
subversion http://archive.apache.org/dist/subversion/
mysql http://downloads.mysql.com/archives/
sqlite http://www.sqlite.org/
nginx http://nginx.org/download/
zabbix http://www.zabbix.com/download2.php
redis http://download.redis.io/releases
memcached http://www.memcached.org/files
puppet http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm (这是puppet源的rpm包,安装后使用yum install puppet即可)
openssh http://ftp4.usa.openbsd.org/pub/OpenBSD/OpenSSH/portable
kernel-debuginfo http://debuginfo.centos.org/6/x86_64/
编译参数
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 --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-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 --with-tidy
mysql
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DDEFAULT_CHARSET=utf8 -DWITH_EXTRA_CHARSETS=all -DDEFAULT_COLLATION=utf8_general_ci -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DWITH_READLINE=1 -DWITH_DEBUG=0 -DENABLED_PROFILING=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