1

Topic: error installing in freebsd

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Linux/BSD distribution name and version: Freebsd 9.2
- Related log if you're reporting an issue:
====
Hi all after trying for several days to install,every time i get a little bit further.
After solving probs with mysql and apache now i have the lates error and don't know how to go fom here.
Is htere anyone who can help me to solve this?
Could give you acces by teamviewer if that's easier.
This is the latest error.

libtool: link: ( cd ".libs" && rm -f "libsql.la" && ln -s "../libsql.la" "libsql.la" )
1 error
*** [all-recursive] Error code 1
1 error
*** [all] Error code 2
1 error
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/security/cyrus-sasl2.
*** [lib-depends] Error code 1

Stop in /usr/ports/mail/postfix27.
*** [/usr/ports/mail/postfix27/work/.configure_done.postfix._usr_local] Error code 1

Stop in /usr/ports/mail/postfix27.
< ERROR > Port was not success installed, please fix it manually and then re-execute this script.

----

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

2

Re: error installing in freebsd

Please try this:

*) Open file functions/packages_freebsd.sh under iRedMail-0.8.6/ directory, find below line:

make install clean

*) Replace it by below one:

make DISABLE_MAKE_JOBS=yes install clean

*) Save your modification and re-execute iRedMail.sh:

# bash iRedMail.sh

3

Re: error installing in freebsd

If you can guide me please where i can find/do this?
Open file functions/packages_freebsd.sh

4

Re: error installing in freebsd

If you downloaded iRedMail-0.8.6 under /root directory, then it's /root/iRedMail-0.8.6/functions/packages_freebsd.sh.

5

Re: error installing in freebsd

Well, forget about my replies above. Please fix it this way:

1) Install port security/cyrus-sasl2 manually:

# cd /usr/ports/security/cyrus-sasl2
# make install clean

2) Re-execute iRedMail.sh as mentioned in iRedMail installation guide.

6 (edited by ikkeenjij36 2013-12-26 23:29:09)

Re: error installing in freebsd

ZhangHuangbin wrote:

Well, forget about my replies above. Please fix it this way:

1) Install port security/cyrus-sasl2 manually:

# cd /usr/ports/security/cyrus-sasl2
# make install clean

2) Re-execute iRedMail.sh as mentioned in iRedMail installation guide.

if i try that i get the same error message.


===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/security/cyrus-sasl2.
*** [install] Error code 1

Stop in /usr/ports/security/cyrus-sasl2.

Also tried your first suggestio and did hash  and got this output.

-fPIC
../sasldb/.libs/libsasldb.a(db_ndbm.o): could not read symbols: Bad value
*** [libsasldb.la] Error code 1

Stop in /usr/ports/security/cyrus-sasl2/work/cyrus-sasl-2.1.26/plugins.
*** [all-recursive] Error code 1

Stop in /usr/ports/security/cyrus-sasl2/work/cyrus-sasl-2.1.26.
*** [all] Error code 1

Stop in /usr/ports/security/cyrus-sasl2/work/cyrus-sasl-2.1.26.
*** [do-build] Error code 1

Stop in /usr/ports/security/cyrus-sasl2.
*** [lib-depends] Error code 1

Stop in /usr/ports/mail/postfix27.
*** [/usr/ports/mail/postfix27/work/.configure_done.postfix._usr_local] Error code 1

Stop in /usr/ports/mail/postfix27.
< ERROR > Port was not success installed, please fix it manually and then re-execute this script.

7

Re: error installing in freebsd

I think it's going wrong here some where?

/usr/bin/ld: ../sasldb/.libs/libsasldb.a(db_ndbm.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../sasldb/.libs/libsasldb.a(db_ndbm.o): could not read symbols: Bad value
*** [libsasldb.la] Error code 1
1 error
that is after i did:install port security/cyrus-sasl2

8

Re: error installing in freebsd

Allright
every time i have an issue like this i have to remove port by rm -r
Then portsnap fetch extract.
Then do cd and make install clean.

9

Re: error installing in freebsd

well that is solved phewww.
Thanks for your help and advice.

Last problem now is this:Installing apache22-2.2.26...pkg-static: apache22-2.2.26 conflicts with apache24-2.4.6_1 (installs files into the same place).  Problematic file: /usr/local/man/man1/dbmmanage.1.gz

Apache24-2.4.6_1 is deleted now and file or directory doesn't excist.
WHere do i go from here?

10

Re: error installing in freebsd

Well after going with clean install all goes well until this:
install  -s -o root -g wheel -m 555 /usr/ports/archivers/p7zip/work/p7zip_9.20.1/bin/Codecs/Rar29.so /Codecs/
install: /usr/ports/archivers/p7zip/work/p7zip_9.20.1/bin/Codecs/Rar29.so: No such file or directory
*** [do-install] Error code 71

Stop in /usr/ports/archivers/p7zip.
*** [install] Error code 1

Stop in /usr/ports/archivers/p7zip.
How can i resolve this.
Going to directory doesn't help cause dir doesn't excist.\Pleas help so i can install it the right way this time.
I am trying to reinstall it on clean install of freebsd

11

Re: error installing in freebsd

well after reinstalling i still get errors many times.
Latest is this one:
Installing py27-setuptools-2.0.1...pkg-static: py27-setuptools-2.0.1 conflicts with py27-distribute-0.6.35 (installs files into the same place).  Problematic file: /usr/local/lib/python2.7/site-packages/easy-install.pth.dist
*** [fake-pkg] Error code 70
Think i am giving up on it cause it doesn't seem possible for me to install iredmail.
Or someone can give me specific help on this?

12

Re: error installing in freebsd

I'm working on it, please keep tracking my modifications here:
https://bitbucket.org/zhb/iredmail/commits

13

Re: error installing in freebsd

Zhang! I want to help you and be a beta tester of iRedMail for FreeBSD.

14

Re: error installing in freebsd

Will keep it in thought when all is fixed,guess there are also some faults in the ports of freebsd?
Will give it a try later on when you give a shout it should be ok to install.

15

Re: error installing in freebsd

Dear @3m and @ikkeenjij36,

I'm working on FreeBSD support, trust me, i'm not lazy these days.

*) I got several issues, but still no clear idea what causes them. I compiled again and again to try to figure it out, but not succeed yet.

*) Got some issues with mysql-5.6, so I choose databases/mysql55-server instead of databases/mysql56-server right now, still compiling. Let's see whether it works this time.

*) OpenLDAP service cannot be started at this moment, the error message is "bus error", cannot figure it out. I will try FreeBSD 9.2 plus the latest ezjail and base jail later.

*) Still need some time to test PostgreSQL backend.

I need a faster server for testing FreeBSD. I'm testing it with my MacBook + VMware, it takes about 4 hours for one testing, you know, compiling all required ports always takes long time.

16

Re: error installing in freebsd

Hi Zhang! Unfortunately I have not located a fast server but I have time. If you need help, I at your service

17

Re: error installing in freebsd

Dear zhang,don't be scared i think you lazy smile
But u thought it was easy install,but no luck till now.
Will be waiting for you to compile further.
I like 3m to want to help where i can and don't know if my server is fast enough?
Also don't know if it's wise to do it on my private live server.
You can alway pm or mail me if i can be of any assistance,just let me know cause i'm just as eager as you to get it running on my server(freebsd).
Greetings.

18 (edited by ikkeenjij36 2013-12-29 06:58:33)

Re: error installing in freebsd

Lates error report after rebuilding my complete server os again.
Here we go:py27-setuptools-2.0.1 conflicts with installed package(s):
py27-distribute-0.6.35

Well this issue is/was resolved and was building on but after a min of 5 it stopped with this message and dont know how to resolve this.

Installing 9e-1.0... done
===> advancecomp
===>  Building for advancecomp-1.18
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /usr/ports/archivers/advancecomp/
ork/advancecomp-1.18/missing aclocal-1.14
/usr/ports/archivers/advancecomp/work/advancecomp-1.18/missing: aclocal-1.14: n
t found
WARNING: 'aclocal-1.14' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
gmake: *** [aclocal.m4] Error 127
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/archivers/advancecomp.
*** [_advancecomp.realinstall] Error code 1

19

Re: error installing in freebsd

Hi ikkeenjij36,

*) I didn't get this port error. all ports were installed without my attention, that's good.
*) With port databases/mysql55-server instead of mysql56-server, mysql is now running. Fixed one improper parameter (by commenting out 'old_passwords=1') in my.cnf moment ago. I will try mysql56-server after i got mysql55-server fully working. I'm now testing FreeBSD and ALL other Linux/BSD distributions without 'old_passwords=1' in my.cnf, have to make sure it will work on other distros. Reference if you want to know more details about this parameter: http://dev.mysql.com/doc/refman/5.6/en/ … _passwords
*) Use a new Dovecot config file (iRedMail/samples/dovecot/dovecot22.conf) for Dovecot-2.2 (mail/dovecot2) on FreeBSD. Other distros still use iRedMail/samples/dovecot/dovecot2.conf which is used for Dovecot-2.0 and 2.1. plugin "autocreate" is deprecated in Dovecot-2.2.
*) Fixed iRedAPD issue (cannot start). The root cause is we didn't create symbol links for Python programs. Below commands fixes it:

ln -sf /usr/local/bin/python2.7 /usr/local/bin/python
ln -sf /usr/local/bin/python2.7 /usr/local/bin/python2
ln -sf /usr/local/bin/pydoc2.7  /usr/local/bin/pydoc
ln -sf /usr/local/bin/2to3-2.7 /usr/local/bin/2to3
ln -sf /usr/local/bin/python2.7-config /usr/local/bin/python-config

20

Re: error installing in freebsd

Forgot to mention that i'm available on BBM (BlackBerry Messenger) if you want to contact me, just mail me to invite me to BBM.

21

Re: error installing in freebsd

FYI: Total time of compiling ports: 8686 seconds, ~144 minute(s)

Details:

export status_install_port_databases_mysql55server='DONE'  # 2047 seconds, ~34 minute(s)
export status_install_port_mail_dovecot2='DONE'  # 434 seconds, ~7 minute(s)
export status_install_port_mail_dovecot2pigeonhole='DONE'  # 92 seconds, ~1 minute(s)
export status_install_port_devel_pth='DONE'  # 41 seconds, ~0 minute(s)
export status_install_port_security_gnupg='DONE'  # 1411 seconds, ~23 minute(s)
export status_install_port_dns_p5NetDNS='DONE'  # 84 seconds, ~1 minute(s)
export status_install_port_mail_p5MailSpamAssassin='DONE'  # 281 seconds, ~4 minute(s)
export status_install_port_security_p5AuthenSASL='DONE'  # 12 seconds, ~0 minute(s)
export status_install_port_mail_altermime='DONE'  # 4 seconds, ~0 minute(s)
export status_install_port_archivers_p7zip='DONE'  # 54 seconds, ~0 minute(s)
export status_install_port_security_amavisdnew='DONE'  # 527 seconds, ~8 minute(s)
export status_install_port_devel_pcre='DONE'  # 116 seconds, ~1 minute(s)
export status_install_port_mail_postfix='DONE'  # 159 seconds, ~2 minute(s)
export status_install_port_www_apache22='DONE'  # 319 seconds, ~5 minute(s)
export status_install_port_lang_php5='DONE'  # 422 seconds, ~7 minute(s)
export status_install_port_mail_php5imap='DONE'  # 74 seconds, ~1 minute(s)
export status_install_port_archivers_php5zip='DONE'  # 50 seconds, ~0 minute(s)
export status_install_port_archivers_php5bz2='DONE'  # 17 seconds, ~0 minute(s)
export status_install_port_archivers_php5zlib='DONE'  # 18 seconds, ~0 minute(s)
export status_install_port_devel_php5gettext='DONE'  # 18 seconds, ~0 minute(s)
export status_install_port_converters_php5mbstring='DONE'  # 111 seconds, ~1 minute(s)
export status_install_port_security_php5mcrypt='DONE'  # 74 seconds, ~1 minute(s)
export status_install_port_security_php5openssl='DONE'  # 20 seconds, ~0 minute(s)
export status_install_port_www_php5session='DONE'  # 20 seconds, ~0 minute(s)
export status_install_port_textproc_php5ctype='DONE'  # 18 seconds, ~0 minute(s)
export status_install_port_security_php5hash='DONE'  # 25 seconds, ~0 minute(s)
export status_install_port_converters_php5iconv='DONE'  # 19 seconds, ~0 minute(s)
export status_install_port_textproc_php5pspell='DONE'  # 151 seconds, ~2 minute(s)
export status_install_port_textproc_php5dom='DONE'  # 36 seconds, ~0 minute(s)
export status_install_port_textproc_php5xml='DONE'  # 20 seconds, ~0 minute(s)
export status_install_port_databases_php5mysql='DONE'  # 17 seconds, ~0 minute(s)
export status_install_port_databases_php5mysqli='DONE'  # 24 seconds, ~0 minute(s)
export status_install_port_mail_policyd2='DONE'  # 62 seconds, ~1 minute(s)
export status_install_port_security_clamav='DONE'  # 207 seconds, ~3 minute(s)
export status_install_port_mail_roundcube='DONE'  # 1005 seconds, ~16 minute(s)
export status_install_port_www_mod_auth_mysql_another='DONE'  # 8 seconds, ~0 minute(s)
export status_install_port_www_awstats='DONE'  # 17 seconds, ~0 minute(s)
export status_install_port_databases_phpmyadmin='DONE'  # 272 seconds, ~4 minute(s)
export status_install_port_databases_pyMySQLdb='DONE'  # 283 seconds, ~4 minute(s)
export status_install_port_www_mod_wsgi3='DONE'  # 18 seconds, ~0 minute(s)
export status_install_port_www_webpy='DONE'  # 6 seconds, ~0 minute(s)
export status_install_port_devel_pyJinja2='DONE'  # 66 seconds, ~1 minute(s)
export status_install_port_net_pynetifaces='DONE'  # 6 seconds, ~0 minute(s)
export status_install_port_security_pyfail2ban='DONE'  # 7 seconds, ~0 minute(s)
export status_install_port_sysutils_logwatch='DONE'  # 10 seconds, ~0 minute(s)

22

Re: error installing in freebsd

Good news: MySQL backend is now fully working. I'm now testing OpenLDAP backend.

P.S. I'm using databases/mysql55-server, not mysql 5.6.

23

Re: error installing in freebsd

Congratulations and good luck!!!

24

Re: error installing in freebsd

ZhangHuangbin wrote:

Forgot to mention that i'm available on BBM (BlackBerry Messenger) if you want to contact me, just mail me to invite me to BBM.

Don't have your email to invite you on bbm
i have it on phone ass well now so maybe the other way around like you invite me?
me is ikkeenjij36-34998

25

Re: error installing in freebsd

I sent email to you with my PIN number. smile
Still not quite sure whether it's a good idea to public my BBM PIN number here, although i guess not many people use BBM here.