LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-26-2005, 10:16 PM   #1
dpeirce
Member
 
Registered: Mar 2004
Location: Central Texas
Distribution: Kubuntu, Fedora, DamnSmall, etc, etc
Posts: 78

Rep: Reputation: 15
Install lib file???


I want to ask a question about the install of cfdisk on mandriva 2005 LE. Using the control center, the install fails through a lack of the file libncurses.so.4. As it turns out, I have these files in /lib: libncurses.so, libncurses.so.5, and libncurses.so.5.4. I downloaded libncurses.so.4 and tried to install it but get no reaction from the control center or urpmi. I tried to install a package which contains libncurses.so.4 but Urpmi fails with a message indicating it doesn't want to install an older lib file over a newer version.

I was wondering if I could simply move libncurses.so.4 into /lib along with the other libncurses files? Would that break anything?

In faith, Dave
dave@christos.cjb.net, dpeirce@christian.net
Viva Texas
 
Old 10-26-2005, 11:07 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
You don't need to use cfdisk in Mandriva - they partitioning program in the Mandrake Control Centre is far nicer, and it can resize partitions without destroying data.

The whole libncurses thing is probably because Mandriva has libncurses5, whereas whatever cfdisk you're trying to install wants 4. Just putting a libncurses.so.4 file in /lib may not work and probably isn't the best way to go about it. Where did you get the cfdisk package or source that you're trying to install? How are you trying to isntall it?

Update: cfdisk is part of the util-linux package. Goto menu->System->Configuration->Packaging->Install Software and install that package. You may need to visit http://easyurpmi.zarb.org first if it can't find that package.
I'd still recommend just using diskdrake (the one in the Mandrake Control Centre and on the install CD) as its much easier and can alter partitions without destroying data.

Last edited by tkedwards; 10-26-2005 at 11:09 PM.
 
Old 10-27-2005, 12:59 AM   #3
dpeirce
Member
 
Registered: Mar 2004
Location: Central Texas
Distribution: Kubuntu, Fedora, DamnSmall, etc, etc
Posts: 78

Original Poster
Rep: Reputation: 15
Thanks for the response. I realize there's a partitioner in the control panel; I'm trying to learn how to install new programs in mandriva under various circumstances. I've run up against this older-newer libfile version problem before in mandriva and in other distros (notably Xandros) and am just wondering if there's a way around it. So I'm really not after cfdisk specifically, but if I can install it I will have an answer for these situations.

I don't remember now where I got the cfdisk package (cfdisk-glibc-0.8g-1.i386.rpm); I think it was pbone's.

BTW, I do have the full easy urpmi configuration, and have added Thac's site... however, it turns up a blank for the util-linux package.

So -- will moving the libncurses.so.4 file, which I've already downloaded, to /lib hurt me or break mandriva? I'm asking because I noticed there are already several versions of libncurses in /lib.

In faith, Dave
dave@christos.cjb.net, dpeirce@christian.net
Viva Texas
 
Old 10-27-2005, 02:15 AM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
util-linux is in the main repository. Make sure you've configured the main repo for 2005LE from easyurpmi - its definately in there. If you're having package/repository problems like this that may be why you keep getting library file version problems.

Quote:
I don't remember now where I got the cfdisk package (cfdisk-glibc-0.8g-1.i386.rpm); I think it was pbone's.
This is definately not a package for Mandrake, therefore you will get installation problems with it. If your urpmi can't find the util-linux package, goto easyurpmi, select the main repo, let it generate the urpmi.addmedia command and copy and paste the url part of that into your browser. Now browse the site and find and download util-linux. Eg. ftp://mirror.pacific.net.au/linux/Ma...86/media/main/

Quote:
So -- will moving the libncurses.so.4 file, which I've already downloaded, to /lib hurt me or break mandriva? I'm asking because I noticed there are already several versions of libncurses in /lib.
No it probably won't break anything too badly and any breakage can probably be fixed by deleting it again. But as I said above you should really just work out why your urpmi isn't working properly and use it to install util-linux. Trying to get programs working like this is very hacky and leads to you using unstable and usually out of date programs.
 
Old 11-02-2005, 06:17 PM   #5
dpeirce
Member
 
Registered: Mar 2004
Location: Central Texas
Distribution: Kubuntu, Fedora, DamnSmall, etc, etc
Posts: 78

Original Poster
Rep: Reputation: 15
OK, sorry for the delay in responding. There was a lot going on at Church this weekend until now and I got tied up.

First, I moved libncurses.so.4 to /lib, but rpmdrake doesn't seem to see it and cfdisk still won't install. I rebooted, and then told rpmdrake to reload its packages list, but it still reports that libncurses.so.4 is missing. Is there some way I can add this file to the packages list? Also I downloaded util-linux-2.12a-12mdk.rpm from the link you gave. However, my main desire isn't to obtain cfdisk but to learn more about installing programs which have that older-newer libfile problem.

Second, I have these urpmi sources enabled in my rpmdrake: main, updates, contrib, jpackage, plf-free, plf non-free, and thacs.rpms. According to rpmdrake, util-linux is not available. However, I used the USA Texas source since I live in Texas. I changed main to the Australia source but util-linux is still not available. ????

In faith, Dave
dave@christos.cjb.net, dpeirce@christian.net
Viva Texas
 
Old 11-02-2005, 07:07 PM   #6
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
You won't learn much by trying to do things the wrong way - you don't install individual library files by just putting them in the /lib directory like that. I only suggested it as a last resort hack kind of thing, and I didn't really expect it to work. If you really want to learn to do things manually then learn to build programs from source and how to deal with the necessary libraries and includes (usually just a matter of install the -devel package for whatever it is).

Quote:
However, my main desire isn't to obtain cfdisk but to learn more about installing programs which have that older-newer libfile problem.
The new-old libfile problem is already solved by systems such as urpmi. If you can't install util-linux using urpmi then your problem is something to do with urpmi - maybe post your /etc/urpmi/urpmi.cfg.
 
Old 11-02-2005, 07:17 PM   #7
dpeirce
Member
 
Registered: Mar 2004
Location: Central Texas
Distribution: Kubuntu, Fedora, DamnSmall, etc, etc
Posts: 78

Original Poster
Rep: Reputation: 15
OK, my urpmi.cfg file is:

# generated Wed Nov 2 18:06:31 2005
updates ftp://ftp.phys.ttu.edu/pub/mandrakel...5/main_updates {
hdlist: hdlist.updates.cz
key-ids: 22458a98
list: list.updates
update
with_hdlist: media_info/hdlist.cz
}

main ftp://mirror.pacific.net.au/linux/Ma...586/media/main {
hdlist: hdlist.main.cz
key-ids: 70771ff3
with_hdlist: media_info/hdlist.cz
}

contrib ftp://ftp.phys.ttu.edu/pub/mandrakel.../media/contrib {
hdlist: hdlist.contrib.cz
key-ids: 78d019f5
with_hdlist: media_info/hdlist.cz
}

jpackage ftp://ftp.phys.ttu.edu/pub/mandrakel...media/jpackage {
hdlist: hdlist.jpackage.cz
key-ids: c431416d
with_hdlist: media_info/hdlist.cz
}

plf-free ftp://ftp.planetmirror.com/pub/plf/mandrake/free/10.2 {
hdlist: hdlist.plf-free.cz
key-ids: caba22ae
list: list.plf-free
with_hdlist: hdlist.cz
}

plf-nonfree ftp://ftp.planetmirror.com/pub/plf/m.../non-free/10.2 {
hdlist: hdlist.plf-nonfree.cz
key-ids: caba22ae
list: list.plf-nonfree
with_hdlist: hdlist.cz
}

thacs.rpms http://rpm.nyvalls.se/10.2/RPMS {
hdlist: hdlist.thacs.rpms.cz
list: list.thacs.rpms
with_hdlist: hdlist.cz
}


