DEV Community

Discussion on: VSCode as a Perl IDE

Collapse
 
adefaria profile image
Andrew DeFaria

The problem for me, Ubuntu 22.04, was that I didn't have the libperl-dev package installed. I found this by looking in the config.log for IO-AIO-4.76:

configure:2725: x86_64-linux-gnu-gcc -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/lib/x86_64-linux-gnu/perl/5.34/CORE  -fstack-protector-strong -L/usr/local/lib -Wl,-E conftest.c -L/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -L/usr/share/perl/5.34 -lperl -ldl -lm -lpthread -lc -lcrypt >&5
/bin/ld: cannot find -lperl: No such file or directory
collect2: error: ld returned 1 exit status
Enter fullscreen mode Exit fullscreen mode

Apparently libperl does not get installed unless you install the dev package for libperl. Kinda makes sense since this LanguageServer is about debugging your Perl scripts thus you're a dev.