配置文件

httpd
./configure --prefix=/opt/server/apache/httpd --enable-so --enable-module=shared --enable-modules=all --enable-mods-shared=all --with-apr=/opt/server/lib/apache/apr --with-apr-

util=/opt/server/lib/apache/apr-util/ --with-z=/opt/server/lib/zlib/ --with-ssl=/opt/server/openssl/

 

resin

./configure --prefix=/opt/server/resin --with-apache=/opt/server/apache/httpd/ --with-apxs=/opt/server/apache/httpd/bin/apxs --with-apache-

include=/opt/server/apache/httpd/include/ --with-apache-conf=/opt/server/apache/httpd/conf/

 

./configure --prefix=/opt/server/resin --enable-ssk --with-resin-root=/var/www/resin/web --with-resin-conf=/etc/resin --with-resin-log=/var/log/ --with-resin-init.d=/etc/init.d/ --with-java-home=/usr/local/jdk/ --with-apxs=/opt/server/apache/httpd/bin/apxs --with-openssl=/usr/local/lib/openssl/ --with-openssl-include=/usr/local/lib/openssl/include/ --with-openssl-lib=/usr/local/lib/openssl/lib/ --with-perl=/usr/local/lib/perl5/

 

 

env CPPFLAGS="-I /usr/local/BerkeleyDB.4.2/include" LDFLAGS="-L /usr/local/BerkeleyDB.4.2/lib"

 

mysql-5.1.32

./configure --prefix=/opt/server/db/mysqlcluster --with-server-suffix=-appdb --with-max-indexes=128 --with-big-tables --with-charset=utf8 --with-collation=utf8_general_ci --

with-zlib-dir=/opt/server/lib/zlib/ --with-ssl=/opt/server/openssl/lib --with-

plugins=partition,blackhole,federated,ftexample,archive,csv,heap,myisam,myisammrg,innobase,ndbcluster

 

./configure --prefix=/usr/local/db/mysql --with-charset=utf8 --with-collation=utf8_general_ci --with-extra-charsets=all --with-server-suffix=test-db --with-mysqld-user=mysql --with-big-tables --with-ssl=/usr/local/lib/openssl/ --with-zlib-dir=/usr/local/lib/zlib/ --with-plugins=partition,blackhole,federated,ftexample,archive,csv,heap,myisam,myisammrg,innobase

 

./configure --prefix=/opt/server/db/mysqlcluster/clusterdb/mysqlone/ --with-charset=utf8 --with-collation=utf8_general_ci --with-system-type=testserver --with-server-suffix=-

clusterdb-ndb-admin --with-zlib-dir=/opt/lib/zlib/ --with-comment=clusterdb-server-ndb-admin --with-big-tables --with-ssl=/opt/lib/openssl --with-ndb-port-base=9000 --with-

plugins=partition,federated,blackhole,innodb_plugin,archive,csv,heap,innobase,myisam,myisammrg,ndbcluster

 

php

./configure --prefix=/opt/server/phpexe --mandir=/usr/share/man/ --with-apxs2=/opt/server/apache/httpd/bin/apxs --enable-safe-mode --enable-sigchild --enable-magic-quotes --with-libxml-dir=/usr/lib --with-openssl=/usr/local/lib/openssl/ --with-zlib-dir=/usr/lib --enable-calendar --enable-ftp --with-openssl-dir=/usr/local/lib/openssl/ --with-gd=/usr/lib --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/local/lib/libzip/ --with-xpm-dir=/usr/lib --with-freetype-dir=/usr/lib --enable-gd-native-ttf -enable-gd-jis-conv --with-gettext=/usr/lib --enable-mbstring=all --with-mysqli=/opt/server/db/mysqldb/bin/mysql_config --with-pdo-mysql=/opt/server/db/mysqldb/ --enable-shmop --enable-soap --enable-zip

 

./configure --prefix=/usr/local/lib/libgettext --with-included-gettext --with-libxml2-prefix=/usr/lib --with-libncurses-prefix=/usr/lib --with-libcurses-prefix=/usr/lib --with-libexpat-prefix=/usr/lib

 

