Page 1 of 1

Compile OSE 3.0.0 for redistribution -- HOW??

Posted: 7. Jul 2009, 19:13
by nloding
I'm something a newbie when it comes to compiling software. Here's my ultimate goal: To build the 3.0.0 OSE edition on Ubuntu, make it a tarball, and be able to move it to another machine and install it there. So I'm compiling the binaries/install on one machine, copying the files to another and installing it there.

I've followed the "build instructions" but am still having issues. I installed all the required software and was able to run the ./configure (not hardened) and source ./env.sh commands without issue. I also ran kmk all and it worked just fine as well. This left me with the src and release directories. I tried just copying the release directory over, but that didn't work -- I couldn't make install it.

What files do I need to move over? How should I be doing this?

Thanks!!

--Nathan

Re: Compile OSE 3.0.0 for redistribution -- HOW??

Posted: 7. Jul 2009, 21:48
by MKhaos7
For ubuntu guests you best bet is to use the following command:

Code: Select all

dpkg-buildpackage -b -us -uc
This will build all the source without any intervantion need on your side. In the end you will have a .deb file on the parent folder.
You can than install this with

Code: Select all

dpkg -i virtualbox-ose_*.deb
Move the .deb to another machine and repeat the dpkg step.

Re: Compile OSE 3.0.0 for redistribution -- HOW??

Posted: 7. Jul 2009, 22:38
by nloding
Great idea! But, I'm still a newbie, so between what steps do I run the dpkg command? And where in the command do I specify the folder/binaries/source (which?) that it's packaging?

1) Get source
2) ./configure
3) source ./env.sh
4) kmk all
5) make
6) make install

THANKS!

Re: Compile OSE 3.0.0 for redistribution -- HOW??

Posted: 8. Jul 2009, 01:14
by MKhaos7
In some quick steps:

1) Get the source
2) Uncompress the source
3) cd into the source dir
4) dpkg-buildpackage -b -us -uc
5) cd ..
6) dpkg -i virtualbox-ose*.deb

And you are done :)
Since you already downloaded everything you need to compile virtualbox you should get no problems when running dpkg-buildpackage

Re: Compile OSE 3.0.0 for redistribution -- HOW??

Posted: 8. Jul 2009, 20:15
by nloding
That worked beautifully! I did have to install a few more dependencies, but after those were in place, I was able to create the package, move it, and install it. Thanks!