1

Тема: Проблемы с установкой Postfix2+SASL2+MySQL

Здравствуйте!
Возникла такая вот проблема при установке Postfix из исходников. Система Red Hat EL 5.3, Postfix версии 2.6.2, библиотеки SASL версии 2.1.22, версия MySQL 5.1.22, SELinux отключен. Пересоздаю Makefile с такими вот опциями:
make makefiles 'CCARGS=-DHAS_MYSQL -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/mysql/include -I/usr/local/include/sasl' 'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm -L/usr/local/lib -L/usr/local/lib -lsasl2'
Когда дело доходит до выполнения make install,  в приглашении выходит ошибка:
    Warning: if you use this script to install Postfix locally,
    this script will replace existing sendmail or Postfix programs.
    Make backups if you want to be able to recover.

    Before installing files, this script prompts you for some definitions.
    Most definitions will be remembered, so you have to specify them
    only once. All definitions should have a reasonable default value.
bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory


после того, как диалог просит указать директорию для конфигурационных файлов, выходят такие вот ошибки:
Please specify the prefix for installed file names. Specify this ONLY
if you are building ready-to-install packages for distribution to other
machines.
install_root: [/]

Please specify a directory for scratch files while installing Postfix. You
must have write permission in this directory.
tempdir: [/usr/local/postfix-2.6.2] /tmp   

Please specify the final destination directory for installed Postfix
configuration files.
config_directory: [] /etc/postfix
bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory....
.....и так еще много строчек]

И в конце выполнения make install выходит эта же ошибка. Вот последние строчки выполнения make install:
bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
make: *** [install] Ошибка 1


Понятное дело, что не может найти данный файл libmysqlclient.so.16. Но почему? Ведь он же существует. Путь к нему такой /usr/local/mysql/lib/libmysqllclient.so.16. Вот у меня возник вопрос, что и где необходимо указать, чтобы скрипт postconf видел этот файл? Большая просьба если кто нибудь сталкивался с этой проблемой помогите пожалуйста!
  Заранее спасибо!

2

Re: Проблемы с установкой Postfix2+SASL2+MySQL

пути задаются в make файле. Но мне кажется, что проще было бы установить postfix через штатный установщик. Не пойму смысла - использовать платную лицензионную систему и что-то там "привинчивать" из исходников.

3

Re: Проблемы с установкой Postfix2+SASL2+MySQL

а чем rpm'ы неугодили?