Hello, I get errors when I load a perl scripts that uses perl modules, here's one error:
Can't locate object method "new" via package "XML::LibXML::SAX" at /usr/share/perl5/XML/SAX/ParserFactory.pm line 43. Compilation failed in require at /home/ant1/.elinks/hooks.pl line 152 (#1) (F) You called a method correctly, and it correctly indicated a package functioning as a class, but that package doesn't define that particular method, nor does any of its base classes. See perlobj. Uncaught exception from user code: Can't locate object method "new" via package "XML::LibXML::SAX" at /usr/share/perl5/XML/SAX/ParserFactory.pm line 43. Compilation failed in require at /home/ant1/.elinks/hooks.pl line 152. at /home/ant1/.elinks/hooks.pl line 152 Here's line 152 of hooks.pl: require "/home/ant1/.elinks/ELproxy.pl"; The following is the beginning of ELProxy.pl: ##### ELProxy.pl ########### #!/usr/bin/perl use XML::Simple; my $ELProxy = XMLin($ENV{"HOME"} . "/.elinks/elproxy.xml"); 1; ###### End of ELProxy.pl ####### It's the XMLin line that caused the error above. Another error is when I load a perl script with this line: use Data::Dumper Here's the error: Uncaught exception from user code: Can't load module Data::Dumper, dynamic loading not available in this perl. (You may need to build a new perl executable which either supports dynamic loading or has the Data::Dumper module statically linked into it.) at /home/ant1/.elinks/ELproxy.pl line 4 Compilation failed in require at /home/ant1/.elinks/ELproxy.pl line 4. BEGIN failed--compilation aborted at /home/ant1/.elinks/ELproxy.pl line 4. Compilation failed in require at /home/ant1/.elinks/hooks.pl line 152. at /home/ant1/.elinks/hooks.pl line 152 Please note that those perl scripts work fine as standalone. It's when they are loaded with elinks that those errors happen. I hope someone can advise me wether this is a bug in elinks or if I should do some workaround to make my perl scripts work from elinks. -- أحمد المحمودي (Ahmed El-Mahmoudy) Digital design engineer SySDSoft, Inc. GPG KeyID: 0x9DCA0B27 (@ subkeys.pgp.net) GPG Fingerprint: 087D 3767 8CAC 65B1 8F6C 156E D325 C3C8 9DCA 0B27 _______________________________________________ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users