Fixing Can’t locate object method “new” via package “Gnome2::Vte::Terminal” in pac-manager on DEBIAN 9

Hi a few days ago I upgraded my testing Debian Desktop to discover after that my PAC manager installation stop working – I cant open any tab, Pac freeze, in terminal I see:

pol@computer:~$ pac
PAC started (pac) with PID 6931
INFO: Used config file ‘/home/xernos/.config/pac/pac.nfreeze’
INFO: Using ‘standard Gnome2’ tray icon
unhandled exception in callback:
Can’t locate object method “new” via package “Gnome2::Vte::Terminal” (perhaps you forgot to load “Gnome2::Vte::Terminal”?) at /opt/pac/lib/PACTerminal.pm line 500.
*** ignoring at /opt/pac/lib/PACMain.pm line 1398.
^CINFO: Signal ‘INT’ received. Exiting PAC…
PAC finishing (pac) with pid 6931

I solved the problem on my Debian Stretch, perl 5.24:

1/ Install dependency
apt-get install libvte-dev libextutils-depends-perl libextutils-pkgconfig-perl

2/ Install dh-make-perl
apt-get install dh-make-perl apt-file
apt-file update

3/ Build Vte
dh-make-perl –cpan Gnome2::Vte –build

4/ Install the package
dpkg -i libgnome2-vte-perl_0.11-1_amd64.deb

5/ Remove embeded vte library from the pac directory
find /opt/pac/ -name “Vte.so*” -exec rm {} \;

Voila!

 

 

 

You may also like...

Leave a Reply