[lug] configure && make && make install
Michael J. Hammel
mjhammel at graphics-muse.org
Tue Jan 21 07:44:37 MST 2003
On Mon, 2003-01-20 at 23:51, Jeff Schroeder wrote:
> Hey all,
>
> Like any good open-source guy, I do a lot of "rolling my own"
> software... which means I'm always downloading source and compiling it
> myself. The issue I run into time and again is how to install
> everything, then save it off in an archive so I can re-install it on
> another (identical, or nearly so) box without having to re-compile it.
>
> So I do the standard
>
> ./configure --prefix=/usr/local && make
./configure --prefix=/usr/local/packagename && make
That makes it easier to find the package after install. Then you just
need to add /usr/local/packagename/lib to /etc/ld.so.conf and rerun
ldconfig to pick up the libs. The binaries under
/usr/local/packagename/bin can by symlinked to /usr/local/bin or the
directory can be added to your path. If you need the headers in another
package you can link them under /usr/local/include or handle it with the
other packages --with-include options (or something similar).
This exactly how I manage rolling my own.
--
Michael J. Hammel <mjhammel at graphics-muse.org>
Graphics Muse
More information about the LUG
mailing list