FreeBSD下PPPoE的设置(3)

2008-02-23 08:02:45来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折


Index: irc
B-deps: XFree86-3.3.5 bzip2-0.9.5d gettext-0.10.35 giflib-4.1.0 glib-1.2.6
gmake-3.77 gtk-1.2.6
imlib-1.9.8 jpeg-6b png-1.0.3 tiff-3.5.1
R-deps: XFree86-3.3.5 gettext-0.10.35 giflib-4.1.0 glib-1.2.6 gtk-1.2.6
imlib-1.9.8 jpeg-6b
png-1.0.3 tiff-3.5.1
你要密切注意输出内容的“Path:”行,它告诉你能在哪儿找到它。其它的信息是在安
装ports 时不需要的,在这里就不提了。
注意: 必须具有root 权限才能安装port。
4.4.2.1.从CDROM 安装ports
做这一步的前提是你有一张FreeBSD 的安装光盘。如果你没有,你可以从FreeBSD 商店
订购一张(www.freebsdmall.com)。在确信光盘已经放入光驱之后,你需要先挂上/cdrom,
才可以安装ports。开始,改变目录到你要安装的ports 所在的目录:
第8 页FreeBSD 使用手册
# cd /usr/ports/irc/xchat
一旦进入xchat 目录,你就可以看到port skeleton 文件了。下面要编译port。只需
要在命令行简单地输入make 命令。做好之后,你可以看到下面的信息:
# make
>> xchat-1.3.8.tar.bz2 doesn’t seem to exist on this system.
>> Attempting to fetch from file:/cdrom/ports/distfiles/.
===> Extracting for xchat-1.3.8
>> Checksum OK for xchat-1.3.8.tar.bz2.
===> xchat-1.3.8 depends on executable: bzip2 - found
===> xchat-1.3.8 depends on executable: gmake - found
===> xchat-1.3.8 depends on shared library: gtk12.2 - found
===> xchat-1.3.8 depends on shared library: Imlib.5 - found
===> xchat-1.3.8 depends on shared library: X11.6 - found
===> Patching for xchat-1.3.8
===> Applying FreeBSD patches for xchat-1.3.8
===> Configuring for xchat-1.3.8
...
[configure output snipped]
...
===> Building for xchat-1.3.8
...
[compilation snipped]
...
#
注意,一旦编译完成,你需要回到你的命令行。下面就安装port,在命令行输入make
install:
# make install
===> Installing for xchat-1.3.8
===> xchat-1.3.8 depends on shared library: gtk12.2 - found
===> xchat-1.3.8 depends on shared library: Imlib.5 - found
第9 页FreeBSD 使用手册
===> xchat-1.3.8 depends on shared library: X11.6 - found
...
[install routines snipped]
...
===> Generating temporary packing list
===> Installing xchat docs in /usr/X11R6/share/doc/xchat
===> Registering installation for xchat-1.3.8
#
回到命令行后,你就可以运行刚才安装的应用程序了。
注意:你也可以只运行make install,把make 和make install 两步并作一步来执行。
请记住有些ports 由于许可证的原因,不允许通过cdrom 来安装。这可能有很多原因,包
括在下载安装前需要注册,重新发布没有得到许可等等。如果你希望安装一个cdrom 上没
有的port,你可能需要在线安装。
4.4.2.2. 通过internet 安装
正如前一节所讲到的,这一节假定你已经连接到Internet 上了。如果没有的话,你只
好通过CDROM 来安装了。通过Internet 安装一个port,实际上跟你通过CDROM 安装是一样
的。两者之间唯一的不同是程序的源代码是从Internet 上而不是从CDROM 上下载。
有关的步骤是一样的:
# make install
>> xchat-1.3.8.tar.bz2 doesn’t seem to exist on this system.
>> Attempting to fetch from http://xchat.org/files/v1.3/.
Receiving xchat-1.3.8.tar.bz2 (305543 bytes): 100%
305543 bytes transferred in 2.9 seconds (102.81 Kbytes/s)
===> Extracting for xchat-1.3.8
>> Checksum OK for xchat-1.3.8.tar.bz2.
===> xchat-1.3.8 depends on executable: bzip2 - found
===> xchat-1.3.8 depends on executable: gmake - found
===> xchat-1.3.8 depends on shared library: gtk12.2 - found
===> xchat-1.3.8 depends on shared library: Imlib.5 - found
===> xchat-1.3.8 depends on shared library: X11.6 - found
第10 页FreeBSD 使用手册
===> Patching for xchat-1.3.8
===> Applying FreeBSD patches for xchat-1.3.8
===> Configuring for xchat-1.3.8
...
[configure output snipped]
...
===> Building for xchat-1.3.8
...
[compilation snipped]
...
===> Installing for xchat-1.3.8
===> xchat-1.3.8 depends on shared library: gtk12.2 - found
===> xchat-1.3.8 depends on shared library: Imlib.5 - found
===> xchat-1.3.8 depends on shared library: X11.6 - found
...
[install routines snipped]
...
===> Generating temporary packing list
===> Installing xchat docs in /usr/X11R6/share/doc/xchat
===> Registering installation for xchat-1.3.8
#
正如你所看到的,唯一的不同是那些告诉你系统是从哪儿找到port 行的。在下一节中,
你将学到如何从你的系统中删除一个port。
4.4.3. 删除已经安装的port
现在你已经知道如何安装ports 了,你大概想知道如何删除它们吧。例如,已经安装好
了一个port,不久发现安装的是一个错误的port。下面的段落将谈到这些问题。
现在我们将删除我们刚才安装的xchat。正如安装ports 时一样,第一件事情是你必须
改变port 的目录。如果你记得的话,那应该是/usr/ports/irc/xchat。你改变了目录后,
你就要准备删除xchat 了。你可以执行下面的反安装程序:
# cd /usr/ports/irc/xchat
第11 页FreeBSD 使用手册
# make deinstall
===> Deinstalling for xchat-1.3.8

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:FREEBSD中使用IPFW来过滤ICMP服务

下一篇:FreeBSD kernel 编译大法(一)