FreeBSD下安装openfire

一】Ports介绍    

FreeBSD下使用两个安装器,一个是ports模式,另外一个则是pkg安装模式。简单的来讲,一个port就是一个被移植到了FreeBSD上的软件。所有软件的集合,加上FreeBSD处理这些软件的各种工具,就是ports。而pkg的安装,只是将二进制形式的代码压缩包进行解压后安装,并无源码,是特定编译好的程序。使用Ports系统安装软件注意事项:

1、ports是带有源代码的,因此针对不同场合和环境的编译选项,一个ports一般以目录的形式存在。

2、每个port由以下几部分组成:makefire,distinfo,files,pkg-comment,pkg-desc,pkg-list

3、ports的安装命令:
(1)切换到ports目录下:  cd /usr/ports
(2)查询ports中是否含有openfire这个软件: make search name=openfire。如果只想显示所在的路径和软件名称,则可以用:make quicksearch name=openfire:whereis openfire的功能。
(3)安装:make install clean

(4)卸载:make deinstall clean

二】使用ports安装openfire
   配置 ports 源,更改下载的镜像文件的下载地址:ee /etc/make.conf
   MASTER_SITE_BACKUP?=\
   ftp://ftp.cn.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
   ftp://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
   ftp://ftp.jp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/
   MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}

使用openfire安装ports的过程中,可能会遇到freebsd error:freebsd python headers not found。这是由于python没有编译的原因,首先要找到python,通过编译python生成python.c所使用的库文件。使用方式如下:

whereis python27

openjdk是java的运行必备的东西,在安装openfire时会出现需要安装openjdk,apache-ant等功能,但最终的编译方式,都是由python去编译的,如果python没有安装成功那么openfire也就安装失败了。安装时发生的异常如下所示:
checking for headers required to compile python extensions... not found
configure: error: Python headers not found
===>  Script "configure" failed unexpectedly.
Please run the gnomelogalyzer, available from
"http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the
problem and suggest a solution. If - and only if - the gnomelogalyzer cannot
solve the problem, report the build failure to the FreeBSD GNOME team at
gnome@FreeBSD.org, and attach (a)
"/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.10.8/c onfig.log",
(b) the output of the failed make command, and (c) the gnomelogalyzer output.
Also, it might be a good idea to provide an overview of all packages installed
on your system (i.e. an `ls /var/db/pkg`). Put your attachment up on any
website, copy-and-paste into http://freebsd-gnome.pastebin.com, or use
send-pr(1) with the attachment. Try to avoid sending any attachments to the
mailing list (gnome@FreeBSD.org), because attachments sent to FreeBSD mailing
lists are usually discarded by the mailing list software.
*** [do-configure] Error code 1

最终我查找官网,列出了大部分可以使用的make参数,卸载重装。全部删除,包括/usr/ports/distfiles下的源码包

cd /usr/ports/editors/joe/

make distclean

删除软件

make deinstall

连同依赖一起删除

make deinstall-depends

重新安装

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值