Le 16 juil. 2014 à 13:39, Jim Reid a écrit : > > On 16 Jul 2014, at 08:10, Viktor Dukhovni wrote: > >> That explains it, I'm on 10.9.4, and there is no libpcre in /usr/lib. > > Strange. My 10.9.4 boxes have libpcre in /usr/lib. I'm fairly sure Apple put > them there because I certainly didn't install them. If I had, they'd be in > /usr/local/lib and I'd have the source tarball somewhere. > > I suspect libprce was added to the base OS when the Xcode developer tools got > installed. The dates of these library files are the same as those for the > compilers and whatnot.
Unless I'm wrong, those libpcre*.dylib always came with the OS. Otherwise, how could the postfix binaries shipped by Apple sucessfully run? ;-) The problem is, they have forgotten to package the related headers (as well as pcre-config and the files in pkgconfig) with Xcode or the command line tools. IIRC, that began with 10.7, and is still the case with 10.9. The "cure" is to download project http://www.opensource.apple.com/tarballs/pcre/pcre-6.tar.gz (for 10.7.x) or http://www.opensource.apple.com/tarballs/pcre/pcre-7.tar.gz (for 10.8.x - 10.9.x), and to compile the project with the provided Makefile. The files generated in /tmp/pcre/Release/usr/local may then be copied into /usr/local (for the sake of completeness, those generated in /tmp/pcre/Release/usr/lib/pkgconfig may be copied into /usr/lib/pkgconfig as well). Those additional files should be 100% compliant with the shipped libraries (this is at least my own experience) and allow postfix to happily compile. HTH, Axel