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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-10-2008, 03:12 AM
|
#1
|
Member
Registered: May 2008
Posts: 227
Rep:
|
Library versions on older 2.4 kernel
Hi,
I'm trying to get pcsc-lite working on an older 2.4 kernel(Mandrake 9.1) to support. Yes I know it's old but I have to use it, bear with me and please don't advise me to upgrade
Anyway, I tried to install one of the latest version of the pcsc-lite library, which is 1.4.102, and while doing a ./configure, it complains that my version of libusb is too old, and that I should upgrade to at least 0.1.7.
I'm wondering if there are any problems with installing a later version of libusb(either RPM or source) to an older 2.4 kernel?
Thanks.
|
|
|
11-10-2008, 04:52 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
"libusb" supports all kernels from 2.2 .
So it should be no problem to install "0.1.7"
or newer.
"rpm package" for 9.1 , probably not, but you
can get the source from
http://libusb.sourceforge.net/download.html
Regards
|
|
|
11-10-2008, 05:12 AM
|
#3
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
I also think it should work, as long as you use a recent enough version of both the 2.4 kernel and libusb.
|
|
|
11-11-2008, 03:38 AM
|
#4
|
Member
Registered: May 2008
Posts: 227
Original Poster
Rep:
|
Thanks. Where can I get libusb-devel source from also?
Also, rpm doesn't seem to detect that my libusb/libusb-devel are installed. It gives me the following error when I try to remove the package via "rpm -e <package>" :
Code:
error: package libusb is not installed
When I do a "urpmi libusb" however, it tells me that everything has been installed. So what's the deal?
Last edited by galapogos; 11-11-2008 at 03:49 AM.
|
|
|
11-11-2008, 10:29 PM
|
#6
|
Member
Registered: May 2008
Posts: 227
Original Poster
Rep:
|
Thanks!
OK, so I got the libusb/libusb-devel 0.1.7 rpm packages for 9.x(actually in the fine print it states that it's for 9.2 but I'm gonna assume it works for 9.1 as well).
However I'm having some problems updating my 0.1.6a to 0.1.7.
I first tried a rpm -ivh libusb0.1_4-devel-0.1.7-1mdk.i586.rpm but it gives me the following error:
Code:
Preparing... ########################################### [100%]
file /usr/lib/libusb-0.1.so.4 from install of libusb0.1_4-0.1.7-1mdk conflicts with file from package libusb0.1_4-0.1.6a-2mdk
I then tried to uninstall the old version with rpm -e libusb0.1_4-0.1.6a-2mdk but got the following error:
Code:
error: removing these packages would break dependencies:
libusb0.1_4 >= 0.1.5 is needed by libgphoto2-2.1.1-2mdk
libusb0.1_4 >= 0.1.6 is needed by gphoto2-2.1.1-2mdk
libusb0.1_4 = 0.1.6a-2mdk is needed by libusb0.1_4-devel-0.1.6a-2mdk
libusb-0.1.so.4 is needed by kdegraphics-3.1-9mdk
libusb-0.1.so.4 is needed by libgphoto2-2.1.1-2mdk
libusb-0.1.so.4 is needed by libsane1-1.0.11-5mdk
libusb-0.1.so.4 is needed by sane-backends-1.0.11-5mdk
Then I tried the upgrade function of rpm with rpm -Uvh libusb0.1_4-devel-0.1.7-1mdk.i586.rpm but it gave this error
Code:
error: failed dependencies:
libusb0.1_4 = 0.1.6a-2mdk is needed by libusb0.1_4-devel-0.1.6a-2mdk
How exactly do I update the library? Should I use the --force, nodeps, replacepkgs, replacefiles options?
Thanks.
Last edited by galapogos; 11-11-2008 at 10:41 PM.
|
|
|
11-11-2008, 10:57 PM
|
#7
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Tis' what people mean when they say "binary rpm dependency hell".
If you really need the newer version of libusb, then your best bet is to install it locally from source, either on your home or /usr/local. Use it only for development purposes, and leave your OS be happy with it's native version.
Last edited by i92guboj; 11-11-2008 at 11:00 PM.
|
|
|
11-11-2008, 11:46 PM
|
#8
|
Member
Registered: May 2008
Posts: 227
Original Poster
Rep:
|
Problem is I don't know where to find the same version in source format.
So there's no way of updating these libraries? Seems like a pretty trivial task to be so difficult to perform. 
|
|
|
11-12-2008, 12:01 AM
|
#9
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
On the libusb official repositories you should be able to find all the versions.
http://sourceforge.net/project/showf...ackage_id=1632
About updating... Well, it depends. rpm might have some way to force the installation without caring about the dependencies. But if the dependency is *hard*, then all the programs linked against libusb on your system will stop working, or will work defectively, and that can cause all kind of problems.
By "hard dependency" I mean a dependency on a given API that's available on 0.6 and is not in 0.7. Or some major changes that will make it impossible for the program to adequately link against the new version. If the dependency is imposed by the rpm packages themselves then there shouldn't be any problem, but if the dependency is real then you definitely can't just take away 0.6 and substitute it with 0.7.
Besides that, if you are compiling pcsc, what's the problem with compiling one more package?
|
|
|
11-12-2008, 12:57 AM
|
#10
|
Member
Registered: May 2008
Posts: 227
Original Poster
Rep:
|
No problem. I just thought that an rpm that's specific to my distro would be better. Anyway, I managed to install the 0.1.7 package using urpmi instead...however pcsc-lite seems to have some problems detecting its existence.
|
|
|
11-12-2008, 01:02 AM
|
#11
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Note that on binary distros you might need a separate -devel package with the headers, I don't know if that's the case here, but it might worth a check.
|
|
|
11-12-2008, 01:06 AM
|
#12
|
Member
Registered: May 2008
Posts: 227
Original Poster
Rep:
|
Yes I've actually downloaded and installed both the libusb and libusb-devel 0.1.7 packages for Mandrake 9.x. I think that should do it?
Weird thing is that when I did a urpmi libusb before I installed the 0.1.7, it said everything is installed. I had to do a urpmi libusb0.1_4-0.1.7-1mdk before it would install. In fact it prompted me that the existing version would need to be uninstalled before installation of 0.1.7 would proceed, and I agreed.
However, now when I do a urpmi libusb, it prompts me again that 0.1.7 needs to be uninstalled before installation would proceed. I suspect that urpmi libusb somehow assumes that the 0.1.6a is the one to be installed? Just a shot in the dark...
|
|
|
11-12-2008, 01:39 AM
|
#13
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by galapogos
Yes I've actually downloaded and installed both the libusb and libusb-devel 0.1.7 packages for Mandrake 9.x. I think that should do it?
|
Usually yes. Though I don't use an rpm based distro.
Quote:
Weird thing is that when I did a urpmi libusb before I installed the 0.1.7, it said everything is installed. I had to do a urpmi libusb0.1_4-0.1.7-1mdk before it would install. In fact it prompted me that the existing version would need to be uninstalled before installation of 0.1.7 would proceed, and I agreed.
However, now when I do a urpmi libusb, it prompts me again that 0.1.7 needs to be uninstalled before installation would proceed. I suspect that urpmi libusb somehow assumes that the 0.1.6a is the one to be installed? Just a shot in the dark...
|
Can't be sure but that seems to be the case. Maybe that could be solved by building your own rpm from an srpm (don't ask me how, rpm is not my cup of tea).
However that would only solve the dependency issues, and it doesn't explain why pcsc doesn't catch it. Maybe whatever rpm you are using has been packaged with different paths or something.
|
|
|
11-19-2008, 01:38 AM
|
#14
|
Member
Registered: May 2008
Posts: 227
Original Poster
Rep:
|
Thanks. Turns out that pcsclite doesn't support libusb 0.1.7 despite saying that it does. A mistake in the documentation. I was advised to install the latest libusb version instead, which is 0.1.12. Problem is, I can't uninstall the current libusb package with so many dependencies. Is it acceptable to simply install from the new 0.1.12 source?
|
|
|
11-20-2008, 05:52 AM
|
#15
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by galapogos
Thanks. Turns out that pcsclite doesn't support libusb 0.1.7 despite saying that it does. A mistake in the documentation. I was advised to install the latest libusb version instead, which is 0.1.12. Problem is, I can't uninstall the current libusb package with so many dependencies. Is it acceptable to simply install from the new 0.1.12 source?
|
It usually should be, but don't count on it. There might be leftovers that can interfere in lots of colorful ways in the future. The right way is to remove it using the scripts provided (uninstall.sh, make uninstall or whatever). You can as well reinstall it using make install, look at the file list on the output of make, and remove them all by hand). Then you can install the new version.
Maybe I didn't understand you well, but the dependencies shouldn't have nothing to do with that. At most, if some of them depends on libusb you might need to recompile them afterwards. But nothing else.
|
|
|
All times are GMT -5. The time now is 06:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|