1

Topic: FreeBSD iRedAPD Issue and Fix

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: FreeBSD 9.1-RELEASE-p6
- Related log if you're reporting an issue:

# service iredapd start
Starting iredapd ...
/usr/local/etc/rc.d/iredapd: line 40: /usr/local/bin/python: No such file or directory

====

Hi

FreeBSD ports team announced a change for python packages. Here is the documentation (/usr/ports/UPDATING file):

20130817:
  AFFECTS: users of lang/python*
  AUTHOR: mva@FreeBSD.org

  The lang/python* ports do not install links to 2to3, idle, pydoc, python
  and other binaries anymore. Those were moved into the lang/python2 and
  lang/python3 ports respectively. This change brings us closer to the goal
  of making Python ports usable with different Python versions at the same
  time.

  If you have lang/python2* or lang/python3* installed, please also install
  the associated lang/python2 or lang/python3 port.

  1. update lang/python2* and/or lang/python3*
  2. install lang/python2 and/or lang/python3
  3. reinstall lang/python (if installed)

After install lang/python2 port. iredapd rc.d script startup fail. Here is the error output:

/usr/local/etc/rc.d/iredapd: line 40: /usr/local/bin/python: No such file or directory

How to fix:

Open /usr/local/etc/rc.d/iredapd script file. Go to 40. line and edit it.

Before: /usr/local/bin/python ${BINPATH}

After: /usr/local/bin/python2 ${BINPATH}

Have a nice day

Hasan Alp İNAN

----

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

2

Re: FreeBSD iRedAPD Issue and Fix

Fixed moment ago:
https://bitbucket.org/zhb/iredapd/commi … cca2486d99

Thanks very much for your report and fix. smile