Menu

libusb not found

Help
linuxchiq
2006-10-04
2013-04-23
  • linuxchiq

    linuxchiq - 2006-10-04

    I am attempting to install RazerTool on my Fedora Core 4 box, and getting the following error when I ./configure:

    checking for libusb... configure: error: Package requirements (libusb >= 0.1.0) were not met:

    No package 'libusb' found

    However,

    Preparing...                ########################################### [100%]
            package libusb-0.1.10a-1 is already installed

    Has anyone else run into this?

     
    • Fabian Grutschus

      pkg-config isn't able to find that package, try:

      $ pkg-config --exists --print-errors "libusb"
      $ ldconfig (as root)
      $ ./configure

       
      • linuxchiq

        linuxchiq - 2006-10-19

        When I issue the first command, I get the following:

        [root@ravenix razertool-0.0.6]# pkg-config --exists --print-errors "libusb"
        Package libusb was not found in the pkg-config search path.
        Perhaps you should add the directory containing `libusb.pc'
        to the PKG_CONFIG_PATH environment variable
        No package 'libusb' found
        [root@ravenix razertool-0.0.6]# echo $PKG_CONFIG_PATH

        [root@ravenix razertool-0.0.6]#
        [root@ravenix /]# find / -noleaf -name libusb*
        /etc/hotplug/usb/libusbscanner
        /home/brookr/razer/libusb-0.1.10a-1.i386.rpm
        /usr/share/doc/libusb-devel-0.1.10a
        /usr/lib/libusb-0.1.so.4.4.2
        /usr/lib/libusbpp.so
        /usr/lib/libusbpp-0.1.so.4.4.2
        /usr/lib/libusb-0.1.so.4
        /usr/lib/libusb.a
        /usr/lib/libusbpp.a
        /usr/lib/libusb.la
        /usr/lib/libusb.so
        /usr/lib/libusbpp.la
        /usr/lib/libusbpp-0.1.so.4
        /usr/bin/libusb-config

        So, it looks like the PKG_CONFIG_PATH vatiable is not set, and libusb.pc does not exist on my system in spite of the libusb rpm being installed?

         
        • Zinx Verituse

          Zinx Verituse - 2006-11-09

          You need the -dev or -devel rpm for it installed too (also need it for the other libraries)

           
          • linuxchiq

            linuxchiq - 2006-11-27

            The libusb-devel package is already installed:

            [root@ravenix razer]# rpm -qa libusb-devel
            libusb-devel-0.1.10a-1

            so that can't be it . . .

             

Log in to post a comment.