Discussion:
Compile postfix with utf-8 support
(too old to reply)
m***@gmail.com
2015-09-30 15:47:23 UTC
Permalink
Hi everybody,

As the documentation indicates postfix will compile with utf-8 support if the ICU package is installed.

I'm on a CentOS 6.7 box and I'm trying to compile postfix 3.0.2 with utf-8 support. I have already installed libicu-devel using yum.

Postfix is not compiling with utf-8 support. I had quick look at makedefs file and found out that the presence of ICU is checked within /usr/local/lib while it should be looked for in /usr/lib64

I patched the makedefs file. But still cannot compile postfix. To provice more information, the version of the installed libicu-devel is 4.2

What am I missing or doing wrong?
Any ideas are appreciated.
m***@gmail.com
2015-10-01 06:53:11 UTC
Permalink
Post by m***@gmail.com
Hi everybody,
As the documentation indicates postfix will compile with utf-8 support if the ICU package is installed.
I'm on a CentOS 6.7 box and I'm trying to compile postfix 3.0.2 with utf-8 support. I have already installed libicu-devel using yum.
Postfix is not compiling with utf-8 support. I had quick look at makedefs file and found out that the presence of ICU is checked within /usr/local/lib while it should be looked for in /usr/lib64
I patched the makedefs file. But still cannot compile postfix. To provice more information, the version of the installed libicu-devel is 4.2
What am I missing or doing wrong?
Any ideas are appreciated.
I figured it out. As indicated in http://comments.gmane.org/gmane.mail.postfix.user/249363 postfix 3.0.2 requires newer versions of ICU.

The work around for me was to download the latest stable binary package of ICU from http://site.icu-project.org/download/55#TOC-ICU4C-Download

Then I extracted it in / which placed all header files in /usr/local/include and shared binaries in /usr/local/lib

What I had to do next was to create soft links of the new shared binaries in /usr/local/lib in /usr/lib64

find /usr/local/lib -name libicu* -type f -exec sh -c 'ln -s {} /usr/lib64/$(basename {})' \;

Alternatively I could modify state
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

But I decided to leave LD_LIBRARY_PATH untouched.

Loading...