![]() |
I get "invalid ELF header” when trying to start a perl script in irssi
I used to run this script just fine on my old server (Debian 5 Lenny x32)…. but doesn’t seem to work with this new one… though both will have different software installed..
I tell the script to load and I get: 04:55 -!- Irssi: Error loading module testScript/testScript: /user/.irssi/scripts/autorun/testScript.pl: invalid ELF header The script code: Code:
#/script load autorun/testScript.pl Running: Debian 5 (Lenny) amd x64 This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi irssi 0.8.14 (20090728 1938) Perl it’s self seems to work, because i’v run some other Perl scripts directly (perl ./script.pl) and they work fine) Any ideas as to what is going on here and how I might be able to fix it? Cheers, Techono |
Did you copy any of the old stuff (x32) across from the
old install, did you install x64_86 over the top of the old one? That would be my first suspicion - that there's some 32 bit code floating around that doesn't want to work in the current (new) x64_86 environment. My attempts to finding those executables would go through your irssi tree and use file to find out what you got there... something like: Code:
find /user/.irssi -type f | xargs file | grep -i ELF.*32 Cheers, Tink |
I used the following to install it: (think glib was needed for irssi too…)
Code:
wget http://ftp.gtk.org/pub/glib/2.23/glib-2.23.1.tar.gz But oh well, turns out I had several other issues, (I compiled most of the stuff I installed, turns out that wasn’t the best idea :P) so i’v reinstalled the server and doing the majority with apt-get this time, irssi seems to be working fine with the scripts now… But thanks for your help, im sure it will prove useful to someone else one day. |
All times are GMT -5. The time now is 12:12 PM. |