[pocket-linux] rediriecting install
Michael Ondrechak
mondrechak at hotmail.com
Tue Oct 14 20:45:05 EDT 2003
Hi folks. I was reading through the archives and came across a posting
that asked how you redirect installations to another directory and I
didn't see a response. Well, if the person posting the message hasn't
received his/her response, I hope I can help ...
If the source you're attempting to build uses "configure", you can find out
what options are available to the build by using the "--help" option to
configure, i.e.
$ configure --help
Note that building the kernel doesn't involve "configure", bash on the
other hand does.
Two of the options that are generally available with configure are --prefix
and --exec-prefix which change the location that "make install" uses to
install the executables. Note that configure is run before the binaries
are built. If you forget to set them, you'll have to start the build
process from scratch (there is a way around it and I'll tell you in a
minute). The --prefix and --exec-prefix are written to Makefile as part of
the configure process.
If you forgot to include the --prefix and --exec-prefix parameters when
running make, you could either (1) edit the Makefile and change them before
running make, or (2) specify the values when running make. If you choose
the latter, you run "make" as follows:
$ make prefix=$HOME exec-prefix=$HOME install
this will override the value of the variables defined in the make.
Hope this helps.
Regards,
Michael.
More information about the Pocket-Linux
mailing list