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 07-14-2006, 09:33 AM   #1
200mg
Member
 
Registered: Jul 2006
Posts: 88

Rep: Reputation: 15
gcc


Hi I am completely new to Linux. I have installed turbolinux server 8. I tried to install apache, but it says no acceptable c compiler. I was under the assumption that most unix/linux ditros came with a c compiler. Guess I was wrong. So I am trying to install gcc. I am reading this article gcc.gnu.org/install/configure.html on how to configure gcc. I get to the part about

To configure GCC:

% mkdir objdir
% cd objdir
% srcdir/configure [options] [target

bash: srcdir/configure: No such file or directory is what I am getting

does anyone know how to install gcc.

Ultimatley I want apache installed so I can run a server for OCS inventory software. I am trying to make the switch to linux, it is posing more of an obstacle than I first thought, but I am just sick of windows instability.
 
Old 07-14-2006, 09:39 AM   #2
FreeDoughnut
Member
 
Registered: Jun 2006
Distribution: Slackware 10.2, Debian Testing/Unstable, Ubuntu Breezy Badger, working on LFS
Posts: 228

Rep: Reputation: 30
What distro are you running? Use it's package manager for installing GCC.
 
Old 07-14-2006, 10:07 AM   #3
200mg
Member
 
Registered: Jul 2006
Posts: 88

Original Poster
Rep: Reputation: 15
turbolinux uses rpm,

rpm -p then which file name? the whole tar file? or how do i convert the file to an rpm file. would rpm work for installing apache as well?

Last edited by 200mg; 07-14-2006 at 10:10 AM.
 
Old 07-14-2006, 10:57 AM   #4
Theorist
Member
 
Registered: Jun 2006
Distribution: FC5, FC3, RHEL 3, Debian 3.1, Debian 3.0
Posts: 56

Rep: Reputation: 15
Hi 200mg,
You cannot use rpm for installation using .tar.gz source files. Download the right .rpm files for gcc, binutils, cpp, glibc-devel and kernel-headers from the following site : -

http://rpmfind.net/

Once downloaded, install all of them by running
Quote:
# rpm -Uvh package1.rpm package2.rpm . . .
With Regards,
Theorist
 
Old 07-14-2006, 12:40 PM   #5
200mg
Member
 
Registered: Jul 2006
Posts: 88

Original Poster
Rep: Reputation: 15
thank you very much theorist
 
Old 07-14-2006, 01:27 PM   #6
200mg
Member
 
Registered: Jul 2006
Posts: 88

Original Poster
Rep: Reputation: 15
rpm -Uvh glibc-devel-2.4.90-13.i386.rpm
error: failed dependencies
glibc-common = 2.4.90-13 is needed by.....



and the list goes on and on with the dependencies
 
Old 07-14-2006, 01:49 PM   #7
Theorist
Member
 
Registered: Jun 2006
Distribution: FC5, FC3, RHEL 3, Debian 3.1, Debian 3.0
Posts: 56

Rep: Reputation: 15
Hi 200mg,
Quote:
Originally Posted by 200mg
rpm -Uvh glibc-devel-2.4.90-13.i386.rpm
error: failed dependencies
glibc-common = 2.4.90-13 is needed by.....


and the list goes on and on with the dependencies
Install binutils package first, then cpp, followed by kernel headers, then glibc-devel and then at last gcc.

Download all the dependencies that will be required for installation of every package and after installing all of them, proceed with the installation of the dependent package.

With Regards,
Theorist
 
Old 07-14-2006, 03:11 PM   #8
200mg
Member
 
Registered: Jul 2006
Posts: 88

Original Poster
Rep: Reputation: 15
I keep getting "error: ....rpm cannot be installed" I have tried several versions
 
Old 07-15-2006, 05:37 AM   #9
Theorist
Member
 
Registered: Jun 2006
Distribution: FC5, FC3, RHEL 3, Debian 3.1, Debian 3.0
Posts: 56

Rep: Reputation: 15
Hi 200mg,
Quote:
Originally Posted by 200mg
I keep getting "error: ....rpm cannot be installed" I have tried several versions
You get this error when trying to install which package?

With Regards,
Theorist
 
  


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
LXer: Tools: GCC 3.4.6, Final GCC 3 Release LXer Syndicated Linux News 0 05-30-2006 02:21 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 10:23 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM

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

All times are GMT -5. The time now is 12:38 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
Open Source Consulting | Domain Registration