From owner-freebsd-questions@FreeBSD.ORG Mon Nov 28 13:30:25 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49F9B16A420 for ; Mon, 28 Nov 2005 13:30:25 +0000 (GMT) (envelope-from bt@ccgis.de) Received: from sm7.simplethings.de (a15160313.alturo-server.de [217.160.128.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A1F543D66 for ; Mon, 28 Nov 2005 13:29:57 +0000 (GMT) (envelope-from bt@ccgis.de) Received: from smm.simplethings.de ([85.88.4.201]) by sm7.simplethings.de with esmtp (Exim 4.50) id 1Egj4h-0000R8-FA; Mon, 28 Nov 2005 14:29:48 +0100 Received: from [212.79.172.180] (helo=center.shared) by smM.simplethings.de with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1Egj4h-0001li-6D; Mon, 28 Nov 2005 14:29:43 +0100 Received: from [192.168.2.66] (helo=[192.168.2.66]) by center.shared with esmtp (Exim 4.50) id 1Egj5a-0003HR-BV; Mon, 28 Nov 2005 14:30:38 +0100 Message-ID: <438B067E.7060304@ccgis.de> Date: Mon, 28 Nov 2005 14:30:38 +0100 From: Benjamin Thelen User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: "Jeff D. Hamann" References: <001301c5f3a1$06416380$0a00a8c0@rodan> In-Reply-To: <001301c5f3a1$06416380$0a00a8c0@rodan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) Cc: freebsd-questions@freebsd.org, anderson@cnpm.embrapa.br Subject: Re: missing $libdir in/for postgis? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 13:30:25 -0000 Jeff D. Hamann schrieb: > I'm sure this is a really lamo question but... > > I'm trying to get the postgis port up (which it has installed with > postgresql81 just fine so far) and when I went to add the spatial caps > to a simple database using the script lwpostgis.sql, I got the following: > > test=# \i lwpostgis.sql > BEGIN > psql:lwpostgis.sql:35: NOTICE: type "histogram2d" is not yet defined > DETAIL: Creating a shell type definition. > psql:lwpostgis.sql:35: ERROR: could not access file > "$libdir/liblwgeom.so.1": No such file or directory > ...blah, blah, blah... > psql:lwpostgis.sql:3149: ERROR: current transaction is aborted, > commands ignored until end of transaction block > ROLLBACK > test=# > > I thought to myself, "odd", but no big deal. I thought I should verify > the file "liblwgeom.so.1" is in the /usr/local/lib dir. It is. > > $ ls /usr/local/lib/liblw* > /usr/local/lib/liblwgeom.so /usr/local/lib/liblwgeom.so.1 > $ > > The $libdir isn't assigned to anything becuase I didn't see anything > when I typed the command: > > $ echo $libdir > > $ > > So should I simply set this variable in one of my login scripts (.cshrc, > .bshrc,.shrc, .login) or is this something that should be (have been) > set somewhere else? > > I'm installing the latest port on FreeBSD 6.0 amd64. > > $ uname -a > FreeBSD bobby.forestinformatics.com 6.0-RELEASE FreeBSD 6.0-RELEASE #2: > Sun Nov 27 14:07:55 PST 2005 > hamannj@bobby.forestinformatics.com:/usr/obj/usr/src/sys/GENERIC amd64 > $ > > > Jeff. > > --- > Jeff D. Hamann > Forest Informatics, Inc. > PO Box 1421 > Corvallis, Oregon USA 97339-1421 > 541-754-1428 > jeff.hamann@forestinformatics.com > www.forestinformatics.com > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Hi, I also posted this error, twice to the list and once to the maintainer (hope, everthings all right!), but no resonse up to now. I do not know, where this error suddenly comes from, earlier 1.0.x releases where ok. As a workaround check what "pg_config --pkglibdir" sais, I suppose "/usr/local/lib/postgresql". Then create a symlink in /usr/local/lib/postgresql pointing to /usr/local/lib/liblwgeom.so.1. Best, Ben