Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to install the module GD to the debian server , I download GD-2.16.tar.gz and tried to install it , when install it , it pop the messages
Note (probably harmless): No library found for -lgd
Writing Makefile for GD
then I tried to download gd-2.0.35.tar.gz and tried to install it (./configure '--with-gd' '--with-png-dir=/usr' '--with-jpeg-di=/usr' '--with-freetype-dir=/usr' '--with-zlib-dir=/usr' ) , it is no error , then I use the command "make" to install it , it pop the below message , can advise what is wrong ? is there any step incorrect ?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
1) Quote : "PHP Users may not need these files. Please read the PHP FAQ"
(from http://www.libgd.org/Downloads )
2) 'synaptic' or # 'apt-get install libgd2-dev' would provide libgd.
3) If you nevertheless want to compile gd-2.0.35, do
a) automake, b) ./configure (no options needed)
4)CPAN-module GD-2.39 is the newest version.
( 5) .."..it pop the below message" , no message shown in your post.)
1) Quote : "PHP Users may not need these files. Please read the PHP FAQ"
(from http://www.libgd.org/Downloads )
2) 'synaptic' or # 'apt-get install libgd2-dev' would provide libgd.
3) If you nevertheless want to compile gd-2.0.35, do
a) automake, b) ./configure (no options needed)
4)CPAN-module GD-2.39 is the newest version.
( 5) .."..it pop the below message" , no message shown in your post.)
Rgds
thx reply ,
the error message is as below ,can advise what is wrong ?
GD.c:3775: error: syntax error before "RETVAL"
GD.xs:2205: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Font_nchars':
GD.c:3800: error: syntax error before "font"
GD.c:3806: error: `font' undeclared (first use in this function)
GD.c:3806: error: called object is not a function
GD.c: In function `XS_GD__Font_offset':
GD.c:3827: error: syntax error before "font"
GD.c:3833: error: `font' undeclared (first use in this function)
GD.c:3833: error: called object is not a function
GD.c: In function `XS_GD__Font_width':
GD.c:3854: error: syntax error before "font"
GD.c:3860: error: `font' undeclared (first use in this function)
GD.c:3860: error: called object is not a function
GD.c: In function `XS_GD__Font_height':
GD.c:3881: error: syntax error before "font"
GD.c:3887: error: `font' undeclared (first use in this function)
GD.c:3887: error: called object is not a function
make: *** [GD.o] Error 1
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
You shouldn't compile gd-2.0.35, try the Debian package instead.
And which version of Debian are you using ??
and which perl ?? ('perl -v' to get the active version)
and which gcc ?? ( 'gcc -v' to know)
I can compile all 3 packages with gcc-4.1.1 and perl 5.8.8
(is perl-dev installed ?)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
And they compile fine with gcc-4.2.3 too (Ubuntu 8.04)
Which version of Debian is used ??
Debian package names : libgd2-dev, libgd2-noxpm, libgd2-noxpm-dev
(Deb Etch packages version 2.0.33)
And the perl modules are in the repo too, with these package names :
libgd-gd2-noxpm-perl, libgd-gd2-perl, libgd-barcode-perl, libgd-graph3d-perl,
libgd-graph-perl, libgd-perl.
So no need to compile.
And they compile fine with gcc-4.2.3 too (Ubuntu 8.04)
Which version of Debian is used ??
Debian package names : libgd2-dev, libgd2-noxpm, libgd2-noxpm-dev
(Deb Etch is version 2.0.33)
And the perl modules are in the repo too, with these package names :
libgd-gd2-noxpm-perl, libgd-gd2-perl, libgd-barcode-perl, libgd-graph3d-perl,
libgd-graph-perl, libgd-perl.
So no need to compile.
Rgds
do you mean I need to compile all these package libgd2-dev, libgd2-noxpm, libgd2-noxpm-dev ?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
No, do not compile anything (My advise)
Install what you need with # 'apt-get install <package>' or synaptic.
All packages mentioned in #6 are Debian packages.
!!!You still have not told which version of Debian you are using !!!!
the debian version is 4.0 , the kernel is 2.6.8-12-em64t-p4-smp
I would like to install php4-gd , I found thesite http://packages.debian.org/stable/web/php4-gd , I downloaded and installed it , but not work , it seems my server is too old , can advise where can I find the source of the module php4-gd ? I would like to compile by myself ? thx
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
You should install 'php4-gd' with your package manager (synaptic)
or do # 'apt-get install php4-gd'
The package is available in my package manager on Debian Etch (32 bit)
(together with 21871 other packages )
so I'd guess it is in yours too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.