How to do a local install?

"Walter Dnes" <waltdnes-SLHPyeZ9y/[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
  It's taken me a while to get around to trying to install from the git
repository.  With experimental stuff, I prefer to do things in my local
directory, so that if it blows up, it doesn't blow up with root
permissions.  I've done this in the past with other software, so I think
it can be done.  Note that I'm running in Gentoo, if it makes any
difference.  I have fltk-1.3.2 installed with USE="opengl threads xft"
enabled and other fltk options disabled.  Here's my
/home/waltdnes/dillo/dbuild script, which I've loosely based on
instructions at http://www.dillo.org/source.html  After the initial
"hg clone" command, updates are pulled in by "git pull" from inside the
dillo3 directory; is that correct?

#!/bin/bash
# hg clone http://hg.dillo.org/dillo dillo3
cd /home/waltdnes/dillo/dillo3
PREFIX=/home/waltdnes/.local
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
CXXFLAGS=${CFLAGS}
make clean
git pull
./autogen.sh
./configure
make
make install-strip

  The process works until the last step, where it's suggested to sudo,
to allow installing in /usr/local  It fails like so...

make[4]: Entering directory '/home/waltdnes/dillo/dillo3/src'
 /bin/mkdir -p '/usr/local/bin'
  /bin/sh /home/waltdnes/dillo/dillo3/install-sh -c -s dillo '/usr/local/bin'
cp: cannot create regular file '/usr/local/bin/_inst.22011_': Permission denied
Makefile:538: recipe for target 'install-binPROGRAMS' failed
make[4]: *** [install-binPROGRAMS] Error 1
make[4]: Leaving directory '/home/waltdnes/dillo/dillo3/src'
Makefile:856: recipe for target 'install-am' failed
make[3]: *** [install-am] Error 2
make[3]: Leaving directory '/home/waltdnes/dillo/dillo3/src'
Makefile:695: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory '/home/waltdnes/dillo/dillo3/src'
Makefile:469: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/waltdnes/dillo/dillo3'
Makefile:767: recipe for target 'install-strip' failed
make: *** [install-strip] Error 2

  What settings do I need to make to get the install totally in my home
directory?  While I'm at it, what are the manual tweaks to enable
"gif jpeg png ssl" and disable "-doc -ipv6" in the build?  Can all the
settings be put into local.mk, so I can "set it and forget it"?

-- 
Walter Dnes <waltdnes-SLHPyeZ9y/[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.