Click to See Complete Forum and Search --> : compile on machine A, install on machine B?


am/pm
08-06-2001, 11:37 AM
Hi,
does someone know of good resources about how to compile software on one machine and then installing it on another?

I want to have one box to compile and test binaries and have another to use those binaries in production.
Can I, after doing make install on machine A, just take the binaries out of %installdir and put them into the same directory on the other machine?

PLBlaze
08-06-2001, 11:58 AM
Good question indeed, if the machines are the same arch eg. i686 then you should not have prblems at all, but if they are different architectures then you will run into problem.What you want to use is crosscompiling, use the --host= --arch= --build= values to specify the arch you want to crosscompile for when doing configure,make or read their man pages for more details.I'm sure google.com would provide many results when searched for crosscompilation.Hope this helps.

am/pm
08-06-2001, 12:03 PM
Great,
cross-compile was the word I was looking for :)
But I have setup my machines to be the same, they are both RedHat6.1 so just copying binaries should work I guess.