Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > Compiling software

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-12-2009   #1 (permalink)
Just Joined!
 
Join Date: Aug 2009
Posts: 7
Compiling software

Hi all, having a problem compiling software. I am trying to compile software prerequesits for gcc but how can I do this if I don't have compiling software. Every time I try to load these software I get a compiling error. See below! Also, doesn't Red Hat software come with compiling software?

List of errors.
Exp 1
configure: error: could not find a working compiler
Exp 2
configure: error: C compiler cannot create executables
Exp 3
ERROR: Cannot find suitable C compiler! If you do have
one, you may have to adjust your PATH environment
variable. Otherwise you can set the CC variable to the
full compiler path.
ktrboston is offline  


Reply With Quote
Old 10-12-2009   #2 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,202
Everything you need is in the repositories. You should almost always use your package manager to install software over compiling from source.

For RHEL5 install with
Code:
su -
yum groupinstall 'Development Tools'
reed9 is offline   Reply With Quote
Old 10-14-2009   #3 (permalink)
Linux Engineer
 
jmadero's Avatar
 
Join Date: Jul 2007
Location: California
Posts: 1,454
what are you trying to compile? new users should very rarely have to compile from source.....even advanced users rarely do unless they are using a distro like Gentoo...much easier to go through the package manager.
__________________
Ubuntu 9.10 the Koala of all Koalas
Dell Studio 17, Intel Graphics card, 4 gigs of RAM, KDE & GDM

"The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"
jmadero is offline   Reply With Quote
Old 4 Weeks Ago   #4 (permalink)
Just Joined!
 
Join Date: Aug 2009
Posts: 7
Still have problems. Everytime I try to configure stuff I get the same error, and I do have Gcc installed.
[root@einstein gcc-4.4.1]# gcc --version
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I tried using that command you posted but this is what I got.
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.3.4 (#1, Feb 18 2008, 17:17:04)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)

Not sure what I am doing??????????? have Linux overload.
My original issue was trying to load a DPIO2 driver. I followed there process but when I did a make file I would get an error. See below:
make ensure_dir DIR=/root/Desktop/dpio2-drv-src-x86-linux/src/x86-linux-2.6.x/kernel/../../../lib/x86-linux-2.6.x;
make[1]: Entering directory `/root/Desktop/dpio2-drv-src-x86-linux/src/x86-linux-2.6.x/kernel'
make[1]: Leaving directory `/root/Desktop/dpio2-drv-src-x86-linux/src/x86-linux-2.6.x/kernel'
make -C /lib/modules/2.6.9-89.0.11.EL/build M=/root/Desktop/dpio2-drv-src-x86-linux/src/x86-linux-2.6.x/kernel modules
make[1]: Entering directory `/lib/modules/2.6.9-89.0.11.EL/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.9-89.0.11.EL/build'
make: *** [build] Error 2
Some told me I need gcc or compliling software to do this but I am on RH4 and it should be installed.
ktrboston is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:38 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2