[Mapserver-users] rojection library error. no system list, errno: 2

Frank Warmerdam warmerdam at pobox.com
Mon May 5 13:37:53 EDT 2003


Benjamin Thelen wrote:
> I set the environment variable PROJ_LIB directly in a shell:
> "set PROJ_LIB=/usr/local/share/proj".
> But that didn't help as well.
> 
> 
> 
> I thought it could be something with file permissions, but I don't think,
> proj4 is not allowed to access its own files. I have no more ideas at the
> moment. Anybody another idea?
> Sorry for my three mails. I was a bit to fast writing to the list.

Benjamin,

I haven't traced through everything you have tried, but permissions can
certainly be an issue under some circumstances.  Note that PROJ only has
the permission available to the cgi-bin process it is called from when used
in a web environment.  So if your webserver runs cgi-bin programs as "nobody"
please verify that the nobody user has read permissions on
/usr/local/share/proj/epsg.

You should also verify that things work fine in your commandline environment.
For instances, does shp2img work on your map?  Does proj?  Try this:

warmerda at gdal2200[90]% setenv PROJ_DEBUG
warmerda at gdal2200[91]% proj -v +init=epsg:27700
pj_open_lib(epsg): call fopen(/usr/local/share/proj/epsg) - succeeded
#Transverse Mercator
#       Cyl, Sph&Ell
# +init=epsg:27700 +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601 +x_0=400000
# +y_0=-100000 +ellps=airy +units=m +no_defs

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





More information about the mapserver-users mailing list