Re: How to compile on one machine and install on another?

Keith Owens
2001-06-21T03:11:25Z

On Wed, 20 Jun 2001 14:11:20 -0600,
Maciek Nowacki <maciek@Voyager.powersurfr.com> wrote:
>Change MODLIB in $(TOPDIR)/Makefile (e.g. /usr/src/linux/Makefile). I do this
>to compile the kernel and modules without root priviledges at all. make
>modules_install will fail at the end when trying to run 'depmod', but that's
>okay - you can do that yourself:

That is not OK, it requires user hacks and causes errors. Use
make INSTALL_MOD_PATH=foo modules_install
and everything works. Create $(INSTALL_MOD_PATH)/lib/modules first.