1 (edited by jasonwoodland 2017-02-06 11:21:38)

Topic: Problem installing iRedMail on FreeBSD 11 [SOLVED]

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: FreeBSD 11.0-RELEASE-p1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

I just set up a fresh installation of FreeBSD 11 zfs with digital ocean. The first thing I did on the server was follow the instructions here: http://www.iredmail.org/docs/install.ir … eebsd.html

However, after letting iRedMail.sh compile packages, I see errors like:
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.

After installing the failed port manually, I'd run iRedMail.sh again and it would continue to the next package to install. I did this for several packages, but now I've gotten to a point where that won't work:
---
===>   mysql57-client5.7.16 depends on package: perl5>=5.24<5.25 - not found
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/mysql57-client
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.
---

I can't find a way around this and can't find anything vaguely similar on the internet. What am I doing wrong? I've successfully installed iRedMail on a debian machine in the past but never FreeBSD.

TIA for any help

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Problem installing iRedMail on FreeBSD 11 [SOLVED]

*) Which version of Perl do you have on this server?
*) Does it work if you install "/usr/ports/databases/mysql57-client" manually first, then run iRedMail installer again?

3

Re: Problem installing iRedMail on FreeBSD 11 [SOLVED]

I managed to get it working! After installing FreeBSD I immediately did the following:

pkg update
freebsd-update fetch install
pkg update upgrade
reboot

I'm not sure if each step/the order is relevant since I'm new to FreeBSD

Note, after following the steps at http://www.iredmail.org/docs/install.ir … eebsd.html
I still encountered an error like:

<< ERROR >> security/amavisd-new: Port was not successfully installed (stopped in archivers/arj)

so I did:

cd /usr/ports/security/amavisd-new && make install

then I re-ran the iRedMail.sh and got:

<< ERROR >> security/amavisd-new: Port was not successfully installed:
===>  Installing for amavisd-new-2.11.0_1,1
===>  Checking if amavisd-new already installed
===>   amavisd-new-2.11.0_1,1  is already installed

so then I did:

setenv FORCE_PKG_REGISTER

Then I again, re-ran iRedMail.sh and it worked.

4

Re: Problem installing iRedMail on FreeBSD 11 [SOLVED]

jasonwoodland wrote:

<< ERROR >> security/amavisd-new: Port was not successfully installed (stopped in archivers/arj)

we have a problem to install port "archivers/arj" by iRedMail script, but install it manually works just fine.