iRedMail icon indicating copy to clipboard operation
iRedMail copied to clipboard

Installing iRedmail on FreeBSD 14

Open angelotheman opened this issue 1 year ago • 7 comments
trafficstars

I haven't been able to install the iRedMail server (1.7.1) to my FreeBSD system.

It always ends up giving me this error

===> Fetching all distfiles required by py311-pluggy0-0.13.1_1 for building
===>   py311-wcwidth-0.2.8 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by py311-wcwidth-0.2.8 for building
===>  lsof-4.99.3_2,8 requires kernel sources.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/lsof
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-Jinja2
<< ERROR >> Failed in downloading package(s), please fix it manually and then relaunch iRedMail installer.

at the tail end of the message. I haven't been able to fix

angelotheman avatar Aug 18 '24 12:08 angelotheman

===> lsof-4.99.3_2,8 requires kernel sources.

Grab FreeBSD kernel source first, then install again.

iredmail avatar Aug 18 '24 13:08 iredmail

I'm sorry, but how do I do that?

If a practical step is given, I would really love it.

Thanks.

angelotheman avatar Aug 18 '24 14:08 angelotheman

Hello,

I still got this error after figuring out how to grab the kernel source

=> Attempting to fetch https://files.pythonhosted.org/packages/source/w/wcwidth/wcwidth-0.2.8.tar.gz
wcwidth-0.2.8.tar.gz                                    60 kB  143 MBps    00s
===> Fetching all distfiles required by py311-wcwidth-0.2.8 for building
===>  lsof-4.99.3_2,8 requires kernel sources.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/lsof
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-Jinja2
<< ERROR >> Failed in downloading package(s), please fix it manually and then relaunch iRedMail installer.

angelotheman avatar Aug 18 '24 15:08 angelotheman

I had exactly the same issue and decided to reinstall and select the system source tree "src" during the selection of which system components to install. The install script worked after that.

githonk avatar Aug 22 '24 17:08 githonk

I don't really understand. Could you assist me with the commands you used and in what directory

angelotheman avatar Aug 22 '24 18:08 angelotheman

In the iRedMail Installation Tutorial for FreeBSD there is a warning that "iRedMail is designed to be deployed on a FRESH server system, which means your server does NOT have mail related components installed". They state twice that you need "a FRESH, minimal, working FreeBSD system, no additional ports or binary packages were installed.": https://docs.iredmail.org/install.iredmail.on.freebsd.html#system-requirements

That being said, it was my fault to assume that a minimal installation of FreeBSD would do. On my first try I did not include the system source tree "src" during the selection which components to install (2.5.3 Selecting Components to Install: https://docs.freebsd.org/en/books/handbook/bsdinstall/#using-bsdinstall).

However I completely reinstalled FreeBSD with the optional system component "System source tree" which includes the source code for FreeBSD and is required for the iRedMail installer to be able to build everything.

Hope this makes it clearer. Good luck!

githonk avatar Sep 09 '24 14:09 githonk

Installing packages via ports tree didn't need FreeBSD source tree before, but not sure which package port requires lsof which requires source tree... I still didn't figure out which package port relies on lsof yet.

iredmail avatar Sep 10 '24 07:09 iredmail