LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2004, 03:28 PM   #1
Regis
LQ Newbie
 
Registered: Dec 2004
Distribution: SuSE 9.1
Posts: 3

Rep: Reputation: 0
C compiler install


Hello everybody,

I have been running for a few days on SuSE 9.1, and I have been very surprised to discover that there is no C or C++ compiler installed with the OS. So I have tried to install gcc-3.4.3; I was young and naive at that time, and I thought that I wouldn't need a C compiler to install a C compiler... But as you will have guessed, I do need one, at least for the tar.gz release.

I have read a few threads on this forum concerning installation from the rpm file; so I dowloaded the rpm file and decompressed it (rpm -i -vv gcc-3-3-3...). Then I typed ./configure and guess what ?

Code:
1921682107:/usr/src/packages/SOURCES/gcc-3.3.3-20040413 # ./configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /usr/src/packages/SOURCES/gcc-3.3.3-20040413 using "mt-frag"
./configure: line 8: cc: command not found
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
Eventually, my question is: how can it be possible to install a program without compiling it ?

Am I bound to loop forever on my quest of a C compiler?
 
Old 12-16-2004, 03:29 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Maybe if you download and install an rpm rather than
a src.rpm?


Cheers,
Tink
 
Old 12-16-2004, 03:45 PM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
I guess you have SuSE 9.1 Personal, otherwise you would have found gcc on your installation medium.
See here how to install the original SuSE-rpm.

EDIT: Sorry, wasn't reading properly. But maybe this helps you anyway. Download the i586.rpm instead of src.rpm and it will be fine.

Last edited by abisko00; 12-16-2004 at 03:47 PM.
 
Old 12-16-2004, 04:14 PM   #4
Regis
LQ Newbie
 
Registered: Dec 2004
Distribution: SuSE 9.1
Posts: 3

Original Poster
Rep: Reputation: 0
Many thanks to both of you for your very quick replies, I'm on it.
 
Old 12-16-2004, 04:44 PM   #5
Regis
LQ Newbie
 
Registered: Dec 2004
Distribution: SuSE 9.1
Posts: 3

Original Poster
Rep: Reputation: 0
It worked! I downloaded the gcc-3.3.3-41.i586.rpm and glibdc-devel-2.3.3-98.i586.rpm files from one of the Suse ftp, decompressed them one after the other via rpm -i -vv <fileName> (the libdc first) and all went smooth!

You both have my eternal gratitude, really.
 
Old 12-16-2004, 04:50 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Most welcome ;)


Cheers,
Tink
 
Old 05-17-2008, 08:51 AM   #7
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Rep: Reputation: 3
Quote:
Originally Posted by Tinkster View Post
Maybe if you download and install an rpm rather than
a src.rpm?


Cheers,
Tink
Maybe I've got the same problem as Regis.
I am in a circular problem.

But I ain't got the rpm command nor the gcc.

The system is:
Linux name.of.the.server.net 2.4.21-53.ELsmp #1 SMP Wed Nov 14 03:54:12 EST 2007 i686 i686 i386 GNU/Linux
It runs on a WEB page and cannot be changed.

Any suggestions?

Can I install the rpm from a rpm?

Thanks in advance.

ADB
 
Old 05-17-2008, 02:26 PM   #8
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Quote:
Originally Posted by adelabarra View Post
Maybe I've got the same problem as Regis.
I am in a circular problem.

But I ain't got the rpm command nor the gcc.

The system is:
Linux name.of.the.server.net 2.4.21-53.ELsmp #1 SMP Wed Nov 14 03:54:12 EST 2007 i686 i686 i386 GNU/Linux
It runs on a WEB page and cannot be changed.

Any suggestions?

Can I install the rpm from a rpm?

Thanks in advance.

ADB
It would help if you told us which distro you are using
 
Old 05-18-2008, 09:19 AM   #9
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Rep: Reputation: 3
Quote:
Originally Posted by AceofSpades19 View Post
It would help if you told us which distro you are using
Dear AceofSpades:
My system is on a WEB page server I cannot change.
I run it from a Client remote console. (PHPShell) it works wonderfull.

I thought it was enough with the information from the uname -a command.
Is there any way to know the "distro"?

Red Hat, donīt know the version.
Kernel release: 2.4.21-53.ELsmp
Kernel Version: #1 SMP Wed Nov 14 03:54:12 EST 2007 i686 i686 i386 Operative System: GNU/Linux

The only I have for sure is that I only 've got the binutils.

Thanks for your fast answer.
Regards

ADB
 
Old 05-18-2008, 10:12 AM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
ADB

As I tried to tell you in your other thread, rpms (of this nature) are tied to the specific distro and version(not just the kernel version). Your version should be in:

Quote:
/etc/redhat-release
 
Old 05-18-2008, 05:32 PM   #11
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Rep: Reputation: 3
Quote:
Originally Posted by lazlow View Post
ADB

As I tried to tell you in your other thread, rpms (of this nature) are tied to the specific distro and version(not just the kernel version). Your version should be in:
Dear Lazlow:
I couldn't find the folder '/etc/redhat-release' nor the file 'redhat-release'.
May be they installed the system with the minimum to run PHP and MySQL,
because it is the service I purchased.

Regards

ADB
 
Old 05-18-2008, 05:51 PM   #12
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Contact the people you purchased the service from and ask them what distro, version, arch you have.
 
Old 05-19-2008, 11:38 AM   #13
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Rep: Reputation: 3
Quote:
Originally Posted by lazlow View Post
Contact the people you purchased the service from and ask them what distro, version, arch you have.
OK. Let's see if they answer.

Thank you.
 
  


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 a C++ Compiler? retry Linux - General 1 12-10-2004 07:09 AM
How do i install a compiler......? BajaNick Linux - Software 4 12-19-2003 10:39 PM
How do I install a C compiler? genesis1923 Linux - Newbie 8 09-24-2003 03:17 PM
How Do I Install A Compiler Off The CD ? Mr_T_Fool Linux - Software 1 07-14-2003 07:30 PM
C compiler install Lmronby Linux - Newbie 4 11-11-2001 10:08 PM


All times are GMT -5. The time now is 06:50 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration