Now I was trying to install Perl module GD, version 2.41,
but failed with error message requiring libgd 2.0.28 or higher.
So I downloaded gd-2.0.35 and did './configure' under gd-2.0.35 dir.,
but also failed, and I found the following from REAME in GD-2.41 directory :
---------------------------------------------------
=> IMPORTANT: This version of GD REQUIRES libgd 2.0.28 or higher. If you <=
=> have
an older version of libgd installed you must
remove libgd.a, <=
=>
libgd.so (if present) and gd.h. Then install the new version of <=
=> libgd from
www.boutell.com (see below). This particularly <=
=> applies to users of Linux systems. Older versions of GD are <=
=> available at
http://www.cpan.org. <=
-----------------------------------------------------
Then, searching whether those files were in my system,
I got the result :
-----------------------------------------------------
[root@gac ex]# find / -name "libgd.so*"
/usr/lib64/libgd.so.2
/usr/lib64/libgd.so
/usr/lib64/libgd.so.2.0.0
/usr/lib/libgd.so.2
/usr/lib/libgd.so.2.0.0
[root@gac ex]# find / -name "libgd*.so*"
/usr/lib64/libgdk-1.2.so.0.9.1
/usr/lib64/libgdk_pixbuf_xlib.so.2.0.0
/usr/lib64/libgdk-x11-2.0.so
/usr/lib64/libgdk_pixbuf-2.0.so
/usr/lib64/libgdbm.so.2
/usr/lib64/libgdk_pixbuf-2.0.so.0
/usr/lib64/libgdk_pixbuf_xlib-2.0.so
/usr/lib64/libgdk_pixbuf_xlib.so.2
/usr/lib64/libgdk_pixbuf-2.0.so.0.400.13
/usr/lib64/libgdk_pixbuf.so.2
/usr/lib64/libgd.so.2
(and other files, 44 ones were listed here in total)
[root@gac ex]# find / -name "libgd*.*a*"
/usr/lib64/libgdk.la
/usr/lib64/libgdk.a
/usr/lib64/libgd.a
/opt/rocks/lib/graphviz/libgdtclft.la
/opt/rocks/lib/graphviz/libgdtclft.a
[root@gac ex]# find / -name "gd.h"
/export/home/edu2000/fpc/fpc/w/wgd/gd.h
/usr/include/gd.h
/opt/rocks/include/graphviz/gd.h
-----------------------------------------------------
Here, which files should I remove to install successfully?
Because I suspect some of those might be set up when I did './configure'
in the gd-2.0.25 directory, and others might had been there for programs
that I do not know, which means I should not get rid of them.
For example,
/usr/lib64/libgd.so.2
/usr/lib64/libgd.so
/usr/lib64/libgd.so.2.0.0
Are these totally different, just differ in version, or in something else?
Otherwise, without any concern about files of similar names
just I could remove the three all as well as "/usr/lib64/libgd.a",
and install "gd-2.0.35" again?
(that is, with the files left there :
/usr/lib64/libgdk-1.2.so.0.9.1, /usr/lib64/libgdk_pixbuf_xlib.so.2.0.0,
/usr/lib64/libgdk-x11-2.0.so, and so many. )
Can I do as the same for the three "gd.h" without breaking their roles
in other programs? (No problem if gd.h would be set up in higher version?)
Any comment or tips will be very appreciated.