[postgis-users] Unable to Make PostGIS 2.0 - file not found

Bborie Park bkpark at ucdavis.edu
Wed Dec 14 09:00:58 PST 2011


On 12/14/2011 01:11 AM, Blair Deaver wrote:
> Hi,
>
> I am struggling to get the latest trunk of PostGIS to install on a
> fresh Mac running Lion. I did install PostGIS 1.5.3-2 for Postgres 9.1
> from [KyngChaos Mac OSX Installers][1]. This setup worked fine for me
> and I was able to setup spatial databases against a PostGreSQL 9.1
> database instance. But I realized I need the new GeoJSON support in
> the PostGIS 2.0 trunk. I went ahead and downloaded the latest source
> code(revision 8401) and compiled with the JSON optional argument
> (downloaded JSON-C libraries):
>
> sudo ./configure --with-gui --with-raster --with-jsondir=/usr/local/
>
> The compile works successfully. My issue is when issuing the make
> command. It appears that the make command is looking for a
> /usr/bin/postgres/ directory on my system which does not exist:
>
> ld: file not found: **/usr/bin/postgres**
> collect2: ld returned 1 exit status
> ld: file not found: /usr/bin/postgres
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/tmp//cc82cOrG.out (No such file or
>   directory)
> make[1]: *** [postgis-2.0.so] Error 1
> make: *** [all] Error 1
>
> I am thus unable to install PostGIS 2.0 on my system. Anyone have any
> ideas what specific files (libraries, etc) the PostGIS 2.0 install is
> looking for under /usr/bin/postgres?

Blair

The error is due to make not finding the postgres binary in /usr/bin. 
Is PostgreSQL installed?  Did the ./configure step find pg_config?  You 
may need to specify --with-pgconfig=PATH_TO_PGCONFIG

-bborie

-- 
Bborie Park
Programmer
Center for Vectorborne Diseases
UC Davis
530-752-8380
bkpark at ucdavis.edu



More information about the postgis-users mailing list