Linux编译安装软件configure参数(持续更新)

清泛原创
PHP configure参数:
./configure --prefix=/usr/local/php --with-gd=/usr/local/gd --with-jpeg-dir=/usr/local/jpeg --with-png-dir=/usr/local/png --with-freetype-dir=/usr/local/freetype \
--with-mysql=/opt/tfdata/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-pdo-mysql \
--with-config-file-path=/usr/local/php --with-zlib=/usr --enable-mbstring --disable-fileinfo
Squid configure参数
./configure --prefix=/usr/local/squid --sysconfdir=/usr/local/squid/etc --bindir=/usr/local/squid/bin \
--sbindir=/usr/local/squid/sbin --mandir=/usr/local/squid/share/man --enable-gnuregex --enable-carp \
--enable-async-io=80 --enable-removal-policies=heap,lru --enable-icmp --enable-delay-pools --enable-useragent-log \
--enable-referer-log --enable-kill-parent-hack --enable-snmp --enable-arp-acl --enable-htcp --enable-cache-digests \
--enable-default-err-language=Simplify_Chinese --enable-err-languages="Simplify_Chinese" --enable-poll \
--enable-linux-netfilter --disable-ident-lookups --enable-underscores \
--enable-auth --enable-basic-auth-helpers="NCSA" --enable-x-accelerator-vary --with-included-ltdl
MySQL configure参数
cmake . \
-DCMAKE_INSTALL_PREFIX=/opt/tfdata/mysql \
-DMYSQL_DATADIR=/opt/tfdata/mysql/data \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DMYSQL_TCP_PORT=3306 \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DMYSQL_UNIX_ADDR=/tmp/mysql.sock \
-DMYSQL_USER=mysql \
-DWITH_DEBUG=0
Postfix configure参数:
make makefiles 'CCARGS=-DHAS_MYSQL -I/opt/tfdata/mysql/include -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/include/sasl/ \
-DUSE_TLS ' 'AUXLIBS=-L/opt/tfdata/mysql/lib -lmysqlclient -lz -lm -L/usr/local/lib/sasl2/ -lsasl2  -lssl -lcrypto'
Courier configure参数:
./configure --prefix=/usr/local/courier-authlib --sysconfdir=/etc --without-authpam --without-authshadow --without-authvchkpw --without-authpgsql --with-authmysql --with-mysql-libs=/opt/tfdata/mysql/lib --with-mysql-includes=/opt/tfdata/mysql/include --with-redhat --with-authmysqlrc=/etc/authmysqlrc --with-authdaemonrc=/etc/authdaemonrc --with-ltdl-lib=/usr/lib --with-ltdl-include=/usr/include
Sasl2 configure参数:
./configure --disable-anon --enable-login --enable-plain --enable-sql --with-mysql=/opt/tfdata/mysql --with-mysql-includes=/opt/tfdata/mysql/include \
--with-mysql-libs=/opt/tfdata/mysql/lib --enable-sample --with-plugindir=/usr/local/lib/sasl2

编译安装 configure 参数

分享到:
评论加载中,请稍后...
创APP如搭积木 - 创意无限,梦想即时!
回到顶部