I couldn't download Wx properly using cpan and kept getting an error so I tried to force-install it, now, when running:
#!/usr/bin/perl -w
use strict;
use Wx;
I get the following error:
Can't load '/usr/local/lib64/perl5/auto/Wx/Wx.so' for module Wx: libenchant.so.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193.
at test.pl line 3.
Compilation failed in require at test.pl line 3.
BEGIN failed--compilation aborted at test.pl line 3.
Edit: I finally got it to work! First I downloaded libenchant1c2a.deb and converted it into a .txz using deb2tgz, extracted it and placed the files inside in usr/lib usr/lib64 and usr/share after that I just followed Håkon Hægland's instructions and it worked perfectly, thanks!
I was able to install Wx from source on Ubuntu 21.04 with perl version 5.32.0. I first installed the wxWidgets libraries (version 3.0.2 from prdownloads.sourceforge.net/wxwindows/wxWidgets-3.0.2.tar.bz2) by installing Alien::wxWidgets from source:
Then, I was able to compile
Wx:But running the tests failed initially. For some reason the embedded run path in the Perl generated shared objects did not help the dynamic loader to find the location of the wx libraries. So I needed to explicitly set
LD_LIBRARY_PATH:And then I could install it: