# Installing under /usr

**URL:** <https://www.ruby-forum.com/t/installing-under-usr/205318>\
**Category:** GNU Radio\
**Created:** [April 4, 2011, 2:38am UTC](https://www.ruby-forum.com/t/installing-under-usr/205318 "2011-04-04T02:38:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [April 4, 2011, 2:38am UTC](https://www.ruby-forum.com/t/installing-under-usr/205318/1 "2011-04-04T02:38:34Z")

</div>

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

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.

---

<div class="post-metadata">

**Author:** ![Marcus\_DSLeech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@Marcus\_DSLeech](https://www.ruby-forum.com/u/Marcus_DSLeech)\
**Post date:** [April 4, 2011, 4:16am UTC](https://www.ruby-forum.com/t/installing-under-usr/205318/2 "2011-04-04T04:16:42Z")

</div>

On Sun, Apr 3, 2011 at 8:38 PM, Marcus D. Leech [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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](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

---

<div class="post-metadata">

**Author:** ![Marcus\_DSLeech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@Marcus\_DSLeech](https://www.ruby-forum.com/u/Marcus_DSLeech)\
**Post date:** [April 4, 2011, 4:22am UTC](https://www.ruby-forum.com/t/installing-under-usr/205318/3 "2011-04-04T04:22:16Z")

</div>

> 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 🙂

–  
Marcus L.  
Principal Investigator  
Shirleys Bay Radio Astronomy Consortium

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.

---

<div class="post-metadata">

**Author:** ![Marcus\_DSLeech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@Marcus\_DSLeech](https://www.ruby-forum.com/u/Marcus_DSLeech)\
**Post date:** [April 4, 2011, 5:57pm UTC](https://www.ruby-forum.com/t/installing-under-usr/205318/4 "2011-04-04T17:57:23Z")

</div>

On Sun, Apr 3, 2011 at 17:38, Marcus D. Leech [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
