# SLES 11 SP1 : libusb version dependency issue

**URL:** https://forums.suse.com/t/sles-11-sp1-libusb-version-dependency-issue/25625
**Category:** SLE Software Developer Kit (SDK)
**Created:** [May 23, 2014, 6:21pm UTC](https://forums.suse.com/t/sles-11-sp1-libusb-version-dependency-issue/25625 "2014-05-23T18:21:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tbjx46](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@tbjx46](https://forums.suse.com/u/tbjx46)
#### Post date: [May 23, 2014, 6:21pm UTC](https://forums.suse.com/t/sles-11-sp1-libusb-version-dependency-issue/25625/1 "2014-05-23T18:21:48Z")

</div>

I have a JPOS/corescanner app developed and running fine on SP2 and uses the latest libusb 1.0.

I am unable to run the same app on SP1 out of the box and requires me to fix the dependency on latest libusb 10.

I installed the required libusb 1.0 and tried installing my app again but it still says that dependency is not fulfilled. I thought the system is still considering the older libusb 0.1 as default and removing it might help but it just removes everything dependent on it too. Is there a way I can make my app bind to the newly installed libusb 1.0??

Thanks in advance for help.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [May 23, 2014, 9:01pm UTC](https://forums.suse.com/t/sles-11-sp1-libusb-version-dependency-issue/25625/2 "2014-05-23T21:01:32Z")

</div>

In the shell or script where you load your application you can use  
LD\_PRELOAD to point to a specific library to be used before any other is  
sought/found, or LD\_LIBRARY\_PATH to point to directories where libraries  
exist that should be used before the system defaults. For example:

## Code:

## export LD\_LIBRARY\_PATH=‘/usr/lib/libusb10-directory’ /path/to/your/application.sh

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

### Author: ![tbjx46](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@tbjx46](https://forums.suse.com/u/tbjx46)
#### Post date: [May 26, 2014, 3:03pm UTC](https://forums.suse.com/t/sles-11-sp1-libusb-version-dependency-issue/25625/3 "2014-05-26T15:03:58Z")

</div>

Thanks a lot for the help ab 🙂 But the issue is we do not wish to effect other running stuffs that depend on the older libusb. Will LD\_PRELOAD do the job in isolation for our particular app or it will over ride the usb libraries at complete system scale?? If so , is there any other way to help me install my rpm with usb 1.0 dependency?? and also Please notice that I have not even been successfull at installing the rpm yet because of the dependency

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [May 26, 2014, 4:09pm UTC](https://forums.suse.com/t/sles-11-sp1-libusb-version-dependency-issue/25625/4 "2014-05-26T16:09:53Z")

</div>

Both options, LD\_PRELOAD and LD\_LIBRARY\_PATH, are meant to override system  
defaults for newly-loaded programs only. You can read a lot more about  
them online as they are commonly used.

If you cannot get the RPM installed then that’s your bigger issue. If  
missing dependencies are the problem, resolve them. If conflicting  
dependencies are the problem, you could get the necessary packages,  
manually unpack them to a directory structure of your choice separate from  
the system stuff, and then use LD\_LIBRARY\_PATH to point there before  
running your program.

With all of that said, SP3 is current, SP2 is kind of old, and SP1 is  
really old. I’d try to get up to SP2 since you know that works and then  
deal with exceptions from there rather than dealing with exceptions on SP1.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

### Author: ![plinnell](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@plinnell](https://forums.suse.com/u/plinnell)
#### Post date: [June 24, 2014, 10:33pm UTC](https://forums.suse.com/t/sles-11-sp1-libusb-version-dependency-issue/25625/5 "2014-06-24T22:33:29Z")

</div>

I can only second the advice of using the latest SP3. Backporting library support to older systems is notoriously difficult and painful in most circumstances.
