Welcome to the iTechForums.
If this is your first visit, be sure to check out the
FAQ by clicking the link above.
You may have to
register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
|
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 2
Members:
Number of Users Online:
Welcome to our newest member, |
|
 |

05-14-2008, 09:47 PM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 1
|
|
OpenWRT and perl - compilation problem?
Hello,
I am currently running openWrt on wrt54gl router. I have installed full perl (5.8), and I can run scripts that do no require any modules (other than the base ones, for example, printing "hello world" works just fine). However, when i try to run scripts with "use <module>", I get error like this,
Can't load '/usr/lib/perl/5.8/auto/IO/IO.so' for module IO: Unable to resolve symbol at /usr/lib/perl/5.8/XSLoader.pm line 83.
at /usr/lib/perl/5.8/IO.pm line 9
Compilation failed in require at /usr/lib/perl/5.8/IO/Handle.pm line 256.
BEGIN failed--compilation aborted at /usr/lib/perl/5.8.0/IO/Handle.pm line 256.
Compilation failed in require at /usr/lib/perl/5.8.0/IO/Socket.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl/5.8.0/IO/Socket.pm line 11.
Compilation failed in require.
BEGIN failed--compilation aborted.
Any one know how to fix it?? thanks
|

05-14-2008, 09:58 PM
|
|
Member
|
|
Join Date: May 2008
Posts: 39
|
|
The installed modules are not compatible with the version of perl being executed. Notice how some paths say 5.8, and some say 5.8.0? That's the dead giveaway. To get started debugging this, find the exact perl in your shebang line and execute it with -v to get the EXACT version. E.g.
/usr/bin/perl -v
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
All times are GMT. The time now is 04:40 AM.