LinuxQuestions.org
Help answer threads with 0 replies.
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 11-10-2008, 03:12 AM   #1
galapogos
Member
 
Registered: May 2008
Posts: 227

Rep: Reputation: 30
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.
 
Old 11-10-2008, 04:52 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"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
 
Old 11-10-2008, 05:12 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
I also think it should work, as long as you use a recent enough version of both the 2.4 kernel and libusb.
 
Old 11-11-2008, 03:38 AM   #4
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
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.
 
Old 11-11-2008, 10:14 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
1) If you choose to compile and install from source,
you will get everything, all libs, all devel files.

2) Packages version 0.1.7 are here for mdk 9.X
http://rpm.pbone.net/index.php3/stat....i586.rpm.html
http://rpm.pbone.net/index.php3/stat....i586.rpm.html

You will have to try out yourself, if they are working in
your system.
 
Old 11-11-2008, 10:29 PM   #6
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
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.
 
Old 11-11-2008, 10:57 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.
 
Old 11-11-2008, 11:46 PM   #8
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
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.
 
Old 11-12-2008, 12:01 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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?
 
Old 11-12-2008, 12:57 AM   #10
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
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.
 
Old 11-12-2008, 01:02 AM   #11
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.
 
Old 11-12-2008, 01:06 AM   #12
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
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...
 
Old 11-12-2008, 01:39 AM   #13
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by galapogos View Post
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.
 
Old 11-19-2008, 01:38 AM   #14
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
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?
 
Old 11-20-2008, 05:52 AM   #15
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by galapogos View Post
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.
 
  


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
How to find the elevator algorithm used by running kernel in older versions vduvvuru Linux - Kernel 2 03-12-2008 08:35 AM
Grub and Older Kernel Versions BarfBag Ubuntu 1 01-10-2006 09:17 AM
Revoval of older kernel versions strobart Fedora 4 11-30-2004 11:16 AM
how to use older versions of glibc turls Programming 4 07-07-2004 03:40 PM
older versions alaios Linux - General 9 10-01-2003 12:29 PM

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

All times are GMT -5. The time now is 06:56 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