LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-12-2008, 09:58 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
Install GD problem


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 ?

thx
 
Old 06-12-2008, 01:46 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

Last edited by knudfl; 06-12-2008 at 01:54 PM.
 
Old 06-12-2008, 07:58 PM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by knudfl View 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
 
Old 06-13-2008, 01:11 AM   #4
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
thx reply ,

the below is the message when run "make" to install gd-2.0.35 , can advise what is wrong ?

make[2]: Entering directory `/usr/local/gd-2.0.35'
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -L/usr/local/lib -o gdpartto
png gdparttopng.o ./libgd.la -lm
gcc -g -O2 -o .libs/gdparttopng gdparttopng.o -L/usr/local/lib ./.libs/libgd.so
-lm -Wl,--rpath -Wl,/usr/local/lib
gdparttopng.o(.text+0x106): In function `main':
/usr/local/gd-2.0.35/gdparttopng.c:42: undefined reference to `gdImageCreateFrom
Gd2Part'
collect2: ld returned 1 exit status
make[2]: *** [gdparttopng] Error 1
make[2]: Leaving directory `/usr/local/gd-2.0.35'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/gd-2.0.35'
 
Old 06-13-2008, 09:12 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 ?)

Rgds
 
Old 06-13-2008, 03:04 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

Rgds

Last edited by knudfl; 06-16-2008 at 12:17 PM.
 
Old 06-15-2008, 11:23 AM   #7
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by knudfl View Post
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 ?

thx
 
Old 06-16-2008, 09:26 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 !!!!
 
Old 06-16-2008, 10:17 PM   #9
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
thx reply

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
 
Old 06-17-2008, 11:29 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

Rgds
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install problem escalated to graphics problem Fice Linux - Software 1 01-04-2008 01:07 AM
Slack 11 install problem (cd install asks for /dev/fd0) cygnus-x1 Slackware 1 10-16-2006 10:30 AM
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 06:10 AM
Slack 10.1 Install Problem(During Package Install) terdbird Slackware - Installation 2 04-22-2005 02:18 PM
dhcp problem in Debian netinst install..Help !! install. copter Linux - Networking 11 06-30-2004 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration