Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-17-2008, 11:30 PM   #1
LQ Newbie
Registered: Nov 2008
Posts: 13

Rep: Reputation: 0
libusb install problems

Hello everyone,

Hey guys, i'm trying to get my G15 keyboard software to work.. I know i needed to install the g15daemon I know it requires a couple libraries before i can install it. one of the libraries are libg15. Trying to install that library, i noticed it wants libusb installed first. So i'm trying to install that.

Now I don't know if i'm getting an error but from what I can tell its simply asking me to run the configuration then make the install....

Now without coping the entire results of the ./configure command but to show you the last few lines...

checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for inline... inline
checking whether gcc and cc understand -c and -o together... yes
checking operating system... Linux
configure: creating ./config.status
config.status: creating libusb-1.0.pc
config.status: creating Makefile
config.status: creating libusb/Makefile
config.status: creating examples/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen.cfg
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

after seeing all that, i'm back at the command prompt.

that seems to be fine to my eyes so i decided to run the make install command and the last few lines are as followed.

test -z "/usr/local/include/libusb-1.0" || /bin/mkdir -p "/usr/local/include/libusb-1.0"
/usr/bin/install -c -m 644 'libusb.h' '/usr/local/include/libusb-1.0/libusb.h'
make[2]: Leaving directory `/home/crathm/Download/libusb-1.0.0/libusb'
make[1]: Leaving directory `/home/crathm/Download/libusb-1.0.0/libusb'
Making install in doc
make[1]: Entering directory `/home/crathm/Download/libusb-1.0.0/doc'
make[2]: Entering directory `/home/crathm/Download/libusb-1.0.0/doc'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/crathm/Download/libusb-1.0.0/doc'
make[1]: Leaving directory `/home/crathm/Download/libusb-1.0.0/doc'
make[1]: Entering directory `/home/crathm/Download/libusb-1.0.0'
make[2]: Entering directory `/home/crathm/Download/libusb-1.0.0'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/usr/local/lib/pkgconfig"
/usr/bin/install -c -m 644 'libusb-1.0.pc' '/usr/local/lib/pkgconfig/libusb-1.0.pc'
make[2]: Leaving directory `/home/crathm/Download/libusb-1.0.0'
make[1]: Leaving directory `/home/crathm/Download/libusb-1.0.0'

I'll be honest, i am new to this type of install when it comes to installing software. I'm used to installing everything via rpm's. I learned and installed tripwire prior to this install and that installed via ./configure make install without errors. This will be my second attempt at installing like this so i'm not really sure how to approach this but i do know that libusb is not installed.

I have done some reading but I'm getting no where and fast.

Last edited by crathm; 12-17-2008 at 11:38 PM.
Old 12-17-2008, 11:38 PM   #2
LQ Newbie
Registered: Dec 2008
Posts: 10

Rep: Reputation: 0
G15 keyboard

Its a nice keyboard but hard to get working under linux, mine just displays the clock on the LCD.. but if you're running a debian or ubuntu OS try

apt-get install `apt-cache search libusb | awk '{print $1}'`

and then install all the G15 drives in order of dependencies

after that type /usr/sbin/g15daemon and the logitech logo will go away and be replaced with a nice clock
Old 12-17-2008, 11:44 PM   #3
LQ Newbie
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the quick response, I am actually using RHEL 5 enterprise server (30 day trial). Figured if i'm going to learn unix, i may as well learn by playing with a corp system.

but i did try to play with a few yum install techniques but that didn't work. I was told that some stuff that is compatible with desktop OS isn't compatible with desktops... would that be true in this case?
Old 12-17-2008, 11:50 PM   #4
LQ Newbie
Registered: Dec 2008
Posts: 10

Rep: Reputation: 0

there's really not much difference between RHEL/CentOS etc besides the package management and level of "official" support channels you can potentially receive. Since most all distros use the same Linux Kernel (2.6.x) and GNU tools one application should run on all distributions.

since you're using redhat try typing (as root) yum install libusb *

that should install the binary packages for all libusb requirements, then compile the G15 drivers as you normally would.
Old 12-18-2008, 12:17 AM   #5
LQ Newbie
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
The libusb was installed after-all but i also needed libusb-devel in order to install libg15. Thanks for your help

Last edited by crathm; 12-18-2008 at 06:10 PM.
Old 12-18-2008, 01:50 AM   #6
LQ Newbie
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Ok, Well. I was able to install everything i needed in regards to my goal to having a working g15 keyboard. Using following walkthrough on, I achieved to get display and audio controls to work. But I don't believe my keys are working, now the one place where I believe I may have made a mistake was when they explained how to bind the keys.

sudo gedit /usr/share/X11/XKeysymDB and I added the following lines after the comment at the beginning -

G1 :15000001
G2 :15000002
G3 :15000003
G4 :15000004
G5 :15000005
G6 :15000006
G7 :15000007
G8 :15000008
G9 :15000009
G10 :15000010
G11 :15000011
G12 :15000012
G13 :15000013
G14 :15000014
G15 :15000015
G16 :15000016
G17 :15000017
G18 :15000018
M1 :15000019
M2 :1500001A
M3 :1500001B
LCD0 :1500001D
LCD1 :1500001E
LCD2 :1500001F
LCD3 :15000020
LCD4 :15000021
MR :15000022

and in my home dir i added a file called .Xmodmap containing

keycode 93 = XF86Launch1
keycode 129 = XF86Launch8
keycode 130 = XF86Launch9
keycode 131 = XF86Launch2
keycode 132 = XF86Phone
keycode 133 = XF86Messenger
keycode 136 = XF86LaunchD
keycode 137 = XF86Support
keycode 138 = XF86Word
keycode 143 = XF86LaunchF
keycode 144 = XF86AudioPrev
keycode 150 = XF86LogOff
keycode 152 = XF86Launch5
keycode 153 = XF86AudioNext
keycode 160 = XF86AudioMute
keycode 161 = XF86Travel
keycode 162 = XF86AudioPlay
keycode 163 = XF86Spell
keycode 164 = XF86AudioStop
keycode 170 = XF86VendorHome
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 177 = XF86Launch4
keycode 178 = XF86HomePage
keycode 182 = XF86Away
keycode 183 = XF86WebCam
keycode 184 = XF86Launch0
keycode 188 = XF86Music
keycode 190 = XF86Launch6
keycode 194 = XF86Forward
keycode 195 = XF86Send
keycode 205 = XF86Calendar
keycode 208 = XF86Launch7
keycode 209 = XF86LaunchB
keycode 210 = XF86LaunchC
keycode 215 = XF86Save
keycode 219 = XF86WWW
keycode 220 = XF86LaunchE
keycode 223 = XF86Sleep
keycode 228 = XF86Pictures
keycode 231 = XF86LaunchA
keycode 236 = XF86Mail
keycode 237 = XF86AudioMedia
keycode 246 = XF86iTouch
keycode 247 = XF86Launch3
keycode 249 = XF86ToDoList
keycode 251 = XF86Calculater

Last edited by crathm; 12-18-2008 at 06:02 PM. Reason: adding more exact info
Old 12-18-2008, 06:17 PM   #7
LQ Newbie
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
I hate to bump this thread up but i'm really stuck. I tried the man pages, i read over the Walkthrough on and the original site from where the walkthrough was extracted from. I did everything by the book from what i can tell and there is no other postings from where i can google to assist me. Only thing is that the walkthrough is for ubuntu OS and im running RHEL and maybe i need to make an additional step?

I do know is that LCD display works, my media controls work. my 4 M Buttons (MR, M1,M2, M3, M4) don't work and they don't even light up when i click on them. My 18 G keys... nothing. so it has to be an issue with my mapping.

I have tried relocating the mappings in the /usr/share/X11/XKeysymDB file at random locations and still nothing.
anyone got any additional ideas?
Old 02-17-2012, 04:59 AM   #8
LQ Newbie
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
Problem in installing libusb-1.0.8

This is the config.log file
indicating some header file is missing
anybody is having idea how to correct it

header file missing
Old 02-17-2012, 08:55 AM   #9
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,733
Blog Entries: 58

Rep: Reputation: Disabled
This is an old thread, shivdhruw. Which distro are you using? You'll probably be able to install libusb from a repository.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to Install Libusb jsilvester Linux - Newbie 3 01-10-2008 06:34 AM
question about libusb?!! nesta Linux - Software 1 03-04-2007 10:12 AM
compiling/install libusb O(V)eGA_l2el) Fedora 2 05-13-2005 11:19 AM
hpoj and libusb compiling problems jonman364 Linux - Software 1 11-09-2004 04:38 PM
libUSB install Dutch3 Linux - Newbie 1 04-30-2002 07:15 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration