3.2. 获取 FreeBSD 软件包的方法

Caudium 1.0 和 Pike 7.0 包含在官方的 FreeBSD ports 中。在 FreeBSD 4.7 的 CD-ROM 中也有二进制软件包提供。

Note

Caudium 1.2 和 Pike 7.2 可以从 ports tarball 获取,地址是 ftp://ftp.oav.net/pkg_freebsd/ports.tar.gz。 如果您从这个站点获取最新的 ports,请使用以下命令


$ cd /tmp
$ fetch ftp://ftp.oav.net/pkg_freebsd/ports.tar.gz
Receiving ports.tar.gz (32468 bytes): 100%
32468 bytes transferred in 0.6 seconds (53.87 kBps)
$ su -
# cd /usr/
# tar xzf /tmp/ports.tar.gz
      

另外请注意,由于 Caudium 和 Pike 是最近才添加到 FreeBSD port tree 中的,您必须拥有最新的 port tree。 请参阅 FreeBSD 手册 https://freebsd.ac.cn/handbook/cvsup.html 关于 cvsup 的处理。

以 root 用户身份,进入/usr/ports/www/caudium10安装当前的稳定版本,/usr/ports/www/caudium12安装下一个稳定版本,处于候选发布 (Release Candidate) 流程中,或者/usr/ports/www/caudium-dev安装当前的开发者版本。 该脚本将自动获取并安装 Pike,尝试检测您已安装的库,并编译 Caudium 和 Pike 所需的所有必要库。

以下是当前 port 支持的 Pike / Caudium 选项

有些选项仅与 Pike 相关,例如 GNOME / Mesa 选项,这些选项对于 Caudium 来说不重要,但为了 Pike 支持而存在。

一个关于如何在 FreeBSD 上安装 Caudium 的小例子

# cd /usr/ports/www/caudium12
# make WITH_MOST=yes WITH_MYSQL=yes WITH_OPTIMIZED_CFLAGS=yes install clean
===>  Extracting for caudium-1.2.6
>> Checksum OK for caudium-1.2.6.tar.gz.
===>   caudium-1.2.6 depends on executable: pike - found
===>   caudium-1.2.6 depends on executable: gmake - found
===>   caudium-1.2.6 depends on shared library: sablot.67 - found
[...] 
===>   Generating temporary packing list
***************************************************************
  If this is the first installation of Caudium, please go the 
  caudium's directory and execute the server/install script
  to finish the Caudium installation.

  If your are upgrading, just start caudium as usual.

  NOTE: there is an automatic starting script in etc/rc.d/
*************************************************************** 
===>   Registering installation for caudium-1.2.6
===>  SECURITY NOTE: 
      This port has installed the following startup scripts which may cause
      network services to be started at boot time.
/usr/local/etc/rc.d/caudium.sh.sample

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage: 
http://caudium.net/
===>  Cleaning for libiconv-1.7_5
===>  Cleaning for gdbm-1.8.0
===>  Cleaning for mird-1.0.7
===>  Cleaning for mysql-client-3.23.49
===>  Cleaning for autoconf-2.53
===>  Cleaning for autoconf213-2.13.000227_1
===>  Cleaning for automake14-1.4.5
===>  Cleaning for bison-1.35_1
===>  Cleaning for gettext-0.11.1_3
===>  Cleaning for gmake-3.79.1_1
===>  Cleaning for libtool-1.3.4_3
===>  Cleaning for m4-1.4_1
===>  Cleaning for nasm-0.98,1
===>  Cleaning for jpeg-6b_1
===>  Cleaning for tiff-3.5.7
===>  Cleaning for pexts-20020121
===>  Cleaning for pike72cvs-7.2.356_5
===>  Cleaning for libgmp-4.0.1
===>  Cleaning for freetype-1.3.1_2
===>  Cleaning for freetype2-2.0.9
===>  Cleaning for libmcrypt-2.5.0
===>  Cleaning for mhash-0.8.14
===>  Cleaning for expat-1.95.2
===>  Cleaning for Sablot-0.81_1
===>  Cleaning for caudium-1.2.6
#
     
现在,如果您需要为 Caudium 安装 PHP4 支持,只需进入/usr/ports/www/caudium_php4并执行 make install clean 命令。