1 最后由 arno-路人浅笑 (2015-03-26 15:17:16) 编辑

主题: 安装iredmail中途出错

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.90
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):openldap
- 使用的 Linux/BSD 发行版名称及版本号:freebsd10.1
- 与您的问题相关的日志信息:
====
===> Fetching all distfiles required by pear-1.9.4_3 for building
=> SHA256 Checksum mismatch for pear-1.9.4.tar.bz2.
===>  Giving up on fetching files: pear-1.9.4.tar.bz2
Make sure the Makefile and distinfo file (/usr/ports/devel/pear/distinfo)
are up to date.  If you are absolutely sure you want to override this
check, type "make NO_CHECKSUM=yes [other args]".
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/pear
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/pear
*** Error code 1

Stop.
make: stopped in /usr/ports/net/pear-Net_LDAP2
< ERROR > Port was not successfully installed, please fix it manually and then re-execute this script.
root@mx:/usr/home/xuaibao/iRedMail-0.9.0 #


请张工花费宝贵的时间   帮我看看   不胜感激~~~!!!

回复: 安装iredmail中途出错

然后按照 方法  make NO_CHECKSUM=yes
报错如下
root@mx:/usr/ports/devel/pear # make NO_CHECKSUM=yes
===>  Staging for pear-1.9.4_3
===>   pear-1.9.4_3 depends on file: /usr/local/include/php/main/php.h - found
===>   pear-1.9.4_3 depends on file: /usr/local/lib/php/20121212/xml.so - found
===>   Generating temporary packing list

Bootstrapping Installer...................
Bootstrapping PEAR.php............(local) ok
Bootstrapping Archive/Tar.php............(local) ok
Bootstrapping Console/Getopt.php............(local) ok

Strict Standards: Non-static method PEAR::setErrorHandling() should not be called statically in /usr/ports/devel/pear/work/pear-1.9.4/go-pear on line 693

Extracting installer..................
Using local package: PEAR.............
Warning: file_exists() expects parameter 1 to be a valid path, string given in /tmp/pear/Archive/Tar.php on line 1582

Error while opening {/tmp/pear/package2.xml} in write binary mode
sed: /usr/ports/devel/pear/work/stage/usr/local/share/pear/peclcmd.php: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/pear
root@mx:/usr/ports/devel/pear #

回复: 安装iredmail中途出错

这个是 ports tree 的问题,与 iRedMail 无关,爱莫能助。建议将安装 port 的问题反馈给 port 维护者。

回复: 安装iredmail中途出错

后来自己成功解决:
分析
pear问题是由于  依赖 php56  php56-xml 而 iredmail 执行是安装php55   php55  冲突导致的

方法:  pkg install pear    OK 后    卸载 php56    php56-xml      然后执行  bash 
OK  成功!!

留此贴   给后来者参考~~~~~
另外吐槽下    freebsd 10.1  安装 iredmail  依赖包太多了    安装大概花了 4 -5 小时     ports龟爬~~~~~