
-----------------------------------
Geminias
Mon Jan 02, 2006 6:32 am

ftp/http file transfer
-----------------------------------
hey friends,

normally i refrain from asking stupid questions like this but its something that has been itching at my balls lately.  how do i deal with a mirror like this: http://mirrors.rcn.net/pub/sourceware/gcc/

it has this directory tree going on, and frankly all i want is a c++ compiler for linux (FC4).  i believe the compilers name is GNU.. and for the life of me i cannot figure out how to download this free compiler for linux.  Can someone help?

-----------------------------------
Drakain Zeil
Mon Jan 02, 2006 11:32 am


-----------------------------------
Looking for this page?

http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-4.0.2/

-----------------------------------
rdrake
Mon Jan 02, 2006 7:49 pm


-----------------------------------
You might be able to type in a command like the following which would fetch and install it for you.sudo urpmi gccYou must either run the command as root or be logged in as root to run it.  This works on Mandriva, not sure about FC, but both use the RPM anyways so maybe.  There is no package named g++, but it probably installs that one as well when you install the regular gcc.

For Debian and it's deriatives, try this.sudo apt-get install gccBeen a while for me on Debian though, so it might differ slightly.

-----------------------------------
timmytheturtle
Mon Jan 02, 2006 8:31 pm


-----------------------------------
Fedora Core uses "yum". There is gcc in yum, use this command sudo yum install compat-gcc-32 It's compact, I don't no how that will effect anything, but if it's anything like apt in debian distro's there might be a search function, so you could always search for gcc or other apps

-----------------------------------
Hikaru79
Mon Jan 02, 2006 11:38 pm


-----------------------------------
Also, for Debian-based distro's, including Ubuntu, use: sudo apt-get install build-essentialThat'll bring in all you need to compile C programs, not just the GCC (make, binutils, etc).

-----------------------------------
Geminias
Tue Jan 03, 2006 12:40 am


-----------------------------------
alright great, thanks.  But about my other question:  when you see a webpage with that directory listing how do you download files from it?

-----------------------------------
timmytheturtle
Tue Jan 03, 2006 12:44 am


-----------------------------------
alright great, thanks.  But about my other question:  when you see a webpage with that directory listing how do you download files from it?

Try "wget" to download the files, I think it can be used to download a directory, I've tried once but didn't go over to well, but that might have just been the server.

-----------------------------------
rdrake
Tue Jan 03, 2006 10:43 am


-----------------------------------
The following command will mirror an entire site, at least what's available to the public anyways.wget -m http://yourdomain/Just remember, it only gets the output from the server and whatever files are linked to.  Basically, it won't download the source to any scripts, rather the output from those scripts.  A file which sits there with nothing linking to it would probably also not get downloaded.

-----------------------------------
Geminias
Tue Jan 03, 2006 4:13 pm


-----------------------------------
okay, that sounds alright.  you get the output and then what would you do to download a file if you saw one you liked?

-----------------------------------
rdrake
Tue Jan 03, 2006 8:35 pm


-----------------------------------
okay, that sounds alright.  you get the output and then what would you do to download a file if you saw one you liked?wget :///That's all you need to run.  You replace  with either http or ftp,  with the domain, and  of course with the path to the file you want.  The command I posted earlier should do the trick though, as long as the file is linked to on a page that can be found from the index.
