Changes between Version 1 and Version 2 of FindingSharedLibraries


Ignore:
Timestamp:
Jan 27, 2009, 1:39:43 PM (15 years ago)
Author:
jmckenna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FindingSharedLibraries

    v1 v2  
    33== Question: ==
    44
    5 Why do I get the "mapserv: error while loading shared libraries: libXXX.so: cannot load shared object file: No such file or directory." message for a library when I run MapServer?
     5Why do I get the "mapserv: error while loading shared libraries: libXXX.so: cannot load shared object file: No such file or directory." message for a library when I run !MapServer?
    66
    77== Answer (from Armin Burger): ==
     
    99   1. On Linux (and possibly some other Unix platforms) you can try it with adding the line /usr/local/lib (or whichever
    1010      directory libXXX.so resides in) to the file /etc/ld.so.conf and then run 'ldconfig'. This will ensure that programs
    11       can find the library regardless of their environment, even MapServer when run as a cgi.
     11      can find the library regardless of their environment, even !MapServer when run as a cgi.
    1212   2. You could also use "setenv LD_LIBRARY_PATH /usr/lib:/usr/local/lib" to add the library path. Or something similar
    1313      with export for bash. However, doing this for your account will not generally affect "mapserv" when run via CGI. To