LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2003, 02:56 PM   #1
Hyperion007
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
/usr/bin/ld: cannot find -lusb error??


Hi

No one has been able to help me with this problem and I mean know one lol I have asked hundreds of so called linux experts, and none have given a solution that worked.

I am having no luck at all installing my adsl modems, either one.
I had decided to give l
Linux another go because people were swearing blind to me that it was getting a lot better, but it seems every time I try it again, no matter the distro, I always end up with an unfixable problem that I can’t solve. It simply scares me away, why does it have to be so hard to operate? It’s supposed to be a system designed to make my life easier not more stressful?

Anyways I am after installing either my Zoom modem or my Copperjet allied data 800 one, both adsl usb modems.

With the copperjet one I managed to get hold of a driver for it from sourceforge, and it looked to be the promising of the two for a success, but I am getting the following error when I do a, make

cc -I../lib/libusb -c common.c
cc -I../lib/libusb -lusb 5160.c common.o -o 5160
/usr/bin/ld: cannot find -lusb
collect2: ld returned 1 exit stats
make[1]:*** [5160] Error 1
make[1]:leaving dir the dir i was doing the make in
make:*** [911] error 2

Now I had a look around through google doing a search for, lusb, and found some forum posts relating to, usbutils, package, and it not being installed, so I checked and usbutils is installed on my machine,

So I am stumped, I have no clue what to do next??????????

Its so frustrating because I have the driver for the copperjet modem right here I just can’t install it because of that dumb error above.

If its not asking for usbutils with lusb in it, then what the hell is , -lusb, and how can I get it on my system?

Or if its not asking for -lusb then what the hell is it asking for??????
Can anyone out there help me at all?? I am a n00b and have no clue what to do next at all???

conenction is pppoe ATM via the usb modems.
ppp over ATM VCMU [RFC2364]

I am using Mandrake 9.1
Hyperion out

Last edited by Hyperion007; 08-20-2003 at 02:59 PM.
 
Old 08-21-2003, 04:16 AM   #2
arobic
Member
 
Registered: Jul 2003
Location: Geneva, Switzerland
Distribution: Debian 3.1, SLC3 (based on RHEL)
Posts: 84

Rep: Reputation: 15
Hi Hyperion007!

I am not a so-called expert in hardware installation in linux but I know a little bit how make works. So, the error your received tells you the following:

/usr/bin/ld is the linker (see man ld)

-lusb is the way gcc (via make) understand the library. Using gcc convention, this means that it is looking ofr the file called libusb.a located in one of the LIBDIRS written in your makefile. (see also man gcc)

So, this means gcc didn't find this library. So, two possible ways to fix it:
- Make is not looking in the directory where you have the file installed on your computer. You should find this directory and add it to your makefile
- You don't have the file installed on your computer.

That's the best I can do! I really hope it will work.

Best of luck!
 
Old 07-25-2016, 08:27 AM   #3
adityapappu
LQ Newbie
 
Registered: Jul 2016
Posts: 3

Rep: Reputation: Disabled
how to add directory to make file?

AS mentioned below I searched for libisb-dev. It's in the following directory /usr/include/.

Now how do I add this directory to the Makefile?
 
Old 07-25-2016, 08:27 AM   #4
adityapappu
LQ Newbie
 
Registered: Jul 2016
Posts: 3

Rep: Reputation: Disabled
how to add directory to make file?

AS mentioned below I searched for libusb-dev. It's in the following directory /usr/include/.

Now how do I add this directory to the Makefile?
 
Old 07-25-2016, 08:45 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by adityapappu View Post
AS mentioned below I searched for libisb-dev. It's in the following directory /usr/include/.

Now how do I add this directory to the Makefile?
Wow, you just necroed a 13-year old thread, and also said "mentioned below" when there is nothing mentioned below.

Welcome to Linux Questions, adityapappu, but please start a new thread with your question and give us as much info as you can (distro, flavour, what you're trying to do, versions of relevant packages and libraries etc.).

Many thanks indeed.
 
Old 07-25-2016, 07:28 PM   #6
adityapappu
LQ Newbie
 
Registered: Jul 2016
Posts: 3

Rep: Reputation: Disabled
/usr/bin/ld: cannot find /lib/x86_64-linux-gnu/libusb-0.1.so.4.4.4

When I try to build the build the usb-driver for Xilinx with sudo make lib32 I get the error shown in the screenshot.
Attached Thumbnails
Click image for larger version

Name:	linuxcommunity.png
Views:	296
Size:	109.2 KB
ID:	22560  
 
  


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
make error: /usr/bin/ld: cannot find -lXext ryedunn Linux - Software 20 11-16-2011 03:28 AM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 10:42 PM
error compiling cdrtools on kernel 2.6.0: /usr/bin/ld: cannot find -lscg qanopus Linux - Software 1 12-21-2003 08:15 AM
/usr/bin/ld: cannot find -lusb help??? Hyperion007 Linux - Hardware 1 08-20-2003 05:39 PM
linux command error message bash: /usr/bin/find: No such file or directory sundaram123 Linux - General 8 04-02-2002 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:12 PM.

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