Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Perl bytecode
PostPosted: Sun Jan 30, 2011 5:15 pm 
Offline
Newbie

Joined: Mon Jan 24, 2011 1:00 am
Posts: 2
Location: Russia
Perl script contains compiled bytecode and outputs this error: Invalid bytecode for this architecture: wrong architecture (want i686-linux, you have i386-linux-thread-multi). How to fix it? What Linux distro has i686 Perl (>=5.8) package built without threads?

Many thanks!


Top
   
 Post subject:
PostPosted: Tue Feb 01, 2011 2:27 pm 
Offline
Senior Newbie

Joined: Wed Nov 03, 2010 7:11 pm
Posts: 6
Location: Pittsburgh, PA
Your best bet is to get the version of the script/package that has the uncompiled architecture-dependent PerlXS/C code and compile the package directly on your system. This is fairly common with arch-dependent Perl packages. If you get the uncompiled package it's usually just a matter of 'perl Makefile.pl; make; make test; make install'.

The alternative is to recompile your Perl to match what the package is looking for, but that's major overkill unless you cannot get the uncompiled version of the package and you absolutely have to have that package. (And you'll likely break other stuff in the process.)

As far as which distros come prepackaged with that exact build of Perl I can't say. I can say that Fedora 13 has i386-linux-thread-multi and Ubuntu 10.10 has i686-linux-gnu-thread-multi (both 32-bit builds of course).

Cheers.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group