IBM developerWorks
           Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old December 24th, 2002, 11:33 AM
DH123 DH123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 48 DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 20 m 14 sec
Reputation Power: 11
Redhat Linux 8.0: ImageMagick: GCC Compiler Error

Just the Facts:
I am trying to install the Image::Magick Perl module on my Redhat Linux 8.0 server and I keep getting an error from the configure script "error: no acceptable C compiler found in $PATH".

I did a search in the Google/Groups, but since I'm certainly no Yoda-like Linux expert, I think the problem has something to do with RH 8.0 using GCC 3.2 and that it isn't compatible with older applications.

Seems a bit strange to me that RH would have a version of GCC that eliminates certain scripts from being installed (but then again, I don't know RH that well )

Is there any way around this problem? Will I ever be able to install Image::Magick on this box?

A Few More Details:
I use the GNOME interface on this box and I did check the RPM Package Installer interface. It says that ImageMagick IS installed, yet my MovableType publishing application say it is not.

So, I downloaded the Image::Magick module from an authorized FTP mirror site, unpacked it, then ran the ./configue command which resulted in the above mentioned error.

I then tried to install the module using Webmin's Perl module interface (most handy, btw). Using Webmin, one simply types the module name (Image:Magick) into a text field and then one hits the "Install" button and off it goes and installs the module automatically.

Now, here's where it gets weird: Webmin didn't just grab the Image:Magick module, it grabbed the PerlMagick-5.51 module, gunzip'd it, then tried to compile it. It then ran into the same problem while trying to compile PerlMagick coughing back the error "/bin/sh: line 1: gcc: command not found".

I know that PerlMagick and ImageMagick are closely intertwined, but I'm a bit stymied by that one.

*****

Any and all help will be most appreciated!

Reply With Quote
  #2  
Old December 24th, 2002, 03:15 PM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
Post

If you type "gcc" or "g++" at the prompt does it return "command not found"? Maybe it's simply the path that haven't been updated to reflect the new compiler.
__________________
Words must be weighed, not counted.

Reply With Quote
  #3  
Old December 24th, 2002, 04:45 PM
DH123 DH123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 48 DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 20 m 14 sec
Reputation Power: 11
riv,

D'oh! Thanks for the wake up call.

Appears that I never had gcc on the machine since the git go. I went into the Package Management interface and found that gcc wasn't on the list under Development tools (oh, the shame of it all!).

I added it to the list by checking its little check box, but now up2date is complaining that it has an unlocatable package "krb5-libs = 1.2.5-6" and that it is required by "krb5-devel".

I did find the krb5-server package, the server programs for Kerebos 5, under the Network Servers package details, but when I went to install it using up2date, I still got the unlocatable package "krb5-libs..." error.

So, I went and found the krb5-libs rpm and installed that manually. I went back into the Package Management interface but still got the error. It was then I realized I had installed krb5-libs = 1.2.5-7 not 1.2.5-6. So, I got the right version but it won't install obviously because I have the newer version. Now, I'm too much of a dunce to know how to manually uninstall 1.2.5-7 (I tried rpm -e and the file name, but no go) and RH 8.0 doesn't have the good ol' Gnome-RPM application for installing and uninstalling individual RPMs for some reason (must be the new Package Management thingy that takes its place).

Anyway, I'm stuck with a newer version of krb5-libs, the Package Management won't install gcc unless it gets the older version, so I guess I'll just sit here and wait until someone shines some light on my problem.

Ah, makes you just love working with Linux, eh?

Last edited by DH123 : December 24th, 2002 at 05:11 PM.

Reply With Quote
  #4  
Old December 25th, 2002, 07:10 AM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
Have you tried to simply downgrade?

And I haven't made love to Linux personally.

Reply With Quote
  #5  
Old December 25th, 2002, 09:31 AM
DH123 DH123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 48 DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 20 m 14 sec
Reputation Power: 11
Smile

riv,

Tried that, but it didn't work (downgrading, that is ... not the making love thing ).

I've decided to re-install the OS from scratch, but this time I'm going to include all the development tools (and everything else, for that matter).

We'll see if that solves the problem.

When in doubt, rip it out!

Reply With Quote
  #6  
Old January 7th, 2003, 12:39 PM
m0nkmaster m0nkmaster is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 3 m0nkmaster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 50 sec
Reputation Power: 0
Solution... is it a bit late?

You can force RPM to install the "older" version with the command:

rpm -Uhv <filename>.rpm --oldpackage

(where <filename>.rpm is the file you want to install).

Reply With Quote
  #7  
Old January 11th, 2003, 02:36 AM
DH123 DH123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 48 DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 20 m 14 sec
Reputation Power: 11
Thanks, Monkmaster. Good tip.

Reply With Quote
  #8  
Old February 5th, 2003, 10:19 PM
rebozo rebozo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: NJ-USA
Posts: 2 rebozo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
gcc ... package not found

did forcing an rpm install of the older versions help?I am having what appears to be a related problem. RH8 custom installation. Going back to install the Developer Tools package, and the installer complains about missing (old ) versions of cyrus-sasl and krb5-libs. The latest versions are installed.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Redhat Linux 8.0: ImageMagick: GCC Compiler Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway