[OSRS-PROJ] proj-4.4.6 can't find epsg

Leah Roderman elrod at oaktownunderground.com
Wed Mar 19 13:22:00 EST 2003

No, I haven't seen any output of "failed" or "succeeded" in my log. When I use "init=espg:2163" in my projection, Apache logs an error and MapServer outputs to browser the projection library error; using "proj=aea" I only see the error in the Apache log.

I've done quite a bit of tinkering with the access, such as setting all permissions on for /usr/local/share/proj, changing Apache user to one with broad privileges, setting PROJ_LIB to a distinct directory owned by Apache user, testing /usr/local/bin/proj_def.dat as an option...etc. Nothing seems to make a difference. But to safely eliminate access to system libs as a problem, it seems unlikely that I could run proj from the command line if it couldn't access stdio.h. So, back to the access investigation...

(ignore mention of PHP earlier, just me getting my fopen() confused.)

>Leah Roderman wrote:
>> Hello, I'm seeing the following error in my Apache error log after 
> > setting PROJ_DEBUG. This from MapServer 3.4.6 on RedHat 8.0 with
> > proj-4.4.6...
>> [Tue Mar 18 15:06:44 2003] [error] [client] pj_open_lib(proj_def.dat): call fopen(/usr/local/share/proj/proj_def.dat).
>> I was expecting a permissions error on the file, but this looks as if 
> > pj_open_lib() is producing an error from unsucessfully calling fopen().
> >  The path and file are correct, so my next step was going to be examining
> > PHP version details.
>When PROJ_DEBUG is defined, libproj produces a variety of output to stderr,
>but that isn't meant to imply an actual error has occured.  With the current
>code (in CVS) the word "failed" or "succeeded" comes after the above message.
>Perhaps it doesn't do that in 4.4.6?  I am surprised.
>Note that the normal problem people encounter is that the "nobody" user
>doesn't have read access on /usr/local/share/proj/* for some reason.
>Best regards,
>I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
>light and sound - activate the windows | http://pobox.com/~warmerdam
>and watch the world go round - Rush    | Geospatial Programmer for Rent
>PROJ.4 Discussion List
>See http://www.remotesensing.org/proj for subscription, unsubscription
>and other information.
PROJ.4 Discussion List
See http://www.remotesensing.org/proj for subscription, unsubscription
and other information.

More information about the Proj mailing list