Installing under /usr

I have a client/customer who has a machine where /usr/local isn’t
writable (it’s a network mount point), but the local disk
infrastructure is writeable by local root.

I’ve tried doing an install of Gnu Radio using:

./configure --prefix=/usr --exec-prefix=/usr

Then:

make

sudo make install

The install fails inside libtool for libgnuradio-core due to a
“permission denied” error:

test -z “/usr/lib” || /bin/mkdir -p “/usr/lib”
/bin/sh …/…/…/libtool --mode=install /usr/bin/install -c
libgnuradio-core.la ‘/usr/lib’
libtool: install: warning: relinking libgnuradio-core.la' libtool: install: (cd /home/radiolab/gnuradio/gnuradio-core/src/lib; /bin/sh /home/radiolab/gnuradio/libtool --tag CXX --mode=relink g++ -g -O2 -Wall -Woverloaded-virtual -pthread -version-info 0:0:0 -release 3.4.0git -o libgnuradio-core.la -rpath /usr/lib bug_work_around_6.lo filter/libfilter.la g72x/libccitt.la viterbi/libviterbi.la general/libgeneral.la gengen/libgengen.la io/libio.la missing/libmissing.la reed-solomon/librs.la runtime/libruntime.la hier/libhier.la /home/radiolab/gnuradio/gruel/src/lib/libgruel.la -lfftw3f -lm -lgsl -lgslcblas -lm -lgslcblas ) mv: cannot move libgnuradio-core-3.4.0git.so.0.0.0’ to
libgnuradio-core-3.4.0git.so.0.0.0U': Permission denied libtool: install: error: relink libgnuradio-core.la’ with the above
command before installing it

Any hints about how to make it all install nicely under /usr ?


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium

On Sun, Apr 3, 2011 at 8:38 PM, Marcus D. Leech [email protected]
wrote:

make
libtool: install: (cd /home/radiolab/gnuradio/gnuradio-core/src/lib;
command before installing it

Any hints about how to make it all install nicely under /usr ?


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

I hope this doesn’t sound patronizing, but are you sure /usr (and
/usr/lib)
are writable? Can you do a “sudo touch /usr/local/testme”? From the
error,
it really does look like a simple permission problem.

Tom

I hope this doesn’t sound patronizing, but are you sure /usr (and
/usr/lib) are writable? Can you do a “sudo touch /usr/local/testme”?
From the error, it really does look like a simple permission problem.

Tom

Nah, not patronizing at all.

Turns out it was me after all. The home directory was NFS-mounted, and
when libtool tried to do some in-place re-link as part of the
install, it died, because it couldn’t write the file (because root
isn’t root across NFS).

It’s like these systems are set up to deliberately cause trouble :slight_smile:


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium

On Sun, Apr 3, 2011 at 17:38, Marcus D. Leech [email protected] wrote:

mv: cannot move libgnuradio-core-3.4.0git.so.0.0.0' to libgnuradio-core-3.4.0git.so.0.0.0U’: Permission denied
libtool: install: error: relink `libgnuradio-core.la’ with the above command
before installing it

You need to do a ‘make clean’ if you have changed the --prefix between
runs of ‘configure’.

Johnathan