On 10 Mar 2007, at 18:54, Martin Costabel wrote: > [] >> Things are a bit different here. My pg_config points to a non- >> existent /sw/bin/pg_config-8.0: >> >> % ls -al /sw/bin/pg_config* >> lrwxr-xr-x 1 root admin 30 Nov 14 20:50 /sw/bin/pg_config -> / >> sw/etc/alternatives/pg_config >> -rwxr-xr-x 1 root admin 28540 Feb 8 11:59 /sw/bin/pg_config-8.2 >> >> % ls -al /sw/etc/alternatives/pg_config >> lrwxr-xr-x 1 root admin 21 Nov 14 21:10 /sw/etc/alternatives/ >> pg_config -> /sw/bin/pg_config-8.0 >> >> Reinstalling postgresql82-dev didn't fix it, so I tried rebuilding >> postgresql82-dev. That didn't change anything either. I could >> manually fix the symlink, but I'd rather find and fix the real >> problem. > > I think you can fix it in a less hackish way by running > > update-alternatives --config pg_config > > This should present you with a choice to get the correct alternative. > > As for the real problem, my opinion about update-alternatives has > always > been that it is an idea from hell, and it is a pity that Fink > inherited > this abomination from debian. >
Thanks to Martin and JF. My problem is fixed, after some reading of man update-alternatives, and some screwing around with it. It seems that update-alternatives was running in manual mode for pg_config. I switched it to auto, it sorted out the symlinks, and now gdal builds OK. % sudo update-alternatives --config pg_config There is only 1 program which provides pg_config (/sw/bin/pg_config-8.2). Nothing to configure. % sudo update-alternatives --display pg_config pg_config - status is manual. link currently points to /sw/bin/pg_config-8.0 /sw/bin/pg_config-8.2 - priority 82 % sudo update-alternatives --auto pg_config % sudo update-alternatives --display pg_config pg_config - status is auto. link currently points to /sw/bin/pg_config-8.2 /sw/bin/pg_config-8.2 - priority 82 % ls -al /sw/etc/alternatives/pg_config lrwxr-xr-x 1 root admin 21 Mar 10 21:40 /sw/etc/alternatives/ pg_config -> /sw/bin/pg_config-8.2 Kevin Horton Ottawa, Canada ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users