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 |
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.
|
 |
01-05-2010, 12:30 PM
|
#1
|
LQ Newbie
Registered: Jan 2010
Location: India
Posts: 2
Rep:
|
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.
|
|
|
01-05-2010, 12:50 PM
|
#2
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
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.
|
|
|
01-05-2010, 01:29 PM
|
#3
|
Senior Member
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,573
|
Quote:
Originally Posted by PTrenholme
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.
|
|
|
01-05-2010, 02:00 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,681
|
Quote:
Originally Posted by vijpri
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.
|
|
|
01-05-2010, 03:00 PM
|
#5
|
Senior Member
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,573
|
Quote:
Originally Posted by TB0ne
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.
|
|
|
01-05-2010, 04:21 PM
|
#6
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
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).
|
|
|
01-05-2010, 05:12 PM
|
#7
|
Senior Member
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,573
|
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.
|
|
|
01-26-2010, 02:49 PM
|
#8
|
LQ Newbie
Registered: Jan 2010
Location: India
Posts: 2
Original Poster
Rep:
|
Quote:
Originally Posted by mark_alfred
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....
|
|
|
01-31-2010, 10:08 AM
|
#9
|
Senior Member
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,573
|
You're welcome. I am glad to have been of assistance.
|
|
|
All times are GMT -5. The time now is 11:39 PM.
|
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
|
|