On 27/11/2013 15:10, Keith Steensma wrote: > I trying to compile the Postfix (version 2.9.6) source code on a Debian > "stable" (weezy) system. I have all the pieces like gcc, perl, and the > other dependencies that are necessary. But I'm stuck with (at least) > one dependency that I am missing. > > After completing the 'make tidy', I can do a 'make' which runs for some > time but then it stops with a error that says - > > "cannot find -lprce" > > Here's some of the last lines that are displayed. I hape this will give > someone the compete picture. > > gcc -Wmissing-prototypes -Wformat -fPIC -g -O -I. -DLINUX3 -c dict_pcre.c > gcc -shared -Wl,-soname,dict_pcre.so -o dict_pcre.so dict_pcre.o -lpcre > -L. -lutil > /usr/bin/ld: cannot find -lpcre > collect2: error: ld returned 1 exit status > make: *** [dict_pcre.so] Error 1 > > I've done some research and have found the there is a Debian > "postfix-dev" and a "libghc-regex-pcre-dev". But these libraries have > not solved my error.
postfix-dev is a package that contains what is necessary to build modules that interface to Postfix, and it of course depends on postfix. Installing postfix-dev you installed postfix on your system. If you want to install also your own compiled copy, I suggest you to remove the packaged one, to avoid confusion. libghc-regex-pcre-dev is the pcre development package for Haskel. You need libpcre3-dev. In general, you can install the dependencies required to build a Debian package with `apt-get build-dep <package name>`. However, the fact that the postfix build finds the pcre-config command as well as the pcre.h include file suggests that libpcre3-dev is installed, and since it depends on libpcre3, which provides the libpcre.so library, something is wrong. Postfix 2.9.6 is packaged for debian stable. Why do you want to compile your own? Cheers, Daniele
