Login
Search
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,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2008, 09:47 PM
mir a mir a is offline
Junior Member
 
Join Date: May 2008
Posts: 1
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-14-2008, 09:58 PM
martinthurn martinthurn is offline
Member
 
Join Date: May 2008
Posts: 39
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Router problem, mixed with some xbox dns problem, and a tad of att dsl problem?.....? Brian DNS 0 05-13-2008 06:53 AM
Is there a possibility to add the time of compilation to a program in C#? Tobias C, C++ 0 05-06-2008 09:39 PM
Perl ....how to write it correctly with Perl ?!? viki k Perl 0 05-06-2008 05:40 PM

Your Ad Here

All times are GMT. The time now is 05:12 AM.