Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
invalid ELF header, Readline Perl6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 713
Location: Barcelona, Spain

PostPosted: Tue Apr 24, 2018 5:39 pm    Post subject: invalid ELF header, Readline Perl6 Reply with quote

This message appears when installing Perl6 Readline with zef:

Code:
Cannot locate native library 'libreadline.so': /usr/lib64/libreadline.so: invalid ELF header


Digging on this issue, /usr/lib64/libreadline.so is a "linker script". Perl6 Readine can be installed by linking /lib64/libreadline.so.7.0 in /usr/lib64 as suggested here. For example, being in /usr/lib64/:

Code:
mv libreadline.so libreadline.so.backup
ln /lib64/libreadline.so.7.0 libreadline.so


Readline correctly installs with 'zef install Readline', and Perl6 RELP works correctly. I can revert back to the previous situation by:

Code:
rm libreadline.so
mv libreadline.so.backup libreadline.so


After reverting to the original situation, Perl6 RELP stops working with the message: "I ran into a problem while trying to set up Readline: Could not instantiate role 'ReadlineBehavior'"

The questions: Would it be all right to leave the link. Should it be a symbolic link?

Thanks! :D :)
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum