# Compile/install one component

**URL:** <https://www.ruby-forum.com/t/compile-install-one-component/210892>\
**Category:** GNU Radio\
**Created:** [August 19, 2011, 5:54pm UTC](https://www.ruby-forum.com/t/compile-install-one-component/210892 "2011-08-19T17:54:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [August 19, 2011, 5:54pm UTC](https://www.ruby-forum.com/t/compile-install-one-component/210892/1 "2011-08-19T17:54:43Z")

</div>

Hi,

We want to modify the source of a single component, compile it and then  
reinstall it.  
Is it possible to do so or I have to install the whole gnuradio?  
If code breaks, is it easy to revert back just by reinstalling the  
original component again?

Thanks,  
Abhi.

---

<div class="post-metadata">

**Author:** ![abhishek-gupta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/90db22/32.png) [@abhishek-gupta](https://www.ruby-forum.com/u/abhishek-gupta)\
**Post date:** [August 24, 2011, 4:44am UTC](https://www.ruby-forum.com/t/compile-install-one-component/210892/2 "2011-08-24T04:44:03Z")

</div>

On Fri, Aug 19, 2011 at 11:53 AM, Abhishek G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi,
> 
> We want to modify the source of a single component, compile it and then  
> reinstall it.  
> Is it possible to do so or I have to install the whole gnuradio?

Yes, you can just go into the directory of the component, say  
gr-audio, and do a make and make install from there. It will compile  
the library and perform the swigging necessary.

> If code breaks, is it easy to revert back just by reinstalling the original  
> component again?
> 
> Thanks,  
> Abhi.

Sure, especially if you make sure to use git properly. Since git will  
track all of your changes, it’s easy to stash a change set or reset to  
the latest checkin to go back.

Tom
