配置mapserv出现了问题。。。
2011-11-04 18:16
381 查看
Q: | I installed the PROJ.4, GDAL, or one of the support libraries on my system, it is recognized by MapServer’s “configure” as a system lib but at runtime I get an error: “libproj.so.0: No such file or directory”. |
---|---|
A: | You are probably running a RedHat Linux system if this happened to you. This happens because the libraries install themselves under /usr/local/lib but this directory is not part of the runtime library path by default on your system. (I’m still surprised that “configure” picked proj.4 as a system lib since it’s not in the system’s lib path...probably something magic in autoconf that we’ll have to look into) There are a couple of possible solutions: Add a “setenv LD_LIBRARY_PATH” to your httpd.conf to contain that directory Edit /etc/ld.so.conf to add /usr/local/lib, and then run “/sbin/ldconfig”. This will permanently add /usr/local/lib to your system’s runtime lib path. Configure MapServer with the following options: --with-proj=/usr/local --enable-runpath and the /usr/local/lib directory will be hardcoded in the exe and .so files I (Daniel Morissette) personally prefer option #2 because it is permanent and applies to everything running on your system. |
相关文章推荐
- Git配置过程中出现的问题,以及解决方案
- 由于计算机磁盘硬件配置出现问题,导致 Windows 无法启动的解决方法 由于计算机磁盘硬件配置出现问题,导致 Windows 无法启动
- FWSM配置过程中出现问题的解决
- IIS7虚拟目录出现HTTP错误500.19(由于权限不足而无法读取配置文件)的问题
- ospf 配置asbr的重分发 ---出现问题“学不到rip”
- 解决配置内核后还是出现配置选项的问题
- wifi模块配置sta模式下出现的问题
- 解决Android Studio配置签名出现的问题
- 使用vmware配置centos 6.0+网络出现的各种问题解决方案
- 配置applicationContext.xml出现的问题
- VMware 运行出现“由于应用程序配置不正确,应用程序未能启动。重新安装应用程序可能会纠正这个问题”解决方案
- 网站部署到IIS7上出现HTTP 错误 500.19(由于权限不足而无法读取配置文件)的问题
- 配置spring boot项目可能出现的问题
- linux下出现ping:unknown host www.baidu.com问题时的解决办法——ubuntu下局域网络的配置
- 关于QTE3.3.8配置问题与出现问题
- 解决IIS7虚拟目录出现HTTP 错误 500.19(由于权限不足而无法读取配置文件)的问题
- myeclipse中为struts配置dbcp数据池连接sqlserver时出现的问题
- iis配置出现的问题及解决
- linux下出现ping:unknown host www.baidu.com问题时的解决办法——ubuntu下局域网络的配置
- windows下安装oracle 10g 出现检查网络配置需求未通过问题的解决