On Dec 8, 2013, at 4:28 pm, Hanspeter Niederstrasser <f...@snaggledworks.com> 
wrote:
> On 12/8/2013 12:51 AM, Mark D. McKean wrote:
>> And today's build failure is brought to you by the letters P-H-P...
>> 
>> php5-5.4.4-2.4 fails to build on 10.9 with the following error:
>> 
>> ==
>> checking for pg_config... not found
>> configure: error: Cannot find libpq.so. Please specify correct PostgreSQL 
>> installation path
>> ### execution of /tmp/fink.bw3sU failed, exit code 1
>> ### execution of /tmp/fink.9Qlze failed, exit code 1
> 
> Verify that you have the files /sw/bin/pg_config and 
> /sw/opt/postgresql-9.1/bin/pg_config
> 
> If they're missing, reinstall the package postgresql91-dev.

/sw/bin/pg_config exists as a symlink to /sw/opt/postgresql-9.1/bin/pg_config, 
which is present. Permissions for both are 755, owned by root/admin, at every 
step of the path (except for /sw, which is also 755 but is owned by 
root/wheel), so the inability to find them shouldn't be due to bad permissions.

Following the implication that something may be wrong with my postgresql 
installation, I tried reinstalling postgresql91-dev. When I then tried to build 
php5 again, I got the same error.

I tried rebuilding postgresql91-dev. Again, same error.

I finally tried purging postgresql91, postgresql91-dev, and 
postgresql91-shlibs, and deleted the debs and tarball. Then I installed php5 
without separately reinstalling postgresql91, to force fink to redownload the 
tarball and rebuild the debs from scratch as part of the php5 build to fill the 
dependency. And yet again, still the exact same error.

I verified after each time that I tried building php5 that /sw/bin/pg_config 
existed as a symlink to an existent /sw/opt/postgresql-9.1/bin/pg_config.

The next step in this progression, I suppose, would be to purge all of the 
dependencies of postgresql91 et al. and rebuild them from scratch, possibly 
recursively for all of the dependencies' dependencies, but now we're getting to 
a level that surely would invoke diminishing returns--the fact that 
postgresql91 et al. build without errors suggests to me that their dependencies 
are not likely to be at fault.

I have verified that I do not have another installation of postgresql elsewhere 
on my system that might cause confusion. The closest I come to that is fink 
installations of mysql and sqlite, but both of those are listed as dependencies 
for php5 as well, so I wouldn't expect them to interfere with finding 
postgresql.

One odd tangential thing I noticed during the rebuild from scratch is that 
postgresql91 needed system-openssl-dev to build and so fink removed 
openssl100-dev, but php5 needed openssl100-dev to build and so fink removed 
system-openssl-dev. I'm not suggesting that this is a possible cause of my 
problem, but I thought it was interesting that one package has a dependency 
that conflicts with a dependency of a different dependency of the first 
package. They're listed as compile-time dependencies only in both cases, so it 
certainly shouldn't affect either package running as needed.

So, what's the next suggestion for me to try? I'm out of ideas.

Mark D. McKean
qpa...@quantumpanda.com


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to