Mandriva Expert
The place where your Mandriva Linux system finds support

urpmi broken due to perl upgrade

+/- details
User linux_monkey_8948
Incident Number 94886
Date 2006/01/03 03:13
Status Incident closed
Paid No

Product Mandrakelinux 10.1 (Official)
Architecture x86_32
Scope Other Components

Products owned
Community Support question - to convert into a paid question, click here

Lines in bold below have not yet been seen by the customer - those in blue are from the customer

Username : Date : Action : Comments [ close all ]    
 
linux_monkey_8948 : 03/01/06 03:13 AM : Incident created
-   I needed to install the mono project and gtk# for a project. Mono installed fine. However, after running "urpmi gtk#" and everything installed fine, I could no longer use urpmi, vi, nor any of the drak tools. The problem seems to be that the gtk# package perhaps upgraded perl and broke any of the existing programs that use perl.

How can I restore my ability to use urpmi and vi?

The errors when trying to run urpmi:

# urpmi modula
Can't locate URPM.pm in @INC (@INC contains: /usr/lib/perl5/5.8.6/i386-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i386-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.8.5/urpm.pm line 16.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/urpm.pm line 16.
Compilation failed in require at /usr/sbin/urpmi line 22.
BEGIN failed--compilation aborted at /usr/sbin/urpmi line 22.


errors when I try to run vi:

# vi /etc/resolv.conf
vi: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

 
Linegod_7611 : 03/01/06 07:55 AM : Reply received
-   Please provide the output of the following:

# rpm -qa|grep perl-URPM
# rpm -qq|grep urpmi
# uname -a

And did which repositories where you using when you installed gtk?

------------
Note: If this answer resolves your problem, please remember to close this
incident.

 
linux_monkey_8948 : 04/01/06 04:40 AM : More info provided
-   Thank you so much for your reply. I solved the problem.

I was hoping that restoring to the version of perl on the install CD would work, but I was afraid to try because of dependencies. I eventually put CD1 into my drive (the system automounted it). Then I used Nautilus (for the purpose of quickly browsing through the CD) and navigated to /mnt/cdrom/media/main.

I then found the orignal perl packages (perl-5.8.5-3mdk.i586.rpm) and perl-base-5.8.5-3mdk.i586.rpm

I ran the following commands:
rpm -U --force --nodeps /mnt/cdrom/media/main/perl-5.8.5-3mdk.i586.rpm

rpm -U --force --nodeps /mnt/cdrom/media/main/perl-base-5.8.5-3mdk.i586.rpm

That restored my urpmi and my vi.

Now I will begin using my machine again and will fix any other of these problems as I encounter them.

As far as GTK# and the mono project, I guess I will be manually installing them instead of using the packages, although I will check and make sure my destination URLs are correct for urpmi.

Thank you again for offering to help.

 
 
linux_monkey_8948 : 04/01/06 04:52 AM : Incident closed
-   Although I ended up solving the problem before seeing Linegod's reply, Linegod was asking me for the output of commands I did use to troubleshoot the problem, so I know he was immediately heading in the same direction I used to solve the problem.



This Incident is closed. It can not be edited anymore. You can create a new one by signing up/logging in your Mandriva Expert account.

  Mandriva  |  Contact  |  Legal  |  Privacy  |  Careers