Wie kann ich CPAN-Module lokal ohne Root-Zugriff installieren (Fehler DynaLoader.pm Zeile 229)?

Funktioniert nicht mit anderen Modulen, aber um ein Beispiel zu geben. Ich habe Text :: CSV_XS mit einer CPAN-Einstellung installiert:

<code>'makepl_arg' => q[PREFIX=~/lib],
</code>

Wenn ich versuche, ein test.pl-Skript auszuführen:

$ perl test.pl

<code>#!/usr/bin/perl

use lib "/homes/foobar/lib/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi";

use Text::CSV_XS;

print "test";
</code>

Ich bekomme

Can't load '/homes/foobar/lib/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Text/CSV_XS/CSV_XS.so' for module Text::CSV_XS: /homes/foobar/lib/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Text/CSV_XS/CSV_XS.so: cannot open shared object file: No such file or directory at /www/common/perl/lib/5.8.2/i686-linux/DynaLoader.pm line 229.
at test.pl line 6
Compilation failed in require at test.pl line 6.
BEGIN failed--compilation aborted at test.pl line 6.

Ich habe den Fehler auf DynaLoader.pm zurückgeführt, es passiert in dieser Zeile:

<code># Many dynamic extension loading problems will appear to come from
# this section of code: XYZ failed at line 123 of DynaLoader.pm.
# Often these errors are actually occurring in the initialisation
# C code of the extension XS file. Perl reports the error as being
# in this perl code simply because this was the last perl code
# it executed.

my $libref = dl_load_file($file, $module->dl_load_flags) or
    croak("Can't load '$file' for module $module: ".dl_error());
</code>

CSV_XS.so ist im obigen Verzeichnis vorhanden

Antworten auf die Frage(6)

Ihre Antwort auf die Frage