LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Im using FC 6,CANT INSTALL a library named libusb-0.1.12. (http://www.linuxquestions.org/questions/linux-newbie-8/im-using-fc-6-cant-install-a-library-named-libusb-0-1-12-a-780047/)

vijpri 01-05-2010 12:30 PM

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.

PTrenholme 01-05-2010 12:50 PM

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.

mark_alfred 01-05-2010 01:29 PM

Quote:

Originally Posted by PTrenholme (Post 3815200)
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.

TB0ne 01-05-2010 02:00 PM

Quote:

Originally Posted by vijpri (Post 3815181)
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.

mark_alfred 01-05-2010 03:00 PM

Quote:

Originally Posted by TB0ne (Post 3815288)
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.

lazlow 01-05-2010 04:21 PM

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).

mark_alfred 01-05-2010 05:12 PM

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.

vijpri 01-26-2010 02:49 PM

Quote:

Originally Posted by mark_alfred (Post 3815486)
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....

mark_alfred 01-31-2010 10:08 AM

You're welcome. I am glad to have been of assistance.


All times are GMT -5. The time now is 02:21 AM.