LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-13-2008, 08:23 AM   #1
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Rep: Reputation: 3
Cannot install the compiler


Dear Members:
I am trying to configure a package (./configure), the system tells me to install a compiler and find the next error:
I gunzipped the tarball OK for your information.
When I tried to configure I found the next error:

configure: error: no acceptable C compiler found in $PATH

The problem is that every distribution packages are sources.

Then: How can I install the compiler without a compiler?

I can't see any executables.

Do I have to install the 8M gcc distribution or is it enough with the TCC?
(Tiny C compiler)

Thanks in advance

A. de la Barra
 
Old 05-13-2008, 08:34 AM   #2
theriddle
Member
 
Registered: Jun 2007
Distribution: Gentoo
Posts: 172

Rep: Reputation: 30
Quote:
Originally Posted by adelabarra View Post
Dear Members:
I am trying to configure a package (./configure), the system tells me to install a compiler and find the next error:
I gunzipped the tarball OK for your information.
When I tried to configure I found the next error:

configure: error: no acceptable C compiler found in $PATH

The problem is that every distribution packages are sources.

Then: How can I install the compiler without a compiler?

I can't see any executables.

Do I have to install the 8M gcc distribution or is it enough with the TCC?
(Tiny C compiler)

Thanks in advance

A. de la Barra
What distribution are you using? You'll need to install the compiler from your distribution before you compile anything.
And what program are you installing? You might want to avoid the whole thing by just installing a package from your distribution.
 
Old 05-13-2008, 08:44 AM   #3
dtetech
LQ Newbie
 
Registered: May 2008
Posts: 7

Rep: Reputation: 0
Post What Dist. of Linux?

What distribution of Linux are you running? If you are running Fedora you can just type 'yum install gcc' without the quotes., on debian you can use 'apt-get install gcc" without the quotes.

you can download GCC from:

http://gcc.cybermirror.org/releases/...c-4.3.0.tar.gz

Download this and extract it using tar zxvf gcc-4.3.0.tar.gz, then you will have to compile it from outside where you extracted it. So if you extracted it in /tmp/gcc-4.3.0 than you will type /tmp/gcc-4.3.0/./configure
then make and then make install

This is how I did it on a Slackware 12 install. If you use slackware you can use slapt-get to install it by typing slapt-get install gcc.

You can get slapt-get from
http://freshmeat.net/redir/slaptget/...0.9.12d.tar.gz

to install it you type tar zxvf slapt-get-0.9.12d.tar.gz
cd slapt-get
make
make install.

I had one heck of a time getting gcc to install the very first time. This is just an example of some the ways to get it either via source or package managment tools.







Quote:
Originally Posted by adelabarra View Post
Dear Members:
I am trying to configure a package (./configure), the system tells me to install a compiler and find the next error:
I gunzipped the tarball OK for your information.
When I tried to configure I found the next error:

configure: error: no acceptable C compiler found in $PATH

The problem is that every distribution packages are sources.

Then: How can I install the compiler without a compiler?

I can't see any executables.

Do I have to install the 8M gcc distribution or is it enough with the TCC?
(Tiny C compiler)

Thanks in advance

A. de la Barra

Last edited by dtetech; 05-13-2008 at 08:45 AM.
 
Old 05-13-2008, 09:14 AM   #4
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by dtetech View Post
What distribution of Linux are you running? If you are running Fedora you can just type 'yum install gcc' without the quotes., on debian you can use 'apt-get install gcc" without the quotes.

you can download GCC from:

http://gcc.cybermirror.org/releases/...c-4.3.0.tar.gz

Download this and extract it using tar zxvf gcc-4.3.0.tar.gz, then you will have to compile it from outside where you extracted it. So if you extracted it in /tmp/gcc-4.3.0 than you will type /tmp/gcc-4.3.0/./configure
then make and then make install

This is how I did it on a Slackware 12 install. If you use slackware you can use slapt-get to install it by typing slapt-get install gcc.

You can get slapt-get from
http://freshmeat.net/redir/slaptget/...0.9.12d.tar.gz

to install it you type tar zxvf slapt-get-0.9.12d.tar.gz
cd slapt-get
make
make install.

I had one heck of a time getting gcc to install the very first time. This is just an example of some the ways to get it either via source or package managment tools.
Sorry.
I am running on Red Hat with Apache 1.3 on a WEB page
I send the commands via PHPShell from a W. Client and I'm in the
paifull process of migrating everything I've done from W. to Linux.
Thanks for your incredible fast answer.
I thought I'd never be answered.

Regards

ADB
 
Old 05-13-2008, 11:20 PM   #5
dtetech
LQ Newbie
 
Registered: May 2008
Posts: 7

Rep: Reputation: 0
Yum For Red hat

You should be able to install GCC via yum, just open a terminal window and type 'yum install gcc' without the quotes. It will go and download all dependencies and you will have to say yes or no when done. This should work for you according to Red Hat's site and Google. I use Fedora Core 7 & 8 and Yum is a package manager in of it. If you do not want to use yum through the command line then you can go into add/remove software, then click on development and then find GCC and all it's variations you want. It will also find any dependencies you need before installing. A good way to update Red hat is to open a terminal session and type 'yum update'. Yum will then go out and download all updated packages for all installed programs and dependencies.

Hope this helps, if not let me know

Happy yumming!
 
Old 05-14-2008, 01:23 AM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
It is going to depend on what Red Hat you are running. Prior to RHEL5 (Red Hat Enterprise Linux) Red Hat used up2date instead of yum. Be aware that there is RH5 (ancient and no one should be using) and RHEL5 (with 5.1 being current).

So what Version are you running?
 
Old 05-14-2008, 12:06 PM   #7
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by lazlow View Post
It is going to depend on what Red Hat you are running. Prior to RHEL5 (Red Hat Enterprise Linux) Red Hat used up2date instead of yum. Be aware that there is RH5 (ancient and no one should be using) and RHEL5 (with 5.1 being current).

So what Version are you running?
I'll keep you informed.

Thanks to everybody.

ADB
 
Old 05-16-2008, 09:36 PM   #8
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by adelabarra View Post
I'll keep you informed.

Thanks to everybody.

ADB
You asked me what system I was running.
I typed uname -a
and this is what I found:

Operative System :Linux
Kernel Release : 2.4.21-53.ELsmp
Kernel Version: #1 SMP Wed Nov 14 03:54:12 EST 2007 i686 i686 i386 GNU/Linux

I continued trying. But stil, there is something I cannot understand:

I downloaded the entire gcc and the GNAT (dependency needed)

I unzipped and untared them successfully. OK

When I tried to install it with the doinstall the next error appeared:

The make command could not be found on your PATH. It is required to have
it in your PATH in order to install successfully GNAT GPL Edition. Please
add the directory were make can be found on your PATH or contact your
system administrator to have it installed in a standard location.

May be I need the make.

But I've just untared the make.

I had lived the make just because I needed the gcc in order to configure it.
Now I cannot install the gcc because I need the GNAT.
I cannot install the GNAT because I need the make.
I cannot install the make because I need the gcc.
And all begins again.

I'll try with the yum now.


Please, if anybody knows what I' doing wrong please write.


My regards to everybody.
 
Old 05-16-2008, 10:16 PM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I will take a guess and say your distro is too old. Most distros are running the 2.6 kernels. Even the ones that are still running 2.4 kernels are at 2.4.36.4 (a long way from 2.4.21). The "EL" would seem to indicate Enterprise Linux (as in RHEL) but I have no idea if any RHEL ever ran a 2.4 kernel. Until you figure out what distro you are actually running I am not sure how much help any of us can be.

You might also want to consider how much effort you want to put into running a distro that is probably obsolete. Running a current version will probably run a lot of things right out of the box that you will have to fight to get to run in a obsolete version.
 
Old 05-17-2008, 06:50 AM   #10
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Original Poster
Rep: Reputation: 3
May be I didn't catch the "smart questions" yet : I'm running on a WEB page from a Client console: PHPShell.
That's in order to install the unixODBC.

I can't change the operative system. But the question subsists:
Even if I had the 2.4.36.4 version: Could I run the make without installing it?

I also tried to install the programs with th rpm but I need the rpm and to install the rpm I need to compile it.

Greetings

ADB
 
Old 05-17-2008, 08:20 AM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If you were not running a obsolete version you could just get the rpm. Rpms do not need to be compiled (they already are).
 
Old 05-18-2008, 10:55 AM   #12
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Original Poster
Rep: Reputation: 3
That's OK, but what I ain't got is the rpm "command".
When I type rpm -i <file> what I find is "command not found".

Thanks for replying on the two threads.

Regards.

ADB
 
Old 05-18-2008, 03:38 PM   #13
theriddle
Member
 
Registered: Jun 2007
Distribution: Gentoo
Posts: 172

Rep: Reputation: 30
Quote:
Originally Posted by adelabarra View Post
That's OK, but what I ain't got is the rpm "command".
When I type rpm -i <file> what I find is "command not found".

Thanks for replying on the two threads.

Regards.

ADB
Try running "su -", then running rpm. I've used Fedora, and the commands available after "su -" are not the same as the ones before.
 
Old 05-18-2008, 04:44 PM   #14
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by theriddle View Post
Try running "su -", then running rpm. I've used Fedora, and the commands available after "su -" are not the same as the ones before.
May be you're bitting on the nail:
I runned the 'su -', and the next appeared:

$ su -
su: user root does not exist

The system I'm running is on a WEB page.
Is it probably I should have 'root privileges' to install programs?

I don't have any experience on that.

My regards.

ADB
 
Old 05-18-2008, 04:49 PM   #15
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Yes, you have to have root privileges to install software on most systems.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to install G++ compiler zensunni Linux - Newbie 4 02-20-2008 08:09 AM
can not install g++ compiler adilturbo Linux - General 8 01-27-2007 06:16 PM
Install C compiler rollinpark Linux - Software 6 01-26-2005 02:03 AM
How do i install a compiler......? BajaNick Linux - Software 4 12-19-2003 09:39 PM
How Do I Install A Compiler Off The CD ? Mr_T_Fool Linux - Software 1 07-14-2003 06:30 PM

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

All times are GMT -5. The time now is 09:03 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