LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing (executing) ggc compiler and wxWidgets on Red Hat Linux 4 (https://www.linuxquestions.org/questions/linux-newbie-8/installing-executing-ggc-compiler-and-wxwidgets-on-red-hat-linux-4-a-728493/)

Mihir V Patankar 05-25-2009 11:37 PM

installing (executing) ggc compiler and wxWidgets on Red Hat Linux 4
 
HI!

Kindly excuse me if my question is silly coz i am pretty new to the Linus operating system.

I recently installed Red Hat Linux 4 on an IBM machine(Server). I have downloaded ggc compiler( gcc-4.4.0.tar.bz2) and wxWidgets (wxWidgets-2.8.10.tar.gz) from the internet on the / directory. I want to know what are the steps involved to get them executed(installed) on Linux.

Thanks!

Mihir

colucix 05-26-2009 04:27 PM

Well, you can find very difficult to compile a gcc compiler from source if you don't have a working gcc compiler now. It is strongly recommended to install gcc from a binary RPM package. To do that, check your RHN (Red Hat Network) subscription and look for packages on the RHN website. Or use up2date to search and install packages. Also you may consider to install Red Hat 5, which is the last version of Red Hat, especially considered you have paid for support & updates.

soleilarw 05-26-2009 04:36 PM

You said that you are new to Linux, so it is possible that you already have gcc installed, even if it is an older version. You should act as colucix told you, but if you are desperate enough to build from sources, then these are the basic steps for most cases (not only for the mentioned packages):

- go to the destination directory
- unpack the source tarball to the destination directory (tar -jxf path/package.tar.bz2)
- go into the sources directory
- read the README and INSTALL files, if there are any
- run configure (./configure)
- run make (make)
- switch to root user and install (make install)

Linux Archive


All times are GMT -5. The time now is 01:38 AM.