Linux GCC


 
Thread Tools Search this Thread
Operating Systems Linux Linux GCC
# 1  
Old 10-05-2003
Linux GCC

Ok, i got a problem... I am trying to get the preinstalled Gcc running on my redhat linux 9 from linuxiso.org The problem is, gcc wont load or sumthin

I cannot seem to get it running from "run program" in the menu. I also tried to check /usr/bin to see if it was even there.... Seems like it is there, i found GCC G++ and a few others... I also checked through the lib folder and found some sorta gcclib folder.

Sorry if this is too newbish.. i just cant get GCC to run Smilie
# 2  
Old 10-05-2003
What are you trying to do actually? It's a compiler, and if you do not have any C/C++ source files to compile you seldom need to use GCC at all. Of course, it won't be listed in the GUI menus for this reason.

For example, you should see the version information of GCC if you type

gcc -v

on the command line (of course with a carriage return afterwards). If you see the version, then you have gcc. Otherwise you don't.
# 3  
Old 10-05-2003
ok, i do have gcc, version 3.2.2.. Now how do i get the compiler to run.. if i have a .java file or sumthing?
# 4  
Old 10-05-2003
Most people use the Java compiler (javac) provided by Sun Microsystems (or, on some Linux distros, the Blackdown one (http://www.blackdown.org)) instead of GCJ shipped by GNU which lacks a lot of things at present.

You can find the official Java compiler from java.sun.com. Or better still you may have a RPM for the Java SDK including javac shipped by Red hat. Search for it and install it.

Then just

javac MyClass.java

as usual. If you know Java this should not look foreign to you.
# 5  
Old 10-05-2003
ok, another newb question... lol.. how do i extract a bin file if i downloaded it.. any good programs for that?
# 6  
Old 10-05-2003
What do you mean by "extracting a bin file"? Extracting a .tar.gz or similar compressed archive?

If you use RH and have installed X-Windows, then the Gnome "File Roller" can be well suited for extraction of archives.
# 7  
Old 10-06-2003
i think i got it.. thanks anyways
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

GCC compiler installation on Linux OS

Need assistance in getting a GCC compiler on linux server . I wanted to install GCC compiler under local user . System doesnt have any compiler . Is there a way to get a compiler installed without a root user, cant install using (rpm, yum ) When I try to compile the gcc source i get the... (7 Replies)
Discussion started by: ajayram_arya
7 Replies

2. UNIX for Dummies Questions & Answers

Linux server not showing the GCC

Hi How can gcc is missing in linux ?i think we dont need to install it separately , can anyone please clarify when i issue a gcc command my terminal displays "If 'gcc' is not a typo you can run the following command to lookup the package that contains the binary: ... (2 Replies)
Discussion started by: rakeshkumar
2 Replies

3. Programming

Porting ofstream attach() in linux gcc

Hi We have a huge codebase in HP-UX and we are porting them in RH-Linux. I am facing the problem of making the following code work in gcc - ofstream ofs; int fd = open(fileName, openState, openMode)); func(fd); ...... ...... const Boolean func(const int fileDescriptor) { ... (2 Replies)
Discussion started by: nsinha
2 Replies

4. Red Hat

Installing gcc on RHEL4 Linux

Hi, I'm a newbie in this forum and a newbie with administering Linux. I need to install gcc 3.4.6-10 and I've downloaded and installed the rpm, but it seems that it did not do anything. # rpm -ivh gcc-3.4.6-10.src.rpm 1:gcc ... (3 Replies)
Discussion started by: aarrk
3 Replies

5. Red Hat

GCC compiler on linux box

Hi All, My main aim is to find the version of GCC compiler installed on linux box. Case 1: When i use gcc -v i get the foll. O/P Reading specs from /usr/lib/gcc-lib/i386-redhat-linux7/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-128) case 2: when i use... (3 Replies)
Discussion started by: Ashok_oct22
3 Replies

6. Linux

gcc updation on Linux machine

Hi All, I already have gcc complier installed in my machine. Its version is : gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) I am not sure whethere it's is latest gcc version available. I want to update my gcc version. Can anyone please suggest me what is the latest and stable gcc... (1 Reply)
Discussion started by: bisla.yogender
1 Replies

7. Linux

gcc compiled executable not working across x86_64 linux platforms

Hi I compiled a hello world program on two different 64-bit Linux machines, named quimby and node0331. When I compile on quimby and run on node0331 I get a "Floating exception (core dumped)" error. But if I do it in reverse, things work fine. Here's my compilation on quimby: $ uname -a... (3 Replies)
Discussion started by: same1290
3 Replies

8. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

9. SuSE

Linux gcc

Hi all, I am trying to create 64-bit shared libraries on Power PC "ppc64" architecture SuSe Linux 10 machine using gcc compiler. I am using "-m64" as an option for gcc to create 64-bit libraries which needs pam module. As we specify -m64 the compiler should look for all 64-bit... (0 Replies)
Discussion started by: vyshu2112
0 Replies

10. Programming

Updating GCC in Linux

Hi everybody, I'm trying to update GCC on my computer. It looks that the current GCC installation is not complete. What shall I do with the old GCC? Shall I uninstall it before installing a new one? Mandrake Linux 10.1 Current GCC 3.4.1 The version being installed -- GCC 3.4.4. Thanx,... (2 Replies)
Discussion started by: mimino
2 Replies
Login or Register to Ask a Question