[Mapserver-users] Install help
Daniel Morissette
morissette at dmsolutions.ca
Mon Aug 11 07:09:22 PDT 2003
Siki Zoltan wrote:
>>
>>You need to uninstall the rpm first with:
>>
>>rpm -e --nodeps gd
>>rpm -e --nodeps gd-devel
>
>
> --nodeps can be dangerous mainly if the newer version gd 2.0.x is
> in /usr/local, a lot of packages may depend on gd, none of them will work
> after removing gd and gd-devel.
> I have both gd 1.8.x as an rpm and 2.0.15 build from source on
> my system.
>
Agreed that using --nodeps can break existing apps, and it's not
necessary to use it. However you should make sure you don't have
multiple development verisons of GD on your system. i.e. you should
really remove the gd-devel RPM.
<long_story>
You can have multiple versions of the runtime GD lib (just the 'gd'
RPM), but cannot have multiple *development* versions of any given
library in the system directories (/usr and /usr/local in general). If
you don't remove the gd-devel RPM and then install GD 2.0.x using
'./configure; make; make install' then you'll end up with two copies of
gd*.h and libgd.so/.a: one copy in /usr corresponding to the gd-1.8.4
RPM, and one copy in /usr/local/ corresponding to the new GD 2.0.x that
you installed.
If you have two versions of the gd*.h and libgd.so/.a in your system
directories then when you compile an application the C compiler could
pick the wrong header files and link with the wrong libgd.so *even if*
you specified the path to your GD libary to configure using
--with-gd=/usr/local for instance.
To avoid problems always make sure that you don't have more than one
copy of the gd*.h header files and the corresponding libgd.so and
libgd.a. Note that it's OK to have multiple versions of the runtime
libraries (the ones called libgd.so.x and libgd.so.x.y), they are what
the executables look for at runtime. It's only the development ones
that you cannot have twice (libgd.so and libgd.a).
</long_story>
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list