LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-06-2004, 06:52 AM   #1
Law1213
Member
 
Registered: Jul 2004
Location: UK
Distribution: Gentoo
Posts: 52

Rep: Reputation: 17
Exclamation help!! - mdk drakconf


Hi,

ok I've ran into a problem. This is how it started, I was upgrading python 2.2 to 2.3 using an rpm, anyway the installation seemed to go smoothly until I noticed my package management tools (the handy mandrake app for installing rpms) and drakconf have disappeared. So, I went straight to the console and typed drakconf and it said it didnt exist, so I installed it from the mandrake CD. When I run drakconf now it says,

"Can't locate common.pm in @INC (@INC contains: /usr/lib/libDrakX /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl .) at /usr/sbin/drakconf line 28.
BEGIN failed--compilation aborted at /usr/sbin/drakconf line 28"

so I did a locate on common.pm and copied it to @INC. Now when I run drakconf it says,

"Undefined subroutine &main::check_for_xserver called at /usr/sbin/drakconf line 30."

and that is where Im stuck what does it mean? and how can I fix it? I need some linux guru help here.

Thanks in advance

ps Also if you have an rpm package and all its dependencies are in the same directory is there away to get it to automatically install the deps needed with out going through each on and installing your self?

Last edited by Law1213; 09-06-2004 at 07:36 AM.
 
Old 09-06-2004, 07:59 AM   #2
Law1213
Member
 
Registered: Jul 2004
Location: UK
Distribution: Gentoo
Posts: 52

Original Poster
Rep: Reputation: 17
Smile Just an Update

ok I painfully went through and made sure I had all the dependencies for drakconf installed, which include drakxtools, hardware-ui, menudrake, userdrake and all there deps and now darkconf works, however I am still missing my nice rpm ui (package management gui which comes with mandrake) any help on how to install that would be great.
 
Old 09-06-2004, 09:33 AM   #3
Law1213
Member
 
Registered: Jul 2004
Location: UK
Distribution: Gentoo
Posts: 52

Original Poster
Rep: Reputation: 17
hi,

Managed to find some help, installed RPMdrake, had to restart the X Server and then the menus and progs were restored

Hope this helps someoone else
 
Old 09-06-2004, 12:33 PM   #4
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Hi
First when you upgraded your python did you used a force option ,ie
instead of
rpm -Uvh python-blah.rpm
you used
rpm -Uvh --force python-blah.rpm
Now when I did
rpm -q --whatprovides /usr/lib/libDrakX/common.pm I got
drakxtools-newt-10-29mdk
(I am also using Mandrake)
The routine that you are having trouble with uses the file /usr/sbin/drakxconf
check whether the array modifier
use lib '/usr/lib/libDrakX'
is included in the first lines of the files you are having trouble with
to do that you can
1)check the INC array by
Code:
$perl -e 'foreach (@INC) { print "$_\n"}'
2)If the location of common.pm( I found that to be in /usr/lib/libDrakX) is not in the output of (1) then
check on the individual files like /usr/bin/drakconf using a editor (like vim or gedit) and check whether it contains the line
Code:
use lib '/usr/lib/libDrakX'
As for the dependency question
do a
rpm -q --requires to a rpm
Example:I did this and got
Code:
$rpm -q --requires drakconf
mandrake-release  
drakxtools > 10-12mdk
harddrake-ui > 10-12mdk
popt >= 1.6.4-24mdk
usermode  
perl-Gtk2 >= 1.023-1mdk
perl-Gnome2-Vte  
gtk+2.0 >= 2.2.0-3mdk
perl-MDK-Common >= 1.0.4-16mdk
menudrake >= 0.7.2-1mdk
userdrake >= 0.92-6mdk
/bin/sh  
/bin/sh  
/bin/sh  
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
perl-base  
perl(Gnome2::Vte)  
perl(POSIX)
now while installing do a rpm of all the packages that are required at once
So to install drakconf do
Code:
rpm -ivh drakxtools-blah.rpm harddrake-ui-blah.rpm blah.rpm blah.rpm
The best solution for novice users is to use a GUI rpm manager like those in mandy distributions.
Robin
 
Old 09-07-2004, 05:44 AM   #5
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
there is another way ( as i noticed that you use mandy)
you can use urpmi
example
$urpmi drakconf
will return
Everything is installed
if everything is ok.
so try
urpmi <packagename in which you are having trouble>
or
urpmi <rpm with dependencies>
it will try to install the dependencies itself
check
man urpmi
man urpmq
and remember the $ sign above represents the shell
Robin
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
drakconf charnel Linux - Newbie 1 03-24-2005 03:34 PM
9.2 Drakconf MCC Maurice Arthur Mandriva 3 05-02-2004 05:35 PM
drakconf will not load latkinson6 Linux - Newbie 2 09-13-2002 04:26 AM
what did i do.. drakconf gives me error.... doublefailure Linux - Distributions 2 06-29-2002 11:55 AM
Problem with DrakConf veloctTX Linux - General 2 10-16-2000 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration