PDA

View Full Version : Mapserver on vps



collin
02-21-2006, 01:55 PM
Hello,

I want to install Mapserver (http://mapserver.gis.umn.edu/)
on a vps account.
I'm trying to compile it, but no matter what I do, it comes with this error:

configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/fgs3. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv).

Does anyone recognize this failure?
Or has anyone experience with installing Mapserver on a vps, please let me know what's the best way to do it.

Regards,
Collin.

Jonnyb0y
04-19-2006, 05:21 PM
GD is a commonly used program and is pretty easy to install in your VPS. A while back I wrote a script in the thread http://forums.westhost.com/showthread.php?p=28054 to install it for you in your VPS account. If you are still lookin' for help on this give it a shot and let me know if you run into any trouble.

collin
05-13-2006, 01:26 PM
Hello Jonnyb0y,

Thanks for your reply.
I have succesfully installed GD. But strangely that wasn't the problem.
I've been able to compile MapServer successfully now. Also the make part seems to be going right now.
But when I'm trying to start MapServer I get this error:
mapserv: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

And believe me, the file does exists.

Any ideas?

Regards,
Collin.

Jonnyb0y
05-15-2006, 02:55 PM
Could you post the output of these commands, replacing the path below as needed (e.g. /usr/local/mapserver/bin/mapserver)? The commands can be ran from within any directory when you are connected via SSH.

ldd /path/to/mapserver/binary
find / 2>/dev/null -name 'libiconv*'
cat /etc/ld.so.conf

collin
05-18-2006, 01:25 PM
Jonnyb0y,

I've been able to tackle this problem as well.
I've installed the libiconv library and refered to it when compiling MapServer.
Now the next error appears, when I'm trying to run MapServer:
The libc library seems to be older than the libraries (used by MapServer) use.

This is the output:
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libgdal.so.1)
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libodbc.so.1)
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libxerces-c.so.26)
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libtiff.so.3)
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libstdc++.so.5)
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3.4' not found (required by /lib/libSM.so.6)
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3.4' not found (required by /lib/libICE.so.6)
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libICE.so.6)
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3.4' not found (required by /lib/libX11.so.6)
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libX11.so.6)
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3.2' not found (required by /lib/libX11.so.6)
mapserv: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libproj.so.0)

Do you think I need to install the libc library as well?
I've read that one should be very carefull with that.

Regards,
Collin.

Jonnyb0y
05-25-2006, 08:23 AM
Collin,

It looks like you uploaded the binaries for libiconv from another server. The problem with doing that is when they were installed they were linked against a whole lot of other libraries that you don't have (e.g. x11 related libraries, which is used for the xfree86 or x.org). This includes a version of glibc, the standard C library, which is newer than the one found in your VPS.

You'll need to remove the library files you manually uploaded and install them properly. To get a libiconv properly installed try reinstalling the GNU Compiler Collection site app (I've found it to be a bit buggy sometimes) and installing the most recent version of PHP 4.x or PHP 5.x in your VPS. If it still doesn't work then send me the output from the commands I posted earlier and we can figure it out from there :).