Обсуждение: Problem compiling PostGIS 1.1.4

Поиск
Список
Период
Сортировка

Problem compiling PostGIS 1.1.4

От
Ludwig Kniprath
Дата:
PostgreSQL 8.1 on ubuntu-linux 6.06  (kernel 2.6.15-27-686):

Compiled proj-4.4.9 and geos-2.2.3 without problems.

Output from postgis-./configure-Command:

  SUMMARY
 -------------------------------------------------------

 HOST_OS: linux-gnu

   PGSQL: /usr/bin/pg_config
    GEOS: /usr/local/bin/geos-config (with C-API)
          (ldflags: -L/usr/local/lib)
    PROJ: prefix=/usr/local libdir=/usr/local/lib
   ICONV: 1

 PORTNAME: linux
   PREFIX: /usr
  EPREFIX: ${prefix}
      DOC: /usr/share/doc/postgresql-doc-8.1/contrib
     DATA: /usr/share/postgresql/8.1/contrib
      MAN: /usr/share/postgresql/8.1/man
      BIN: /usr/lib/postgresql/8.1/bin
      EXT: /usr/lib/postgresql/8.1/lib (\$$libdir)
 -------------------------------------------------------


make check with problems:
"...ERROR:  function postgis_lib_version() does not exist
HINT:  No function matches the given name and argument types. You may
need to add explicit type casts...."


Running lwpostgis.sql on my database results in multiple errors:
"BEGIN
psql:lwpostgis.sql:39: NOTICE:  type "histogram2d" is not yet defined
DETAIL:  Creating a shell type definition.
psql:lwpostgis.sql:39: ERROR:  could not load library
"/usr/lib/postgresql/8.1/lib/liblwgeom.so.1.1": libgeos_c.so.1: cannot
open  shared object file: No such file or directory
..."


What went wrong?


Re: Problem compiling PostGIS 1.1.4

От
Devrim GUNDUZ
Дата:
Hello,

On Tue, 2006-10-10 at 11:30 +0200, Ludwig Kniprath wrote:
> "/usr/lib/postgresql/8.1/lib/liblwgeom.so.1.1": libgeos_c.so.1: cannot
> open  shared object file: No such file or directory

Did you run make install agains geos? Is the path that libgeos_c.so.1
lives in ldconfig path?

Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/


Вложения

Re: Problem compiling PostGIS 1.1.4

От
Ludwig Kniprath
Дата:
Devrim GUNDUZ schrieb:
> Hello,
>
> On Tue, 2006-10-10 at 11:30 +0200, Ludwig Kniprath wrote:
>
>> "/usr/lib/postgresql/8.1/lib/liblwgeom.so.1.1": libgeos_c.so.1: cannot
>> open  shared object file: No such file or directory
>>
>
> Did you run make install agains geos? Is the path that libgeos_c.so.1
> lives in ldconfig path?
>
> Regards,
>
Hi Devrim,
I did run make against geos, but ldconfig afterwards had no entries for
libgeos_c.so.l. So I did it again, but read the geos-Install-document
more carefully:

"Linux: Make sure that /usr/local/lib is added to /etc/ld.so.conf
       Make sure that you run /sbin/ldconfig afterwards"

Afterwards the PostGIS-compilation and installation run without problems.

Thanks

Ludwig