LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-10-2005, 10:27 AM   #1
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Compiling on multiple machines at once


Usually, developing a program is done using only one machine, and compiling and testing on a regular basis is easy. Now, however, I'm modifying a routing protocol, which requires me to use multiple machines to test the implementation. This approach is new to me, and I could need some advice.

The most obvious way is to use something like ftp to copy the source code to all the machines, and then manually compile them (using for example ssh to log onto every machine). But this approach seems unnecessary hard. I could try and write a server application (i Java or something) that every machine was to run, and this server would receive the source code from a client (the machine I'd do the actual implementation on) and compile it.

There has to be smarter ways of doing this, I'm sure. Does anybody have any good pointers as for how this can be done?
 
Old 10-10-2005, 11:07 AM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,509

Rep: Reputation: 176Reputation: 176
"Now, however, I'm modifying a routing protocol, which requires me to use multiple machines to test the implementation. . . Does anybody have any good pointers as for how this can be done?"

gcc has the ability to compile code for a different architecture than the machine where the compile is done. Look in man gcc for the various options which describe to gcc what the target cpu and target operating system will be. You can do all of the compiles on your development machine then transfer the binaries to the various target machines for testing.

-----------------------------------
Steve Stites
 
Old 10-11-2005, 02:37 AM   #3
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Original Poster
Rep: Reputation: 40
Thanks for the reply.

I'll try and just transfer the binaries to the other machines.

Does there exist free software for automated distributing of the binaries, and running them? I could, of course, transfer the binaries, and then have an open ssh-connection to every machine in which I run the binaries, but there has got to be a smarter way of doing this. I can't imagine the guys at Cisco doing this manually.
 
Old 10-12-2005, 02:27 AM   #4
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Original Poster
Rep: Reputation: 40
A friend of mine gave me a tips on how to solve the probglem - installing ssh-keys and making a script. I'm going for that soultion.

Thanks anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Machines Compiling RemusX2 Linux - General 4 07-06-2005 11:54 AM
Multiple Machines Compiling RemusX2 Linux - General 2 07-06-2005 04:44 AM
dhcp and multiple machines xthel Linux - Networking 7 06-16-2004 08:32 PM
Audio on Multiple Machines Synchronised ar_howard Linux - Software 0 05-29-2004 04:58 PM
Seti on multiple machines. Sean Moores Linux - General 5 08-22-2002 11:32 AM


All times are GMT -5. The time now is 10:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration