# Module not showing up in companion

**URL:** <https://www.ruby-forum.com/t/module-not-showing-up-in-companion/241716>\
**Category:** GNU Radio\
**Created:** [April 26, 2015, 4:13am UTC](https://www.ruby-forum.com/t/module-not-showing-up-in-companion/241716 "2015-04-26T04:13:52Z")\
**Posts on this page:** 3\
**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:** [April 26, 2015, 4:13am UTC](https://www.ruby-forum.com/t/module-not-showing-up-in-companion/241716/1 "2015-04-26T04:13:52Z")

</div>

I have built a custom source module. I followed the steps for coding  
and  
did a make, make test, make install. Then I did the gr\_modtool makexml  
my\_mod, and a 'make install again. I can see the module in  
/usr/local/share/gnuradio/grc/blocks/my\_mod.xml. When I run  
gnuradio-companion I can find the module when I search. I am running  
gnuradio-companion 3.7.6.1.

Thanks,  
Y-

---

<div class="post-metadata">

**Author:** ![Yile\_Ku](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/77aa72/32.png) [@Yile\_Ku](https://www.ruby-forum.com/u/Yile_Ku)\
**Post date:** [April 26, 2015, 5:02am UTC](https://www.ruby-forum.com/t/module-not-showing-up-in-companion/241716/2 "2015-04-26T05:02:49Z")

</div>

You have to make sure grc knows what directories to look in for custom  
block definitions. To do this, add a  
GRC\_BLOCKS\_PATH=“path/to/your/gr-module” environment variable to your  
setup\_env.sh file that gets sourced when you open a terminal. Assuming  
you followed all the other steps in the guided tutorial to make the  
block correctly, you should see the block in grc after that. Make sure  
you close grc and use a new terminal after making that env change.

There is a link that explains this but I don’t have it handy.

v/r,  
Rich

Sent from my iPad

---

<div class="post-metadata">

**Author:** ![Yile\_Ku](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/77aa72/32.png) [@Yile\_Ku](https://www.ruby-forum.com/u/Yile_Ku)\
**Post date:** [April 26, 2015, 1:18pm UTC](https://www.ruby-forum.com/t/module-not-showing-up-in-companion/241716/3 "2015-04-26T13:18:54Z")

</div>

In addition to what Rich said, it’s possible that the XML file has a  
syntax that GRC doesn’t understand;  
run  
gnuradio-companion  
from the console and watch the textual output of it on that console.

Best regards,  
Marcus
