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 |
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. |
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 |
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:
Quote:
|
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 |
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:
|
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 |
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 Quote:
|
This is the response I get for urpmq util-linux:
Quote:
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 |
Quote:
Code:
urpmi util-linux Quote:
Quote:
|
All times are GMT -5. The time now is 02:58 AM. |