sean9182
06-27-2001, 03:56 PM
I have redhat 7.1 and am using Gnome for a desktop...how can i search for files? In particular, where are the java and c++ compilers and what are they called if I have them? thanks,
sean
sean
|
Click to See Complete Forum and Search --> : Where is it? sean9182 06-27-2001, 03:56 PM I have redhat 7.1 and am using Gnome for a desktop...how can i search for files? In particular, where are the java and c++ compilers and what are they called if I have them? thanks, sean scanez 06-27-2001, 04:37 PM Hi, I haven't used Gmone in a while but I do remember there being a utility to find files. Don't know what it's called, check all the menus. As for the compilers, the c++ compiler is called g++ which should have been installed as a standard part of the distro. There is no java compiler that is automatically installed so you will need to get one from the web. I think there is a gnu java compiler, gcc-java or something, but last time I tried it it didn't work well at all. The safe bet would be Sun's JDK, but this has some problems with RedHat 7.1. If you decide to use this one, let us know so I can post a fix to get it working on RedHat 7.1. good luck SC sean9182 06-27-2001, 05:18 PM Is there a difference in the packages which are installed if one decides to choose Gnome over KDE? What ARE some of the advantages of these two? (Yeah, i'm just full of questions) -sean9182 sean9182 06-28-2001, 03:16 PM so anyone know where the c++ compiler is stored? I found perl5, but i still dont know what the c++ compiler is called or where it is stored. thanks, sean9182 ille_pugil42 06-28-2001, 03:47 PM first run "updatedb" then "locate g++", that will list where it is. You can just invoke it by running "g++ <input file> -o <output file>". This isn't an environment to program, this is literally a compiler and that's that. Sidenote, locate isn't a search, it just checks a database of files, that's why you run updatedb to update the database. there is a search on the Gnome menu (for lack of better name). It most likely runs off of the find -name command. HTH mjb0314 06-28-2001, 05:52 PM Originally posted by scanez: <STRONG>...The safe bet would be Sun's JDK, but this has some problems with RedHat 7.1. If you decide to use this one, let us know so I can post a fix to get it working on RedHat 7.1. good luck SC</STRONG> I got java working in RH 7.1, been doing all of my Comp. Sci. projects with it. All I did was follow the installation instructions (make sure you read the release notes, there's a note about font properties that concerns RedHat). The only thing I did differently was install it into my home directory, to make it more accessible to me, since I'm the only user on my machine. My apologies for being slightly off topic, I just wanted to inform people that java will work in Red Hat 7.1. sean9182 06-28-2001, 10:31 PM Originally posted by ille_pugil42: <STRONG>You can just invoke it by running "g++ <input file> -o <output file>". </STRONG> Do I need to first install g++ so that it makes all its subdirectories somewhere under /usr ? And also, when I compile, what is the purpose of the output file? Basically I'm asking how I make the file from my code which I can run. scanez 06-29-2001, 03:43 AM g++ should be installed already with RH 7.1. The output flag let's you give the executable whatever name you want. To compile your code, say you have a file test.cpp, run g++ -o name_of_executable test.cpp Have fun SC ille_pugil42 06-29-2001, 08:09 AM if you don't specify and output file, it will dump the executable code into a file called a.out - which you can later rename, it just makes it easier. I usually do the following: joe somefile.cpp; g++ somefile.cpp -o somefile; ./somefile that way I can edit it, compile it and then test it. And yes, by default Redhat will install it for you, and it should be accessible to all users. GonzoJohn 06-29-2001, 11:36 AM Um, excuse me, but isn't "gcc" the name of the compiler, not "g++"? Sorry if I'm being obtuse. :confused: ille_pugil42 06-29-2001, 11:56 AM gcc is the c compiler, and g++ is the c++ compiler justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |