I am trying to run my Perl Script but am getting the following error: /home/nippyi8v/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Class/Load/XS/XS.so: undefined symbol: Perl_Tstack_sp_ptr
Some problem with the version of Perl installation - can someone help. Thanx
The module you are trying to load was installed by a different build of Perl than the one you are using.
You might be using local::lib to install modules in your home dir. local::lib causes the "install base" option of the standard module installers to be used. Unfortunately, while specifying the "install base" can be used to install modules in your home dir, it does so in in a way that assumes that you only ever use one
perl.[1]Assuming you use only one
perland that it was recently updated, you can fix your problem by deleting~/perl5[2] and reinstall the modules you had locally installed.What if you have more than one build of Perl or you don't want to have this problem the next time you upgrade Perl?
There are ways of telling the installers to install modules in your home dir in such a way that multiple builds of Perl can share the installation directory,[3] but it doesn't really work.[4]
This is why I use
perlbrewto install Perl itself in my home dir so I don't have to override the installation location of modules. Usingperlbrewhas the following benefits: