|
From: Michael R. <mc...@sa...> - 2013-08-07 02:53:24
|
Han <kee...@gm...> wrote:
> I am trying to build and run some of my C programs in UML. One way I tried is
> to build (i.e. compile) the program on the host, then run it in UML. The
> problem is that the UML rootfs I used lacks many of the /usr/lib/ shared
> libraries, hence the program failed to run.
Well, you have to install the things you need then.
> My question is: what is the best practice to build and run C programs for UML?
> Do people normally compile the program on the host and then run it in UML?
> Or compile the program directly in UML and then run it?
I make sure I have the same operating system and 32/64-bit-ness, and I use
hostfs, and I use "make DESTDIR=/path/to/my/uml/instance install".
> If folks compile the C programs in UML directly, where the "gcc" comes from?
> Is it built part of the rootfs, or some add-ons? Any pointers for that?
It's part of the rootfs, and you have a complete operating system there.
You use yum or apt or yast2 to install whatever you need.
--
] Never tell me the odds! | ipv6 mesh networks [
] Michael Richardson, Sandelman Software Works | network architect [
] mc...@sa... http://www.sandelman.ca/ | ruby on rails [
|