Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to install checkinstall locally in my home directory. Though, in the INSTALL file is only described how to do a system wide installation:

Simple enough:

make
su
make install
checkinstall

Instead I'd like to use the configure script this way:

./configure --prefix=~/opt/
make
make install
checkinstall

but checkinstall distribution doesn't provide configure.

I think it's possible to do what I want meddling with make files, but I'm not an expert and need your help on what to do.

share|improve this question
add comment

1 Answer

The first few lines of the Makefile:

# Where to install.
PREFIX=/usr/local
BINDIR=$(PREFIX)/sbin
LCDIR=$(PREFIX)/lib/checkinstall/locale
CONFDIR=$(PREFIX)/lib/checkinstall

You just need to change the PREFIX:

PREFIX=/home/youruser/opt
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.