LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-05-2010, 12:30 PM   #1
vijpri
LQ Newbie
 
Registered: Jan 2010
Location: India
Posts: 2

Rep: Reputation: 0
Im using FC 6,CANT INSTALL a library named libusb-0.1.12.


I am using FC 6, got d libusb-0.1.12 converter from .gz & then performed the following steps:
1. ./configure
2. make
3. make install
the manual says the library get installed into usr/local/bin or usr/local/include,& in my case it does excatly the same.But my problem is whenever i run any C program using that library functions like usb_init(void), many errors comes like 'stray 402',but when i just include the header file
usb.h without using any of its function no error comes.
PLEASE guide me how to compile & run a program using the fuctions of libusb,i.e only the steps to install that library & how to write a program using its functions.Actually they provided a test program that also is not running & similiar error comes when i use gcc please help me thru this,im totally new to Linux.
THANK YOU.
 
Old 01-05-2010, 12:50 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
That make install step should have been sudo make install unless you were running as "root," which - as a general rule - is a fairly stupid thing to be doing.

Note that FC6 has been unsupported for several years now, and no updates or security fixes are available for it. If you need a stable system with a strong similarity to the Fedora distribution, but with a supported lifetime greater than a year, consider centos.
 
Old 01-05-2010, 01:29 PM   #3
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by PTrenholme View Post
That make install step should have been sudo make install
Not necessarily, given that she/he is installing to the local (/usr/local) directory. On my system, /usr/local has the user root with read write and exec permissions, and the group "staff" also has read write and exec permissions. So, given that I've set up my local user to be a part of the group "staff", I don't need root or sudo to install to the /usr/local directory.

vijpri, does your system have /usr/local/bin in its PATH? Is this directory recognised? Likely it is, but it never hurts to check. Look at your /etc/bash.bashrc file, or at your local user's $HOME/.bashrc file, or $HOME/.bash_profile, to see. If you can find no indication that /usr/local is a recognised PATH, then in the $HOME/.bash_profile (also known as /home/<local user>/.bash_profile) file, add:
Code:
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
    PATH=~/bin:"${PATH}"
fi
Maybe this will help. I'm assuming your system uses bash, rather than ksh or sh or something else. In the latter cases, perhaps checking your $HOME/.profile files will give some clues.

Now the disclaimer: I am, admittedly, just shooting in the dark here with a very speculative answer.
 
Old 01-05-2010, 02:00 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by vijpri View Post
I am using FC 6, got d libusb-0.1.12 converter from .gz & then performed the following steps:
1. ./configure
2. make
3. make install
the manual says the library get installed into usr/local/bin or usr/local/include,& in my case it does excatly the same.But my problem is whenever i run any C program using that library functions like usb_init(void), many errors comes like 'stray 402',but when i just include the header file
usb.h without using any of its function no error comes.
PLEASE guide me how to compile & run a program using the fuctions of libusb,i.e only the steps to install that library & how to write a program using its functions.Actually they provided a test program that also is not running & similiar error comes when i use gcc please help me thru this,im totally new to Linux.
THANK YOU.
To add to what others have told you...if you're trying to install a current piece of software, you're going to have problems. Your system is very, VERY old.

The latest Fedora is 12...Fedora 10 has been unsupported for a while now, 6 may not EVER do what you're wanting, without a LOT of custom work. The best thing to do would be to do a fresh install of FC12, or go with CentOS, etc., as was suggested.
 
Old 01-05-2010, 03:00 PM   #5
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by TB0ne View Post
To add to what others have told you...if you're trying to install a current piece of software, you're going to have problems. Your system is very, VERY old.
A few years doesn't qualify as "very very old" in my books. I believe FC6 uses a 2.6 kernel (2.6.18), and from the libusb-0.1 website, it states: "Current OS support for Linux is 2.2, 2.4 and on." Given this information, FC1 would be sufficient, never mind FC6. Given that vijpri is using libusb-0.1.12 (a legacy release, rather than the current stable release of 1.0), it makes sense that an older compatible OS would be used. Perhaps vijpri has an older computer, in which it may make sense to use older software.
 
Old 01-05-2010, 04:21 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
The hardware requirements for FC4-F12(at least) and Centos are exactly the same, so the "older computer" does not enter into the equation. It is also pretty tough to justify saying that a version that is six(6) versions behind(current) is not a very old version. Remember Fedora is a development distro(as in bleeding edge).


As Centos 5.4 is currently using libusb-0.1.12 you may want to consider using it or pulling the source rpm to see what had to be done to get it to run properly(Centos/REHL5.X was based on FC6).
 
Old 01-05-2010, 05:12 PM   #7
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
There's an rpm here for it. Why suffer when you can just use a package? I'm assuming a 386 system, but if not, just check http://rpm.pbone.net/. If you must play with the source, then here's a source rpm specifically for FC6: source rpm here.

Last edited by mark_alfred; 01-05-2010 at 05:29 PM.
 
Old 01-26-2010, 02:49 PM   #8
vijpri
LQ Newbie
 
Registered: Jan 2010
Location: India
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mark_alfred View Post
There's an rpm here for it. Why suffer when you can just use a package? I'm assuming a 386 system, but if not, just check http://rpm.pbone.net/. If you must play with the source, then here's a source rpm specifically for FC6: source rpm here.
Thank u SIR....I hv been able able 2 create my own device driver 4 my H/W Thaxx a ton....
 
Old 01-31-2010, 10:08 AM   #9
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
You're welcome. I am glad to have been of assistance.
 
  


Reply

Tags
been, create, device, driver, hw, support



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
libusb install problems crathm Linux - Newbie 8 02-17-2012 08:55 AM
How to Install Libusb jsilvester Linux - Newbie 3 01-10-2008 06:34 AM
extracting a library file named filename.1.2.... Tavassoli Linux - Software 1 06-15-2006 07:29 AM
compiling/install libusb O(V)eGA_l2el) Fedora 2 05-13-2005 11:19 AM
libUSB install Dutch3 Linux - Newbie 1 04-30-2002 07:15 AM

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

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