配置mapserv出现了问题。。。

news/2024/7/5 14:51:29
 
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:

  1. Add a “setenv LD_LIBRARY_PATH” to your httpd.conf to contain that directory

  2. 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.

  3. 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.


http://www.niftyadmin.cn/n/2278881.html

相关文章

Ubuntu 桌面图标不见,鼠标右键的问题

主要步骤:1 终端运行:sudo apt-get install nautilus 2 终端运行:sudo nautilus 虽然自己的文件系统是可以打得了,但是自己的系统选线的图标还是没有出来,又找了很多的帖子问题还是没解决,突然自己想是不是…

linux命令学习:PATH and LDFLAGS and CFLAGS

CFLAGS 表示用于 C 编译器的选项, CXXFLAGS 表示用于 C 编译器的选项。 这两个变量实际上涵盖了编译和汇编两个步骤。 先来看几个相关的环境变量:PATH、LDFLAGS、CFLAGS PATH:大家应该都很熟悉。安装一个包后可能会在安装目录建立一个bin目录…

VMware上Ubuntu10.04设置静态IP地址

用VMware上的Virtual Network Editor来查看虚拟机的联网。之后在物理主机上把VMware Network Adapter VMnet1的IP和DNS都设置为自动获取。VMware Network Adapter VMnet8的IP和DNS也设置为自动获取。之后重启虚拟机。 打开终端输入: sudo gedit /etc/network/interf…

ubuntu 10.04桌面不见了 鼠标右键也失效

方法一: 直接按 Alt F2,然后在出来的对话框中输入 gnome-terminal , 回车执行 弹出命令行终端,或者 Ctrl Alt T 弹出命令行终端 打开终端 ,终端窗口打开之后 ,输入下列命令: gconftool --recursive-unset /apps…

Ubuntu环境变量配置文件简介

Ubuntu环境变量配置文件简介 在Ubuntu中有如下几个文件可以设置环境变量 /etc/profile:在登录时,操作系统定制用户环境时使用的第一个文件,此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行。 /etc/environment:在登录时操作系统使用的第二个文件,系统在读…

Weblogic应用程序部署指南

Weblogic应用程序部署指南 博客分类: Weblogic应用程序部署指南 1.1 部署JAVA EE应用程序 将编译好的Web应用程序复制到WebLogic的服务器目录下。例如路径D:\bea10\user_projects\domains\base_domain\autodeploy; 这样,当启动WebLo…

Liunx下用C语言实现MQTT的接收与发送(上)

最近,笔者在倒腾MQTT相关的东西,但是不过基本上都是在mqttfx上玩的,因此呢,现在笔者需要在Liunx下实现MQTT数据的收发问题了。python实现挺方便的,后续可以重新补写一篇。本篇呢就分享一下用C语言实现的亲测可行的办法…

Jetson Nano 入坑之路 ---- (10)C/C++语言读写UART或USB串口数据

在上一篇“Jetson Nano 入坑之路 ”系列博客中笔者讲到笔者封装的一个串口函数,本篇博客,笔者会简单易懂的讲解C语言读写串口的方法。 优化:其他博主的博客在这个串口部分大部分都有个问题,就是十六进制读取的时候,会…