I found the cause of the problem,because of  the environment variable.<br><br>I did want to create a Linux service, start-up,so,i made a pgsqld file in "root" user.The start cmd is :<br>cd /home/postgres<br>su postgres -c "postmaster -i -D /usr/gftech/pgdata &"<br>
<br>I missed the "-"  after "su",the right cmd should be <span style="color: rgb(255, 0, 0);"><b>su - postgres -c</b> "postmaster -i -D /usr/gftech/pgdata &"</span><br><br><div class="gmail_quote">
2009/2/25 ÕÅв¨(Sinboy Zhang) <span dir="ltr"><<a href="mailto:iamsinboy@gmail.com">iamsinboy@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I got the same problem.<br><br>OS:CentOS 5.2<br>PostgreSQL:8.2.6<br>Geos:3.0.0<br>proj:4.6.0<br>postgis:1.3.2<br><br>A few months ago,i installed them successully on Fedora 7,now a error boked when i installed on CentOS:<br>

<br><span style="color: rgb(255, 0, 0);">ERROR:  could not load library "/usr/local/postgis/lib/liblwgeom.so": libgeos_c.so.1:</span><div class="Ih2E3d"><br style="color: rgb(255, 0, 0);"><pre style="color: rgb(255, 0, 0);">
cannot open shared object file: No such file or directory</pre></div>
But the file liblwgeom.so was existed surely in /usr/local/postgis/lib, i added /usr/local/postgis/lib to /etc/ld.conf.d/local.conf and execute ldconfig ,final restart postgresql ,but the error still exist.<br><br><div class="gmail_quote">

2009/2/25 Eduin Yezid Carrillo Vega <span dir="ltr"><<a href="mailto:yecarrillo@gmail.com" target="_blank">yecarrillo@gmail.com</a>></span><div><div></div><div class="Wj3C7c"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Add this line to /etc/ld.so.conf.d/local.conf    :<br>
/usr/lib64/pgsql/<br>
<br>
And then run:<br>
ldconfig<br>
<br>
Eduin Yesid Carrillo Vega<br>
Ingeniero Civil, Esp. Sistemas de Informaci¨®n Geogr¨¢fica<br>
Centro de Investigaci¨®n y Desarrollo en Informaci¨®n Geogr¨¢fica<br>
Instituto Geogr¨¢fico Agust¨ªn Codazzi - IGAC<br>
Cr 30 48-51<br>
Tel +57 1 3694000  ext 4603<br>
Bogot¨¢ D.C., Colombia<br>
<div><div></div><div><br>
<br>
<br>
On Tue, Feb 24, 2009 at 12:39 PM, Giri <<a href="mailto:giriprakash@gmail.com" target="_blank">giriprakash@gmail.com</a>> wrote:<br>
> HI,<br>
><br>
> I  recently installed the PostGIS to use it with Geoserver, the project that<br>
> uses the PostGIS needs the GEOM extension. So I installed the GEOM and<br>
> rebuilt the PostGIS, now I am getting the following error:<br>
><br>
> the PostGIS is running in Linux.<br>
><br>
><br>
> any help will be appreciated!.<br>
><br>
><br>
><br>
><br>
> The following exception was thrown:<br>
><br>
> class java.io.IOException: An SQL exception occurred: ERROR: could not load<br>
> library "/usr/lib64/pgsql/liblwgeom.so": libgeos_c.so.1: cannot open shared<br>
> object file: No such file or directory<br>
><br>
> Details:<br>
><br>
> java.io.IOException: An SQL exception occurred: ERROR: could not load<br>
> library "/usr/lib64/pgsql/liblwgeom.so": libgeos_c.so.1: cannot open shared<br>
> object file: No such file or directory<br>
>       at<br>
> org.geotools.data.postgis.PostgisDataStore.getGeometryAttribute(PostgisDataStore.java:1124)<br>
><br>
><br>
>       at<br>
> org.geotools.data.postgis.PostgisDataStore.buildAttributeType(PostgisDataStore.java:994)<br>
> -----<br>
><br>
><br>
> Thanks!<br>
><br>
> Giri<br>
><br>
</div></div>> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
><br>
><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div></div></div><br>
</blockquote></div><br>