Issue - Yersinia has been configured with --disable-gtk option
Lately while working on Kali Linux I encountered this error when trying to execute yersinia -G and the Yersinia GUI was not working.
Hmmm... it seems that you don't have gtk support or Yersinia has been configured with --disable-gtk option... Go and get it!!
I was using following release of Kali Linux
└─# lsb_release -a No LSB modules are available. Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: 2024.1 Codename: kali-rolling
Solution
I tried to search online for some solutions but couldn't find any. The weird part is that I had installed yersinia by using apt package manager and it has no such option to enable or disable GTK so I assumed it may be a BUG as I could find a couple of users had reported the same issue on GitHub.
To fix this I manually cloned the yersinia repo from github and compiled the binary. So first we need to remove the existing package:
apt remove --auto-remove yersinia apt purge --auto-remove yersinia
![Yersinia GUI not working on Kali Linux [SOLVED] Yersinia GUI not working on Kali Linux [SOLVED]](https://www.golinuxcloud.com/wp-content/uploads/image-399.png)
Next let's clone the yersinia repo to our Kali Linux machine inside /opt/yersinia:
git clone https://github.com/tomac/yersinia /opt/yersinia
Next we need to install some dependent packages required for compilation:
apt install autoconf libgtk-3-dev libnet1-dev libgtk2.0-dev libpcap-dev -y
libpcap-dev package is required or else you may get error during compilation as !!! couldn't find a complete set of pcap headers.Once the required packages are installed, navigate inside /opt/yersinia and execute /autogen.sh script.
cd /opt/yersinia ./autogen.sh
Look out for any errors. If there are no errors then execute the following command to configure yersinia with GTK:
./configure --with-gtk
Next complete the compilation:
make make install
![Yersinia GUI not working on Kali Linux [SOLVED] Yersinia GUI not working on Kali Linux [SOLVED]](https://www.golinuxcloud.com/wp-content/uploads/image-400.png)
Now attempt to access the Yersinia GUI:
yersinia -G
and this time the GUI has successfully loaded and we don't get the same error as seen earlier.
![Yersinia GUI not working on Kali Linux [SOLVED] Yersinia GUI not working on Kali Linux [SOLVED]](https://www.golinuxcloud.com/wp-content/uploads/image-401.png)
Hope this helps.


Thank you
still not working ,the gui can work but so many errors emerged
Gtk is tree model failed
Awesome, worked a treat! Thank a lot
Awesome, worked a treat!
Thank oyu very much I did it!!!
admin.h:37:55: note: expected ‘int’ but argument is of type ‘void *’ 37 | void admin_th_network_peer_exit(struct term_node *, int); | ^~~ admin.c:349:45: error: passing argument 2 of ‘admin_th_network_peer_exit’ makes integer from pointer without a cast [-Wint-conversion] 349 | admin_th_network_peer_exit(term_node, sock); | ^~~~ | | | void * admin.h:37:55: note: expected ‘int’ but argument is of type ‘void *’ 37 | void admin_th_network_peer_exit(struct term_node *, int); | ^~~ admin.c:380:45: error: passing argument 2 of ‘admin_th_network_peer_exit’ makes integer from pointer without a cast [-Wint-conversion] 380 | admin_th_network_peer_exit(term_node, sock); | ^~~~ | | | void * admin.h:37:55: note: expected ‘int’ but argument is of type ‘void *’ 37 | void admin_th_network_peer_exit(struct term_node *, int); | ^~~ admin.c:387:46: error: passing argument 2 of ‘admin_th_network_peer_exit’ makes integer from pointer without a cast [-Wint-conversion] 387 | admin_th_network_peer_exit(term_node, sock); | ^~~~ | | | void * admin.h:37:55: note: expected ‘int’ but argument is of type ‘void *’ 37 | void admin_th_network_peer_exit(struct term_node *, int); | ^~~ make[1]: *** [Makefile:454: admin.o] Error 1 make[1]: Leaving directory '/opt/yersinia/src' make: *** [Makefile:460: install-recursive] Error 1Try this.
https://nervous-burglar-c90.notion.site/Yersinia-with-GUI-installation-on-Kali-Linux-13c9b466086a80189851f3618e23bc3e
@Nic,you are my hero, that’s work
Sorry didnt work !
not working at make and make install it throghing error like | ^~~~~~~~~ admin.c: In function ‘admin_th_listen’: admin.c:235:72: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 235 | if ( pthread_create( &tid, NULL, &admin_th_network_peer, (void *)sock2 ) < 0) | ^ admin.c: In function ‘admin_th_network_peer’: admin.c:333:47: error: passing argument 3 of ‘term_add_node’ makes integer from pointer without a cast [-Wint-conversion] 333 | fail = term_add_node(&term_node, TERM_VTY, sock, pthread_self()); | ^~~~ | | | void * admin.h:51:58: note: expected ‘int32_t’ {aka ‘int’} but argument is of type ‘void *’ 51 | extern int8_t term_add_node(struct term_node **, int8_t, int32_t, pthread_t); | ^~~~~~~ admin.c:339:45: error: passing argument 2 of ‘admin_th_network_peer_exit’ makes integer from pointer without a cast [-Wint-conversion] 339 | admin_th_network_peer_exit(term_node, sock); | ^~~~ | | | void * admin.h:37:55: note: expected ‘int’ but argument is of type ‘void *’ 37 | void admin_th_network_peer_exit(struct term_node *, int); | ^~~ admin.c:349:45: error: passing argument 2 of ‘admin_th_network_peer_exit’ makes integer from pointer without a cast [-Wint-conversion] 349 | admin_th_network_peer_exit(term_node, sock); | ^~~~ | | | void * admin.h:37:55: note: expected ‘int’ but argument is of type ‘void *’ 37 | void admin_th_network_peer_exit(struct term_node *, int); | ^~~ admin.c:380:45: error: passing argument 2 of ‘admin_th_network_peer_exit’ makes integer from pointer without a cast [-Wint-conversion] 380 | admin_th_network_peer_exit(term_node, sock); | ^~~~ | | | void * admin.h:37:55: note: expected ‘int’ but argument is of type ‘void *’ 37 | void admin_th_network_peer_exit(struct term_node *, int); | ^~~ admin.c:387:46: error: passing argument 2 of ‘admin_th_network_peer_exit’ makes integer from pointer without a cast [-Wint-conversion] 387 | admin_th_network_peer_exit(term_node, sock); | ^~~~ | | | void * admin.h:37:55: note: expected ‘int’ but argument is of type ‘void *’ 37 | void admin_th_network_peer_exit(struct term_node *, int); | ^~~ make[1]: *** [Makefile:454: admin.o] Error 1 make[1]: Leaving directory '/opt/yersinia/src' make: *** [Makefile:460: install-recursive] Error 1like this many line i just posted some lines only
after this error also if i run yesinia -G it will give
i am in the yersinia path only /opt/yersinia
please help me
Thank you very much! I solved it.
thank you