Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 ftp/http file transfer
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Geminias




PostPosted: Mon Jan 02, 2006 6:32 am   Post subject: 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?[/url]
Sponsor
Sponsor
Sponsor
sponsor
Drakain Zeil




PostPosted: Mon Jan 02, 2006 11:32 am   Post subject: (No subject)

Looking for this page?

http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-4.0.2/
rdrake




PostPosted: Mon Jan 02, 2006 7:49 pm   Post subject: (No subject)

You might be able to type in a command like the following which would fetch and install it for you.
code:
sudo urpmi gcc
You 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.
code:
sudo apt-get install gcc
Been a while for me on Debian though, so it might differ slightly.
timmytheturtle




PostPosted: Mon Jan 02, 2006 8:31 pm   Post subject: (No subject)

Fedora Core uses "yum". There is gcc in yum, use this command
code:
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




PostPosted: Mon Jan 02, 2006 11:38 pm   Post subject: (No subject)

Also, for Debian-based distro's, including Ubuntu, use:
code:
sudo apt-get install build-essential
That'll bring in all you need to compile C programs, not just the GCC (make, binutils, etc).
Geminias




PostPosted: Tue Jan 03, 2006 12:40 am   Post subject: (No subject)

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




PostPosted: Tue Jan 03, 2006 12:44 am   Post subject: (No subject)

Geminias wrote:
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




PostPosted: Tue Jan 03, 2006 10:43 am   Post subject: (No subject)

The following command will mirror an entire site, at least what's available to the public anyways.
code:
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.
Sponsor
Sponsor
Sponsor
sponsor
Geminias




PostPosted: Tue Jan 03, 2006 4:13 pm   Post subject: (No subject)

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




PostPosted: Tue Jan 03, 2006 8:35 pm   Post subject: (No subject)

Geminias wrote:
okay, that sounds alright. you get the output and then what would you do to download a file if you saw one you liked?
code:
wget <protocol>://<domain>/<path to file>
That's all you need to run. You replace <protocol> with either http or ftp, <domain> with the domain, and <path to file> 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.
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: