Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing iRedmail on FreeBSD 14 #260

Open
angelotheman opened this issue Aug 18, 2024 · 7 comments
Open

Installing iRedmail on FreeBSD 14 #260

angelotheman opened this issue Aug 18, 2024 · 7 comments

Comments

@angelotheman
Copy link

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

@iredmail
Copy link
Owner

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

Grab FreeBSD kernel source first, then install again.

@angelotheman
Copy link
Author

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

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

Thanks.

@angelotheman
Copy link
Author

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.

@githonk
Copy link

githonk commented Aug 22, 2024

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.

@angelotheman
Copy link
Author

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

@githonk
Copy link

githonk commented Sep 9, 2024

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!

@iredmail
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants