iRedMail
iRedMail copied to clipboard
Installing iRedmail on FreeBSD 14
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
===> lsof-4.99.3_2,8 requires kernel sources.
Grab FreeBSD kernel source first, then install again.
I'm sorry, but how do I do that?
If a practical step is given, I would really love it.
Thanks.
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.
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.
I don't really understand. Could you assist me with the commands you used and in what directory
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!
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.