[postgis-users] Trouble building 2.1 SVN

Stephen Woodbridge woodbri at swoodbridge.com
Sun Nov 18 14:30:08 PST 2012


Well the right way is to rebuild gdal and spacify the full path to those 
libs.

If you want a quick hack try this:

# find the full path with
locate external/lib

Hack gdal-config with:

sudo vi `which gdal-config`

And change all references to "external/lib" to the full path.

I haven't tried this, but it might work. If not, rebuild gdal correctly 
with the full path.

-Steve W

On 11/18/2012 4:51 PM, Rhys A.D. Stewart wrote:
> Greetings,
>
> it is indeed there. Here is the output:
> ________________
> -L/usr/lib64 -lgeos_c -lexpat -lxerces-c -lpthread -lNCSEcw -lNCSEcwC
> -lNCSCnet -lNCSUtil -ljasper -L/usr/lib -lnetcdf -lhdf5 -lgif -ljpeg
> -Lexternal/lib -lgeotiff -Lexternal/lib -ltiff -lpng
> -L/usr/lib64/postgresql-9.2/lib64 -lpq -lz -L/usr/ -L/usr//lib -lm -lrt
> -ldl -lspatialite
> ---------------------------
>
> Still not sure how to rectify this problem though.
>
>
> Thanks,
>
> Rhys
>
>
> On Sun, Nov 18, 2012 at 3:11 PM, Bborie Park <bkpark at ucdavis.edu
> <mailto:bkpark at ucdavis.edu>> wrote:
>
>     It looks like something is up with your GDAL build/setup.  Check your
>     output from:
>
>     gdal-config --dep-libs
>
>     I'm expecting the "external/lib" to be found in the output.
>
>     -bborie
>
>     On Sun, Nov 18, 2012 at 8:39 AM, Rhys A.D. Stewart
>     <rhys.stewart at gmail.com <mailto:rhys.stewart at gmail.com>> wrote:
>      > Greetings all,
>      >
>      > Trying to build postgis 2.1 svn but running into some issues. The
>      > compilation bugs out with:
>      > _____________________________
>      > ../../libtool: line 4992: cd: external/lib: No such file or directory
>      > libtool: link: cannot determine absolute directory name of
>     `external/lib'
>      > make[2]: *** [raster2pgsql] Error 1
>      > make[2]: Leaving directory
>      >
>     `/var/tmp/portage/dev-db/postgis-2.1.0/work/postgis-2.1.0SVN/raster/loader'
>      > make[1]: *** [rtloader] Error 2
>      > make[1]: Leaving directory
>      > `/var/tmp/portage/dev-db/postgis-2.1.0/work/postgis-2.1.0SVN/raster'
>      > make: *** [all] Error 1
>      > -------------------------------------------
>      >
>      > Not sure what to make of it. I've attached the entire build log and
>      > environment file. Am running gentoo linux. Building it fails
>     using potage
>      > (gentoo's package system) with a custom ebuild and fails if i try
>     to build
>      > it  'by hand'.
>      >
>      > Thanks,
>      >
>      >
>      > Rhys
>      >
>      > _______________________________________________
>      > postgis-users mailing list
>      > postgis-users at lists.osgeo.org <mailto:postgis-users at lists.osgeo.org>
>      > http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
>      >
>
>
>
>     --
>     Bborie Park
>     Programmer
>     Center for Vectorborne Diseases
>     UC Davis
>     530-752-8380 <tel:530-752-8380>
>     bkpark at ucdavis.edu <mailto:bkpark at ucdavis.edu>
>     _______________________________________________
>     postgis-users mailing list
>     postgis-users at lists.osgeo.org <mailto:postgis-users at lists.osgeo.org>
>     http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
>
>
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
>



More information about the postgis-users mailing list