error message: libreadline.so.6 too short

Posted:
Dec 10th, '11, 06:57
by kensor
Recently I inquired about a libreadline.so.5 message received when attempting to install the rpm version of the programming language Agena. At the suggestion here recompilation would be in order, I messaged the developer asking details about that, and in reply he suggested just linking the newer version 6 library that Mageia uses to the Agena system. Long story short, not only does that not work, but now I have an error message on my system's reboot to the effect that shared library loading was aborted with a message libreadline.so.6 is too short (yes, its file size is 0), but now the Add/Remove software function in Control Center aborts abnormally with a similar message in its verbiage. An ls of the /lib directory has libreadline.so.6 in white letters blinking in a red rectangle followed by an @. I tried to use urpmi from the command line to see if I could download just a libreadline.so.6 package, but urpmi fails because of the libreadline problem.
Is there some way I can download appropriate code to extricate my system from this mess caused by a university class assignment to learn a new programming language in the second week before final examinations?
Re: error message: libreadline.so.6 too short

Posted:
Dec 10th, '11, 07:20
by dubigrasu
has libreadline.so.6 in white letters blinking in a red rectangle followed by an @.
That means a broken link.
Is other
libreadline.so.* present in the same directory?
Re: error message: libreadline.so.6 too short

Posted:
Dec 10th, '11, 07:28
by kensor
There are two other link files of 16 and 18 characters, but no longer libreadline.so files.
Re: error message: libreadline.so.6 too short

Posted:
Dec 10th, '11, 07:49
by dubigrasu
Try then to reinstall libreadline from console as root:
- Code: Select all
urpmi libreadline6
if is already installed but somehow crippled:
- Code: Select all
urpmi --replacepkgs libreadline6
Edit: Ah, sorry I forgot you can't do that either.
http://ftp5.gwdg.de/pub/linux/mageia/di ... 1.i586.rpmdownload the above package and install it from console in the same directory where it resides:
- Code: Select all
rpm -i libreadline6-6.2-1.mga1.i586.rpm
or
- Code: Select all
rpm -i --force libreadline6-6.2-1.mga1.i586.rpm
Eventually if anything fails, extract the package and manually copy the files.
Re: error message: libreadline.so.6 too short

Posted:
Dec 10th, '11, 11:45
by doktor5000
Just a related sidenote, rpm can perfectly download itself, so
- Code: Select all
rpm -ihv http://ftp5.gwdg.de/pub/linux/mageia/distrib/1/i586/media/core/release/libreadline6-6.2-1.mga1.i586.rpm
should do the trick

Re: error message: libreadline.so.6 too short

Posted:
Dec 10th, '11, 11:50
by dubigrasu
Ha!
Never crossed my mind to try that thanks, that's good to know.
Re: error message: libreadline.so.6 too short

Posted:
Dec 10th, '11, 18:25
by doktor5000
RPM has inbuilt support for most download protocols since ages, be it ftp, http, maybe even rsync?