Macintosh10.4.8 apache2 php5.20 mediawiki1.8 …
2009-05-13 07:13:34来源:未知 阅读 ()
Macintosh10.4.8 apache2 php5.20 mediawiki1.8 install
[url=http://www.freebsdchina.org/forum/posting.php?mode=quote&p=183243][/url]
#install mysql
cd ~/mysql-5.027
./configure --prefix=/usr/local/mysql \
--with-unix-socket-path=/usr/local/run/mysql_socket \
--with-mysqld-user=mysql \
--with-comment \
--with-debug
make
sudo make install
sudo make clean
sudo /usr/local/mysql/bin/mysql_install_db --force
sudo mkdir /usr/local/mysql/run
sudo chgrp -R mysql /usr/lcoal/mysql
sudo chown -R mysql /usr/local/mysql/run /usr/local/mysql/var
sudo /usr/local/mysql/bin/mysqld_safe --user=mysql &
/usr/local/mysql/bin/mysqladmin -u root password picb
sudo mkdir /var/mysql
cd /var/mysql
sudo ln -s /usr/local/run/mysql_socket ./mysql.sock
#istall apache2
cd ~/httpd-2.2.3
./configure --prefix=/usr/local/apache2 \
--enable-module=most \
--enable-shared=max
make
sudo make install
sudo make clean
sudo /usr/local/apache2/bin/apachectl start
#install GD (before this we should have installed or have to install libxml2,zlib,libpngjpeg,
#freetype please check it, my OS no need to install libxml2 & zlib, but can install as follow: )
#install libxml2
cd ~/libxml2-2.6.27
./configure
make
sudo make install
sudo makeclean
#install zlib
cd ~/zlib-1.2.3
./configure
make
sudo make install
sudo makeclean
#install libpng
cd ~libpng-1.2.14
cp scripts/makefile.darwin Makefile
vi makefile
# Where the zlib library and include files are located
ZLIBLIB=/usr/local/lib
ZLIBINC=/usr/local/include
#ZLIBLIB=../zlib
#ZLIBINC=../zlib
make
sudo make install
sudo make clean
#install jpeg
cd ~/jpeg-6b/
ln -s /usr/bin/glibtool ./libtool
export MACOSX_DEPLOYMENT_TARGET=10.4
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure --prefix=/usr/local/jpeg6 \
--enable-shared
make
sudo mkdir /usr/localjpeg6
sudo mkdir /usr/localjpeg6/include
sudo mkdir /usr/localjpeg6/lib
sudo mkdir /usr/localjpeg6/bin
sudo mkdir /usr/localjpeg6/man
sudo mkdir /usr/localjpeg6/man/man1
sudo make install-lib
sudo make install
sudo make clean
#install freetype2
cd ../freetype-2.2.1
/*edit the file include/freetype/config/ftoption.h and uncomment line 439 to read:
#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
*/
./configure --prefix=/usr/local/freetype2
make
sudo make install
sudo make clean
#install GD
sudo ln -s /usr/X11R6/include/fontconfig /usr/local/include
cd ~/gd-2.0.33
./configure --prefix=/usr/local/gd2 \
--with-zlib \
--with-png=/usr/local/libpng2 \
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- FreeBSD下WEBCAM 2009-05-13
- freebsd postfix设置 2009-05-13
- freebsd7.0 apache php squid 反向代理 2009-05-13
- FreeBSD基础命令 2009-05-13
- FreeBSD服务器搭建手挡 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash