LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gcc (https://www.linuxquestions.org/questions/linux-software-2/gcc-463993/)

200mg 07-14-2006 09:33 AM

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.

FreeDoughnut 07-14-2006 09:39 AM

What distro are you running? Use it's package manager for installing GCC.

200mg 07-14-2006 10:07 AM

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?

Theorist 07-14-2006 10:57 AM

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

200mg 07-14-2006 12:40 PM

thank you very much theorist

200mg 07-14-2006 01:27 PM

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

Theorist 07-14-2006 01:49 PM

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

200mg 07-14-2006 03:11 PM

I keep getting "error: ....rpm cannot be installed" I have tried several versions

Theorist 07-15-2006 05:37 AM

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


All times are GMT -5. The time now is 11:44 AM.