# Removing GNU Radio Throughly

**URL:** <https://www.ruby-forum.com/t/removing-gnu-radio-throughly/230581>\
**Category:** GNU Radio\
**Created:** [June 25, 2014, 12:44am UTC](https://www.ruby-forum.com/t/removing-gnu-radio-throughly/230581 "2014-06-25T00:44:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [June 25, 2014, 12:44am UTC](https://www.ruby-forum.com/t/removing-gnu-radio-throughly/230581/1 "2014-06-25T00:44:01Z")

</div>

Just recently I decided to update my old build of GNU Radio (3.6 release  
from Dec '13) to the newest one. Due to overly conservative and  
arbitrary  
network policies, my CentOS machines are forbidden to interact with the  
internet, so that means no build\_gnuradio or PyBombs. I think I didn’t  
throughly remove my old install because I had an issue with gr.remez.

I ran:

sudo rm -rf /usr/local/include/gnuradio/  
sudo rm -f /usr/local/lib\*/libgnuradio\*/

and somehow old files stuck around. So I have gone through my whole  
/usr/local/ directory and removed anything related to GNU Radio. Is  
there  
any other places I should be aware of? I’m asking because I have done  
this  
twice already, the 2nd reinstall wasn’t working right, for example:  
blks2  
module wasn’t found on the ofdm benchmark scripts and I was still having  
problems with that gr.remez, I know it has a new name now but I figured  
the  
new install would of taken care of that unless I have old files  
lingering.  
For the record this is my error:

$ ./benchmark\_rx.py -a addr=“10.2.8.104” -v -f 146.0M -m qpsk  
–discontinuous  
Traceback (most recent call last):  
File “./benchmark\_rx.py”, line 23, in   
from gnuradio import gr, blks2  
File  
“/usr/local/lib64/python2.6/site-packages/gnuradio/blks2/ **init**.py”,  
line  
37, in   
exec “from gnuradio.blks2impl.%s import \*” % (f,)  
File “”, line 1, in   
File  
“/usr/local/lib64/python2.6/site-packages/gnuradio/blks2impl/pfb\_interpolator.py”,  
line 23, in   
from gnuradio import gr, optfir  
File “/usr/local/lib64/python2.6/site-packages/gnuradio/optfir.py”,  
line  
33, in   
remez = gr.remez  
AttributeError: ‘module’ object has no attribute ‘remez’

So I think the old build may be conflicting with the new build.

To sum up my question again, is there any other directory outside of the  
usr/local/ where old build files could be?

Thank you so much,

Jon

---

<div class="post-metadata">

**Author:** ![jfaulkenberry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c2a13f/32.png) [@jfaulkenberry](https://www.ruby-forum.com/u/jfaulkenberry)\
**Post date:** [June 25, 2014, 12:49am UTC](https://www.ruby-forum.com/t/removing-gnu-radio-throughly/230581/2 "2014-06-25T00:49:22Z")

</div>

I forgot a crucial bit of information, make uninstall wasn’t working  
right,  
I kept getting

Cmake Error at cmake\_uninstall.cmake:20 (ELSEIF):  
had incorrect arguments: IS\_SYMLINK “$ENV{DESTDIR}${file}” (Unknown  
arguments specified).

So I just went into /usr/local/ and started purging.

On Tue, Jun 24, 2014 at 6:42 PM, Jonathan F.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![jfaulkenberry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c2a13f/32.png) [@jfaulkenberry](https://www.ruby-forum.com/u/jfaulkenberry)\
**Post date:** [June 25, 2014, 1:05am UTC](https://www.ruby-forum.com/t/removing-gnu-radio-throughly/230581/3 "2014-06-25T01:05:25Z")

</div>

Hi Jon - I made a bash script to do a more or less complete removal,  
based  
on a something Jonathan posted several years ago. It’s a bit pre-3.7  
centric, but seems to get the job done (even with 3.7).

[svn.tapr.org/repos\_sdr\_hpsdr/trunk/N5EG/GRC3.6/Gnuradio\_remove](http://svn.tapr.org/repos_sdr_hpsdr/trunk/N5EG/GRC3.6/Gnuradio_remove)

– Tom, N5EG

On Tue, Jun 24, 2014 at 3:48 PM, Jonathan F.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![jfaulkenberry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c2a13f/32.png) [@jfaulkenberry](https://www.ruby-forum.com/u/jfaulkenberry)\
**Post date:** [June 25, 2014, 10:46pm UTC](https://www.ruby-forum.com/t/removing-gnu-radio-throughly/230581/4 "2014-06-25T22:46:55Z")

</div>

So I ran the nuke script and failed to realize it was meant for the  
older  
builds; libusrp and python2.5 was the give away. However I still see it  
as  
a useful tool so I’m going to update it for my use and I will put the  
finished version on my GitHub account when I am done. So if anyone is  
interested in gnuradio\_nuke.sh, give me a day or two, and I will email  
the  
list with my GitHub account.

So I did reinstall on one machine and the benchmark scripts aren’t  
acting  
up like they were yesterday, although my simple data collection script  
is  
acting up and won’t run in GRC or in terminal. I am going to do some  
research into before I open up a email chain.

I still have another machine to fix but I will say that I am better off  
than I was yesterday.

Thanks,

Jon

On Tue, Jun 24, 2014 at 9:01 PM, Jonathan F.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![jfaulkenberry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c2a13f/32.png) [@jfaulkenberry](https://www.ruby-forum.com/u/jfaulkenberry)\
**Post date:** [June 25, 2014, 10:53pm UTC](https://www.ruby-forum.com/t/removing-gnu-radio-throughly/230581/5 "2014-06-25T22:53:27Z")

</div>

On Wed, Jun 25, 2014 at 4:45 PM, Jonathan F.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> research into before I open up a email chain.
> 
> I still have another machine to fix but I will say that I am better off  
> than I was yesterday.
> 
> Thanks,
> 
> Jon

Just FYI, I just tested ‘make uninstall’ and it worked fine. My guess is  
that you tried using a newer version of the source to uninstall an older  
installation, which won’t work. You’d have to have the same version of  
the  
source as your installed version to uninstall it properly.

Tom

---

<div class="post-metadata">

**Author:** ![jfaulkenberry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c2a13f/32.png) [@jfaulkenberry](https://www.ruby-forum.com/u/jfaulkenberry)\
**Post date:** [June 25, 2014, 11:01pm UTC](https://www.ruby-forum.com/t/removing-gnu-radio-throughly/230581/6 "2014-06-25T23:01:47Z")

</div>

On Wed, Jun 25, 2014 at 4:51 PM, Tom R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > So I did reinstall on one machine and the benchmark scripts aren’t acting
> 
> Just FYI, I just tested ‘make uninstall’ and it worked fine. My guess is  
> that you tried using a newer version of the source to uninstall an older  
> installation, which won’t work. You’d have to have the same version of the  
> source as your installed version to uninstall it properly.
> 
> Tom

This is what first went wrong, I deleted my copy of the old source and  
didn’t run ‘make uninstall’ beforehand. That was user error because I  
overlooked parts in the build-gnuradio. Then the second thing that went  
wrong was I expected the newer source to remove the newer files but  
something went wrong and I couldn’t explain why. I did have to turn  
doxygen  
off when I first installed the new 3.7 build but I don’t think that has  
anything to do with it.

Jon

>

---

<div class="post-metadata">

**Author:** ![jfaulkenberry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c2a13f/32.png) [@jfaulkenberry](https://www.ruby-forum.com/u/jfaulkenberry)\
**Post date:** [June 25, 2014, 3:03am UTC](https://www.ruby-forum.com/t/removing-gnu-radio-throughly/230581/7 "2014-06-25T03:03:19Z")

</div>

Hey thanks,

I will give it a shot tomorrow.

Jon
