# plugin help

**URL:** <https://community.zeek.org/t/plugin-help/4179>\
**Category:** Zeek\
**Created:** [June 1, 2016, 5:32am UTC](https://community.zeek.org/t/plugin-help/4179 "2016-06-01T05:32:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dk\_Jack](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Dk\_Jack](https://community.zeek.org/u/Dk_Jack)\
**Post date:** [June 1, 2016, 5:32am UTC](https://community.zeek.org/t/plugin-help/4179/1 "2016-06-01T05:32:35Z")

</div>

Hi,  
I have a written a small bro plugin. I followed the instructions on the bro plugin page.  
If I put my plugin code in /lib/bro/plugins directory everything works fine.  
For testing purposes, I’d like to keep plugins directory different from the final directory.  
If I have my plugin in /abc/def and set my BRO\_PLUGIN\_PATH=/abc/def  
directory, it fails to load. I run bro using the following command:

> /bin/bro -N

The program coredumps…The failure happens in the InitBifs code… which calls my  
plugin bif init function. The plugin directory layout is exactly the same as when it works  
if I put the plugins directory in directory. Is there something I need to setup  
if I have the plugins directory in a different location? thanks.

Dk

---

<div class="post-metadata">

**Author:** ![robin](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/robin/32/599_2.png) [@robin](https://community.zeek.org/u/robin)\
**Post date:** [June 1, 2016, 2:55pm UTC](https://community.zeek.org/t/plugin-help/4179/2 "2016-06-01T14:55:45Z")

</div>

Should generally be the same. Does it work if you point  
BRO\_PLUGIN\_PATH to the plugins "build/" directory?

Robin

---

<div class="post-metadata">

**Author:** ![Dk\_Jack](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Dk\_Jack](https://community.zeek.org/u/Dk_Jack)\
**Post date:** [June 2, 2016, 2:30am UTC](https://community.zeek.org/t/plugin-help/4179/3 "2016-06-02T02:30:59Z")

</div>

Hi Robin,  
Thanks for responding to my query…

Yes, pointing it to the build directory works.If I have the plugin under base bro (brobas/lib/bro/plugins) directory, it works.  
However if I move the plugins directory to another path it doesn’t work.

Any help is appreciated…

---

<div class="post-metadata">

**Author:** ![robin](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/robin/32/599_2.png) [@robin](https://community.zeek.org/u/robin)\
**Post date:** [June 2, 2016, 4:50am UTC](https://community.zeek.org/t/plugin-help/4179/4 "2016-06-02T04:50:58Z")

</div>

That sounds like it could be a bug in Bro then, I'll try it with  
another plugin when I get a chance. In the meantime, please file a  
ticket describing the problem so that we can track it. Please attach a  
full stack backtrace from the core dump if possible.

Robin

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:43pm UTC](https://community.zeek.org/t/plugin-help/4179/5 "2022-05-06T15:43:43Z")

</div>

Closed on May 6, 2022, 3:43pm UTC


