登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

SeaRiver Blog

实力才是你一生最好的依靠!

 
 
 

日志

 
 

软件包安装介绍  

2007-07-10 12:01:54|  分类: FreeBSD |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
为了软件包自动安装程序,能准确无误的安装成功,下面针对
各软件包的安装过程进行了详细的测试,并已经通过测试,以
下为具体的操作手顺!

一、安装环境
 1、硬件环境:
    CPU: P4 2.8(双核)
    memory:512M
 2、软件环境:
    OS: FreeBSD 6.0-RELEASE
    compiler: gcc 3.4.4
              perl 5.8.7  
              make 3.81
二、所需软件
    Apache 2.0.54
    Apache 2.0.58
    mysql 4.0.20
    mysql 4.0.27
    PHP 4.3.8
    PHP 4.3.11
    openssh-4.3p2
    sudo-1.6.8p12
    rsync-2.6.8
    zlib-1.2.3
    libpng-1.2.10
    gd-2.0.32
    jpeg6b-freebsd
    make-3.81
    freetype-2.2.1
    openssl-0.9.7i
    openssl-0.9.8b
    mod_ssl-2.8.27-1.3.36
    mod_perl-2.0.2

三安装软件
  1、软件名称:make-3.81.tar.gz
     安装路径:/usr
     安装过程:
     tar xzf make-3.81.tar.gz
     cd make-3.81
     make
     make install
  
  2、软件名称:mysql-4.0.20.tar.gz
     安装路径:/usr/softtest/mysql4020
     安装过程:
     pw useradd mysql
     tar xzf mysql-4.0.20.tar.gz
     cd mysql-4.0.20
     ./configure '--prefix=/usr/softtest/mysql4020' '--with-mysqld-user=mysql' \
                 '--without-bench' '--without-debug' '--with-charset=ujis' \
                 '--with-mysqld-ldflags=-all-static'
     make
     make install
     cd /usr/softtest/mysql4020
     scripts/mysql_install_db --user=mysql
     chown -R root  .
     chown -R mysql var
     chgrp -R mysql .
     cd /home/yuhj/autosoft/mysql-4.0.20/
     cp support-files/my-large.cnf /usr/softtest/mysql4020/var/my.cnf  
     cd /usr/softtest/mysql4020
     bin/mysqld_safe --user=mysql &
    
  3、软件名称:mysql-standard-4.0.27-unknown-freebsd6.0-i386.tar.gz
     安装路径:/usr/softtest/mysql4027
     安装过程:
     tar xzf mysql-standard-4.0.27-unknown-freebsd6.0-i386.tar.gz
     mv mysql-standard-4.0.27-unknown-freebsd6.0-i386 /usr/softtest/mysql4027
     cd /usr/softtest/mysql4027
     chown -R root  .
     chown -R mysql var
     chgrp -R mysql .
     cp support-files/my-large.cnf /usr/softtest/mysql4027/var/my.cnf    
     bin/mysqld_safe --user=mysql &
     注:由于是二进制包,所以不用编译,直接拷贝到指定目录就可以正常使用

  3、软件名称:
     安装路径:zlib-1.2.3.tar.gz
     安装过程:/usr/local
     tar xzf zlib-1.2.3.tar.gz
     cd zlib-1.2.3
     ./configure
     make
     make install
  
  4、软件名称:openssl-0.9.8b.tar.gz
     安装路径:/usr/local/ssl
     安装过程:
     tar xzf openssl-0.9.8b.tar.gz
     cd openssl-0.9.8b
     ./config
     make
     make test
     make install   

  5、软件名称:openssl-0.9.7i.tar.gz
     安装路径:/usr/softtest/openssl_0.97i
     安装过程:
     tar xzf openssl-0.9.7i.tar.gz
     cd openssl-0.9.7i
     ./config --prefix=/usr/softtest/openssl_0.97i
     make
     make test
     make install   

  6、软件名称:libpng-1.2.10.tar.bz2
     安装路径:/usr/local
     安装过程:
     tar xjf libpng-1.2.10.tar.bz2
     cd libpng-1.2.10
     ./configure
     make
     make check
     make install

  7、软件名称:gd-2.0.32.tar.gz
     安装路径:/usr/local/
     安装过程:
     tar xzf gd-2.0.32.tar.gz
     cd gd-2.0.32
     ./configure
     make
     make install

  8、软件名称:jpeg6b-freebsd.tar.gz
     安装路径:/usr/softtest/jpeg6b
     安装过程:
     tar xvzf jpeg6b-freebsd.tar.gz
     mv jpeg6b-freebsd /usr/softtest/jpeg6b
     注:由于是二进制包,所以不用编译,直接拷贝到指定目录就可以正常使用

  9、软件名称:freetype-2.2.1.tar.bz2
     安装路径:/usr/softtest/freetype-2.2.1
     安装过程:
     tar xjf freetype-2.2.1.tar.bz2
     cd freetype-2.2.1
     ./configure --prefix=/usr/softtest/freetype-2.2.1
     make
     make install    

 10、软件名称:httpd-2.0.58.tar.gz
     安装路径:/usr/softtest/apache2058
     安装过程:
     tar httpd-2.0.58.tar.gz
     cd httpd-2.0.58
     ./configure --enable-so --enable-shared=max --with-mpm=worker \
     --enable-deflate --enable-headers --prefix=/usr/softtest/apache2058 \
     --enable-rewrite --enable-proxy --enable-ssl --with-ssl=/usr/local/ssl \
     --enable-modules=all
     make                                                            
     make install 

 11、软件名称:httpd-2.0.54.tar.gz
     安装路径:/usr/softtest/apache2054
     安装过程:
     tar xzf httpd-2.0.54.tar.gz
     cd httpd-2.0.54
     ./configure --enable-so --enable-shared=max --with-mpm=worker \
     --enable-deflate --enable-headers --prefix=/usr/softtest/apache2054 \
     --enable-rewrite --enable-proxy --enable-ssl --with-ssl=/usr/softtest\
     /openssl_0.97i --enable-modules=all 
     make
     make install
    
 12、软件名称:php-4.3.8.tar.tar
     安装路径:/usr/softtest/php-4.3.8
     安装过程:
     tar xzf php-4.3.8.tar.tar
     cd php-4.3.8
     ./configure '--prefix=/usr/softtest/php-4.3.8' '--with-apxs2=/usr/softtest\
     /apache2054/bin/apxs' '--with-mysql=/usr/softtest/mysql4020' '--with-gd' \
     '--enable-dba' '--enable-ftp' '--enable-zend-multibyte' '--enable-debug' \
     '--with-zlib' '--with-openssl=/usr/softtest/openssl_0.97i' '--with-openssl-dir\
     =/usr/softtest/openssl_0.97i' '--with-tsrm-pth' '--enable-versioning' \
     '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' \
     '--with-png-dir=/usr/local/lib' '--with-jpeg-dir=/usr/softtest/jpeg6b' \
     '--with-freetype-dir=/usr/softtest/freetype-2.2.1' '--with-wbmp' \
     '--enable-sockets' '--with-zlib-dir=/usr/local/lib'
     make
     make install
    
     在apache的httpd.conf里加入以下内容:
     AddType application/x-httpd-php .php .phtml .html .htm
     AddType application/x-httpd-php-source .phps

 13、软件名称:php-4.3.11.tar.gz
     安装路径:/usr/softtest/php-4.3.11
     安装过程:
     tar xzf php-4.3.11.tar.gz
     cd php-4.3.11
     ./configure '--prefix=/usr/softtest/php-4.3.11' '--with-apxs2=/usr/softtest\
     /apache2058/bin/apxs' '--with-mysql=/usr/softtest/mysql4027' '--with-gd' \
     '--enable-dba' '--enable-ftp' '--enable-zend-multibyte' '--enable-debug' \
     '--with-zlib' '--with-openssl=/usr/local/ssl' '--with-openssl-dir=/usr/local/ssl' \
     '--with-tsrm-pth' '--enable-versioning' '--enable-mbstring' '--enable-mbstr-enc-trans' \
     '--enable-mbregex' '--with-png-dir=/usr/local/lib' '--with-jpeg-dir=/usr/softtest/jpeg6b' \
     '--with-freetype-dir=/usr/softtest/freetype-2.2.1' '--with-wbmp' \
     '--enable-sockets' '--with-zlib-dir=/usr/local/lib'
     make
     make install

     在apache的httpd.conf里加入以下内容:
     AddType application/x-httpd-php .php .phtml .html .htm
     AddType application/x-httpd-php-source .phps

 14、软件名称:mod_perl-2.0-current.tar.tar
     安装路径:/usr/local
     安装过程:
     tar xzf mod_perl-2.0-current.tar.tar
     cd mod_perl-2.0.2
     perl Makefile.PL MP_APXS=/usr/softtest/apache2058/bin/apxs
     make
     make test
     make install
  
     需要在apache的httpd.conf文件中加入以下内容: 
     LoadModule perl_module modules/mod_perl.so

 15、软件名称:sudo-1.6.8p12.tar.gz
     安装路径:/usr/local
     安装过程:
     tar xzf sudo-1.6.8p12.tar.gz
     cd sudo-1.6.8p12
     ./configure
     make
     make install

 16、软件名称:rsync-2.6.8.tar.gz
     安装路径:/usr/softtest/rsync-2.6.8
     安装过程:
     tar xzf rsync-2.6.8.tar.gz
     cd rsync-2.6.8
     ./configure --prefix=/usr/softtest/rsync-2.6.8
     make
     make install
 17、软件名称:openssh-4.3p2.tar.gz
     安装路径: /usr
     安装过程:
     tar xzf openssh-4.3p2.tar.gz
     cd openssh-4.3p2
     ./configure --prefix=/usr --with-ssl-dir=/usr/local/ssl --with-zlib=/usr/local \
     --with-md5-passwords --with-privsep-path=/var/empty --with-privsep-user=sshd \
     --sysconfdir=/etc/ssh
     make
     make install
    
四、开发提示:
  1、由于测试机本身就有一些程序安装,所以有的软件没有安装在标准目录/usr/local
  2、为了测试apache、mysql、php才装了两个版本,并不是一次要装两个版本
  3、apache 2.0.54用openssl-0.9.8b会出现下面错误,所以得用openssl-0.9.7i
     error: `PEM_F_DEF_CALLBACK' undeclared (first use in this function)
  4、freetype-2.1.x以上版本必须得用make-3.8以上版本才能正确编译
  5、如果在开发的过程中,遇到什么问题可以和我联系共同研究
  评论这张
 
阅读(850)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018