# PyBOMBS install gnuradio 3.7.4

**URL:** <https://www.ruby-forum.com/t/pybombs-install-gnuradio-3-7-4/241237>\
**Category:** GNU Radio\
**Created:** [May 20, 2014, 5:09am UTC](https://www.ruby-forum.com/t/pybombs-install-gnuradio-3-7-4/241237 "2014-05-20T05:09:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [May 20, 2014, 5:09am UTC](https://www.ruby-forum.com/t/pybombs-install-gnuradio-3-7-4/241237/1 "2014-05-20T05:09:04Z")

</div>

I’ve just reinstalled gnuradio yesterday, using PyBOMBS.  
The newly installed version is gnuradio 3.7.4. The installation  
succeeded,  
but it then failed to compile my custom module which worked flawlessly  
with  
previous gnuradio installation.

The previous version was gnuradio 3.7.3 which was installed using  
build-gunuradio, which had no problem at all.

Compilation error:

```
Linking CXX shared library libgnuradio-activecat.so
[71%] Built target gnuradio-activecat
Scanning dependencies of target test-activecat
[72%] Building CXX object

```

lib/CMakeFiles/test-activecat.dir/test\_activecat.cc.o  
[74%] Building CXX object  
lib/CMakeFiles/test-activecat.dir/qa\_activecat.cc.o  
Linking CXX executable test-activecat  
/usr/bin/ld: CMakeFiles/test-activecat.dir/test\_activecat.cc.o:  
undefined reference to symbol  
‘\_ZN5boost10filesystem6detail16create\_directoryERKNS0\_4pathEPNS\_6system10error\_codeE’  
/usr/bin/ld: note:  
‘\_ZN5boost10filesystem6detail16create\_directoryERKNS0\_4pathEPNS\_6system10error\_codeE’  
is defined in DSO  
/home/sgku/download/gnuradio/target/lib/libboost\_filesystem-mt.so.1.53.0  
so  
try adding it to the linker command line

/home/sgku/download/gnuradio/target/lib/libboost\_filesystem-mt.so.1.53.0:  
could not read symbols: Invalid operation  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [lib/test-activecat] Error 1  
make[1]: \*\*\* [lib/CMakeFiles/test-activecat.dir/all] Error 2  
make: \*\*\* [all] Error 2

System info:

```
sgku@rs: ~ $ gnuradio-config-info -v
v3.7.4git-257-gcb0bc7f0

sgku@rs: ~ $ uname -a
Linux rs 3.2.0-4-686-pae #1 SMP Debian 3.2.57-3+deb7u1 i686 

```

GNU/Linux

How to solve this?

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [May 20, 2014, 10:00am UTC](https://www.ruby-forum.com/t/pybombs-install-gnuradio-3-7-4/241237/2 "2014-05-20T10:00:17Z")

</div>

On Tue, May 20, 2014 at 11:06 AM, Activecat [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> Linking CXX shared library libgnuradio-activecat.so
> /usr/bin/ld: note:
> make: *** [all] Error 2
> 
> ```

The problem has been solved.  
Solution: Reinstall gnuradio using PyBOMBS, make sure prefix=/usr/local

Note:  
During PyBOMBS install wizard, we are prompted for prefix, which  
defaults  
to ../target  
If we just press ENTER to accept the default value, then the prefix  
becomes  
something like /home/user1/download/gnuradio/target.  
But regardless of what has been configured for the prefix, the OOT  
(out-of-tree module) will be install into /usr/local.  
Since the newly generated setup\_env.sh does not include /usr/local,  
above  
error could occur.

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [May 20, 2014, 10:31am UTC](https://www.ruby-forum.com/t/pybombs-install-gnuradio-3-7-4/241237/3 "2014-05-20T10:31:02Z")

</div>

On 20.05.2014 09:58, Activecat wrote:

> Note:  
> During PyBOMBS install wizard, we are prompted for prefix, which  
> defaults to ../target  
> If we just press ENTER to accept the default value, then the prefix  
> becomes something like /home/user1/download/gnuradio/target.  
> But regardless of what has been configured for the prefix, the OOT  
> (out-of-tree module) will be install into /usr/local.  
> Since the newly generated setup\_env.sh does not include /usr/local,  
> above error could occur.

FYI, I don’t like installing stuff to /usr/local. If you take PyBombs’  
directory, and then use -DCMAKE\_INSTALL\_PREFIX on your own OOT, that’ll  
make both work and you don’t have to screw around in your system’s dirs.

M

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [May 20, 2014, 11:17am UTC](https://www.ruby-forum.com/t/pybombs-install-gnuradio-3-7-4/241237/4 "2014-05-20T11:17:17Z")

</div>

On Tue, May 20, 2014 at 4:29 PM, Martin B.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> FYI, I don’t like installing stuff to /usr/local. If you take PyBombs’  
> directory, and then use -DCMAKE\_INSTALL\_PREFIX on your own OOT, that’ll  
> make both work and you don’t have to screw around in your system’s dirs.  
> M

In this case we execute “cmake  
-DCMAKE\_INSTALL\_PREFIX=/home/user1/download/gnuradio/target ../” in the  
OOT build directory.  
Is there any way to “hard code” this install\_prefix into the OOT setting  
file, so that we just need “cmake ../” in the OOT build directory?

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [May 20, 2014, 12:44pm UTC](https://www.ruby-forum.com/t/pybombs-install-gnuradio-3-7-4/241237/5 "2014-05-20T12:44:06Z")

</div>

On Tue, May 20, 2014 at 5:15 PM, Activecat [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> In this case we execute “cmake  
> -DCMAKE\_INSTALL\_PREFIX=/home/user1/download/gnuradio/target ../” in the  
> OOT build directory.  
> Is there any way to “hard code” this install\_prefix into the OOT setting  
> file, so that we just need “cmake ../” in the OOT build directory?

Thanks, I’ve found the answer at

> **[\[CMake\] cmake . -DCMAKE\_INSTALL\_PREFIX=/foo broken on solaris and
	hpux](https://cmake.org/pipermail/cmake/2007-September/016565.html)**

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [May 22, 2014, 7:45am UTC](https://www.ruby-forum.com/t/pybombs-install-gnuradio-3-7-4/241237/6 "2014-05-22T07:45:06Z")

</div>

On Tue, May 20, 2014 at 4:29 PM, Martin B.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> FYI, I don’t like installing stuff to /usr/local. If you take PyBombs’  
> directory, and then use -DCMAKE\_INSTALL\_PREFIX on your own OOT, that’ll  
> make both work and you don’t have to screw around in your system’s dirs.  
> M

With the "cmake  
-DCMAKE\_INSTALL\_PREFIX=/home/user1/download/gnuradio/target ../ ", one  
of  
the python files is still installed into /usr/local. The block also  
doesn’t  
show up in the block tree.

Instead of  
/home/user1/download/gnuradio/target/lib/python2.7/dist-packages/activecat/abc.py,  
it wrongly installed to  
/usr/local/lib/python2.7/dist-packages/activecat/abc.py

As a result I have to copy it manually to the correct location.

It seems PyBOMBS is still very problematic.

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [May 22, 2014, 11:24am UTC](https://www.ruby-forum.com/t/pybombs-install-gnuradio-3-7-4/241237/7 "2014-05-22T11:24:11Z")

</div>

On Thu, May 22, 2014 at 1:43 AM, Activecat [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> -DCMAKE\_INSTALL\_PREFIX=/home/user1/download/gnuradio/target ../ ", one of  
> It seems PyBOMBS is still very problematic.

I’m failing to see how your hand installation of your own OOT module has  
anything to do with PyBOMBS?

Tom
