Leser: 22
Quote$:~/.cpan/build/Device-USB-0.28-cjygpi> perl Makefile.PL
ERROR: Can't find libusb.so library.
If the library is not installed, you will need to install it. If it is
installed somewhere other than /usr or /usr/local, you need to set the
following environment variables:
LIBUSB_LIBDIR should contain the path to the libusb libraries
LIBUSB_INCDIR should contain the path to the libusb include files
Guest USBWas ich bisher versucht habe:
alle verfügbaren libusb- und libusb-devel-Pakete installiert
/usr/lib64/libusb-0.1.so.4 und /usr/lib64/libusb-0.1.so.4.4.4 nach /usr/local/lib/ copiert
1
2
3
4
5
$ aptitude install apt-file
$ apt-file update
$ apt-file search libusb.so
bitpim-lib: usr/lib/bitpim/native/usb/_libusb.so
libusb-dev: usr/lib/libusb.so
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.27, archname=x86_64-linux-thread-multi
uname='linux nono 2.6.27 #1 smp thu may 17 14:00:09 utc 2007 x86_64 x86_64 x86_64 gnulinux '
config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=true -Doptimize=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -pipe-Accflags=-DPERL_USE_SAFE_PUTENV'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -pipe',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe'
ccversion='', gccversion='4.3.2 [gcc-4_3-branch revision 141291]', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib64'
libpth=/lib64 /usr/lib64 /usr/local/lib64
libs=-lm -ldl -lcrypt -lpthread
perllibs=-lm -ldl -lcrypt -lpthread
libc=/lib64/libc-2.9.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.9'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib64'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_TRACK_MEMPOOL PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Jan 28 2009 15:28:19
@INC:
/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0
/usr/lib/perl5/vendor_perl
.
Guest USB/usr/lib64/libusb-0.1.so.4 und /usr/lib64/libusb-0.1.so.4.4.4 nach /usr/local/lib/ copiert
1
2
3
ln -s /usr/lib64/libusb-0.1.so.4.4.4 /usr/lib/libusb.so
ln -s /usr/src/linux-2.6.27.19-3.2/include/linux/usb.h /usr/include/usb.h
ldconfig
Guest USBmake, das Fehler meldet.
2009-04-01T18:40:43 PatternerGuest USB
/usr/include/usb.h:4:35: error: linux/mod_devicetable.h: Datei oder Verzeichnis nicht gefunden
Diese Datei versteckt sich normalerweise in Paketen wie "linux-headers", "vanilla-sources" oder ähnlichem...
2009-04-01T18:58:03 murphyDas mag schon sein, allerdings war vermutlich schon die Headerdatei, die die fehlende einband falsch -- der OP hatte ja einen Linux Kernelheader an andere Stelle kopiert, in der Hoffnung durch dieses Voodoomanöver den zufällig gleichnamigen Header einer Bibliothek ersetzen zu können ;-)