./configure --prefix=/usr/local/lib/libfontconfig --with-expat=/usr/lib --with-expat-include=/usr/include/ --with-expat=/usr/lib --with-freetype=/usr/local/lib/libfreetype/

 

libpng

export LDFLAGS="-L $HOME/lib/zlib/lib"

export CPPFLAGS="-I $HOME/lib/zlib/include"

 

libjpeg

mkdir -p /usr/local/lib/jpeg/bin

mkdir -p /usr/local/lib/jpeg/include

mkdir -p /usr/local/lib/jpeg/mam/man1

--enable-share

--enable-static

 

shell#autoreconf --force --install
shell#aclocal; autoheader
shell#libtoolize --automake --force
shell#automake --force --add-missing; autoconf

 

# autoreconf --force --install
# libtoolize --automake --force
# automake --force --add-missing

 

 

gd jpeg

mkdir -p /prefix/include

mkdir -p /prefix/bin

mkdir -p /prefix/lib

mkdir -p /prefix/man/man1

 

export PKG_CONFIG_PATH=/usr/local/libxml2/lib/pkgconfig:$PKG_CONFIG_PATH

 

vi Makefile CFLAGS= -O2 -I$(srcdir) -->CFLAGS= -O2 -I$(srcdir) –fPIC

make

make install-lib

make intall

 

 

libxml2

./configure --prefix=/usr/local/lib/libxml2 --with-ftp --with-html --with-http --with-output --with-pattern --with-push --with-reader --with-regexps --with-sax1 --with-schemas --with-schematron --with-threads --with-thread-alloc --with-tree --with-valid --with-writer --with-xinclude --with-xpath --with-xptr --with-zlib=/usr/local/lib/libzip/

 

gd lib

./configure --prefix=/usr/local/lib/gdlib --with-png=/usr/local/lib/libpng/ --with-freetype=/usr/local/lib/libfreetype/ --with-fontconfig=/usr/local/lib/libfontconfig/ --with-jpeg=/usr/local/lib/libjpeg/

 


[root@bogon bin]# ./mysql_install_db --user=mysql
Installing MySQL system tables...
110903 11:47:09 [Warning] Forcing shutdown of 3 plugins
OK
Filling help tables...
110903 11:47:09 [Warning] Forcing shutdown of 3 plugins
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/opt/server/db/cluster/dbone/bin/mysqladmin -u root password 'new-password'
/opt/server/db/cluster/dbone/bin/mysqladmin -u root -h bogon password 'new-password'

Alternatively you can run:
/opt/server/db/cluster/dbone/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /opt/server/db/cluster/dbone ; /opt/server/db/cluster/dbone/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /opt/server/db/cluster/dbone/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /opt/server/db/cluster/dbone/bin/mysqlbug script!

The latest information about MySQL is available at http://www.mysql.com/
Support MySQL by buying support/licenses from http://shop.mysql.com/

 

mysql-5.5.8
cmake -DCMAKE_INSTALL_PREFIX=/opt/server/db/mysql5 -DMYSQL_UNIX_ADDR=/tmp/mysql5.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_MYISAM_STORAGE_ENGINE=1

-DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_USER=mysql -DMYSQL_TCP_PORT=4306 -DWITH_SSL=bundled -

DSYSCONFDIR=/opt/server/db/mysql5/etc -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1

 

 

 

./configure --prefix=/usr/local/resin
--with-resin-root=/var/www/resin
--with-resin-log=/var/log/resin
--with-resin-conf=/etc/resin
--with-resin-init.d=/etc/init.d/
--with-java-home=/usr/local/jdk/
--with-apache=/usr/local/httpd/
--with-apxs=/usr/local/httpd/bin/apxs
--with-openssl=/usr/local/lib/opensll/
--with-openssl-include=/usr/local/lib/opensll/include/
--with-openssl-lib=/usr/local/lib/opensll/lib/

你可能感兴趣的:(配置文件)