| FreeBSD handbook中文版 4 安装应用程序:Packages 和Ports |
 |
作者: 来源: 日期:2007-6-14 10:27:34 点击次数: |
|
... ===> 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 # 就这么简单。你现在已经把xchat 从你的系统中删除掉了。如果你想再重新安装它的话, 上一篇:FreeBSD handbook中文版 3 Unix 基础 下一篇:FreeBSD handbook中文版 5 X Window 系统 |
|
|
 |
| 北京总部: 4006-505-808 |
| 天 津 部: 4006-505-808 |
| 上 海 部: 4006-505-808 |
| 深 圳 部: 4006-505-808 |
| 广 州 部: 4006-505-808 |
| 重 庆 部: 4006-505-808 |
| 南 京 部: 4006-505-808 |
| 其它地区: 4006-505-808 | |
|
 |
|