I tried to build cfdisk from source... it complained about that same missing libncurses.4.so file. I didn't know if simply moving the file to /lib would work, and it didn't. Is there some way of registering these files? Where would I find the packages list?

In faith, Dave
dave@christos.cjb.net, dpeirce@christian.net
Viva Texas
 
Old 11-05-2005, 09:08 PM   #8
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
There must be something wrong with your urpmi - as we know that the util-linux package is in that main repo that you've setup. What does the command
Code:
urpmq util-linux
give?

Quote:
I tried to build cfdisk from source... it complained about that same missing libncurses.4.so file. I didn't know if simply moving the file to /lib would work, and it didn't. Is there some way of registering these files? Where would I find the packages list?
You could try running ldconfig after putting the libncurses file in there, but this is still the wrong way to do things. That cfdisk source you've got is an old version that is not compatible with your system - delete it. Cfdisk is part of the util-linux project (http://freshmeat.net/projects/util-linux/) and if you want to get the source for it get it from their FTP site (ftp://ftp.kernel.org/pub/linux/utils/util-linux/). A better way would be to get the source RPM from Mandriva's FTP site and build the source from that.
 
Old 11-05-2005, 09:29 PM   #9
dpeirce
Member
 
Registered: Mar 2004
Location: Central Texas
Distribution: Kubuntu, Fedora, DamnSmall, etc, etc
Posts: 78

Original Poster
Rep: Reputation: 15
This is the response I get for urpmq util-linux:
Quote:
util-linux|util-linux|util-linux|util-linux
Re cfdisk: cfdisk is just an example for me. It isn't cfdisk I want... it's to be able to install packages which depend on lib files older than the ones I already have installed. I run into that problem on a fairly regular basis and there are quite a few packages I simply can't install because of that issue. Sometimes I'd just like to try an older version of a program, but I can't. So I'm trying to find a way around that conflict between the old and new lib files. I have found through trial and error that static packages help *IF* they are available for the desired package. But static packages often aren't available.

I'll try running ldconfig tomorrow and will post back what happens.

And I did get the source package for cfdisk but it still called for that same "missing" lib file.

Thank you for your help.

In faith, Dave
dave@christos.cjb.net, dpeirce@christian.net
Viva Texas
 
Old 11-06-2005, 12:23 AM   #10
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
This is the response I get for urpmq util-linux:

quote:
util-linux|util-linux|util-linux|util-linux
That looks right- you should be able to install it with
Code:
urpmi util-linux
if you decide you want to.

Quote:
Re cfdisk: cfdisk is just an example for me. It isn't cfdisk I want... it's to be able to install packages which depend on lib files older than the ones I already have installed. I run into that problem on a fairly regular basis and there are quite a few packages I simply can't install because of that issue. Sometimes I'd just like to try an older version of a program, but I can't. So I'm trying to find a way around that conflict between the old and new lib files. I have found through trial and error that static packages help *IF* they are available for the desired package. But static packages often aren't available.
Unfortunately there isn't really any easy solution to this problem, although if you stick to packages made for your distro it won't happen. One way may be to download and build the older version of the library that you need with the installation prefix set to something like /opt. Then compile the app making sure to point it to /opt in the configure script options for libraries and includes.

Quote:
And I did get the source package for cfdisk but it still called for that same "missing" lib file.
You probably need to install the libncurses5-devel package, and make sure its the source package for the Mandriva package not some other one.

Last edited by tkedwards; 11-06-2005 at 12:25 AM.
 
  


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
Application needs lib file mickeyboa Fedora 1 11-30-2005 12:19 AM
Need Lost lib file, please JuJuJane Linux - Software 2 10-10-2005 07:11 PM
Installation failed: file /usr/X11R6/lib/libGL.so.1.2 from install of fglrx-glc22-4. witchy2k1 Linux - Newbie 13 01-25-2004 05:26 AM
lib file? ixion Linux - General 2 01-22-2003 05:22 AM
rpm install requires lib file blistfix Linux - General 2 08-25-2001 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:41 AM.

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