1

Topic: iRedMail 0.8.0 install on FreeBSD 9.0-RELEASE

I'm trying install iRedMail 0.8.0 and the message appear:
Fetching  all distfiles  for roundcube-0.7.2,1 and dependencies
Unknown extension sqlite for PHP 5.
*** Error code 1
Stop  in /usr/port/mail/roundcube.

What should I do?

----

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

2

Re: iRedMail 0.8.0 install on FreeBSD 9.0-RELEASE

Could you please paste context log before and after this line?

Also, show me file /var/db/ports/roundcube/options. After you copied it, please try below command and paste /var/db/ports/roundcube/options again.

# cd /usr/ports/mail/roundcube
# make config

3

Re: iRedMail 0.8.0 install on FreeBSD 9.0-RELEASE

Sure..
Before:
# cat /var/db/ports/roundcube/options
WITH_MYSQL=true
WITHOUT_PGSQL=true
WITH_SQLITE=true
WITH_SSL=true
WITH_LDAP=true
WITH_PSPELL=true
WITHOUT_NSC=true

After:
# cat /var/db/ports/roundcube/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for roundcube-0.7.2,1
_OPTIONS_READ=roundcube-0.7.2,1
WITH_MYSQL=true
WITHOUT_PGSQL=true
WITH_SQLITE=true
WITH_SSL=true
WITH_LDAP=true
WITH_PSPELL=true
WITHOUT_NSC=true

4

Re: iRedMail 0.8.0 install on FreeBSD 9.0-RELEASE

No idea yet, i will test it later and let you know the result.
Sorry about this trouble.

5

Re: iRedMail 0.8.0 install on FreeBSD 9.0-RELEASE

No problem,
Talking to a developer of ports, he told me that the directory php5-sqlite was swapped places ...

Would not it be?

6

Re: iRedMail 0.8.0 install on FreeBSD 9.0-RELEASE

perlporter wrote:

Talking to a developer of ports, he told me that the directory php5-sqlite was swapped places

That makes sense. I will test it later.

Personally, i prefer OpenBSD ports tree and NetBSD pkgsrc, because we have a stable branch and binary packages. But FreeBSD ports tree is always changed, and no proper binary packages available. (i know there're binary packages, but they're not compiled with proper options.)

7

Re: iRedMail 0.8.0 install on FreeBSD 9.0-RELEASE

ZhangHuangbin wrote:
perlporter wrote:

Talking to a developer of ports, he told me that the directory php5-sqlite was swapped places

That makes sense. I will test it later.

Personally, i prefer OpenBSD ports tree and NetBSD pkgsrc, because we have a stable branch and binary packages. But FreeBSD ports tree is always changed, and no proper binary packages available. (i know there're binary packages, but they're not compiled with proper options.)

Hi Zhang,

Same problem here.

PHP 5.3 is now in /usr/ports/lang/php53
PHP 5.4 is now  /usr/ports/lang/php5

and

/usr/ports/databases/php53-sqlite to PHP 5.3
/usr/ports/databases/php53-sqlite3 to PHP 5.3
/usr/ports/databases/php5-sqlite3 to PHP 5.4

8

Re: iRedMail 0.8.0 install on FreeBSD 9.0-RELEASE

Well, it's a known bug in FreeBSD ports tree. someone reported here:
http://www.freebsd.org/cgi/query-pr.cgi?pr=168005

To fix it in iRedMail, please set 'WITHOUT_SQLITE=true' in iRedMail-0.8.0/functions/packages_freebsd.sh:

# Roundcube.
    cat > /var/db/ports/roundcube/options <<EOF
...
WITHOUT_SQLITE=true
...
EOF

Then re-execute "bash iRedMail.sh", works for me.

Since we don't use SQLite in iRedMail, this fix is considered as a final solution, it won't impact any mail services.

9

Re: iRedMail 0.8.0 install on FreeBSD 9.0-RELEASE

Hi Zhang,

I'm trying this solution...

Thanks..