ssssss

軟件包:udev
下載地址:http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/

軟件包libacl1-dev
下載地址:http://packages.debian.org/lenny/libacl1-dev

軟件包:gperf
下載地址:http://ftp.gnu.org/gnu/gperf/

軟件包:gettext
下載地址:ftp://ftp.gnu.org/pub/gnu/gettext/ 

軟件包:attr
下載地址:http://www.kernel.org/pub/linux/utils/fs/xfs/attr/

軟件包:libusb
下載地址:http://sourceforge.net/projects/libusb/files/libusb-1.0/

軟件包:libusb-0.1.12
http://www.filewatcher.com/m/libusb-0.1.12.tar.gz.389343.0.0.html

軟件包:usbutils
下載地址:http://sourceforge.net/projects/linux-usb/files/usbutils/


Udev-145

$ tar xf udev-145.tar.gz
$ cd udev-145
$ ./configure
出錯信息:
checking for gperf... no
configure: error: gperf is needed
參考解決方法:
安裝gperf-3.0.4
$ ./configure
出錯信息:
checking for LIBUSB... configure: error: Package requirements (libusb >= 0.1.12) were not met:

No package 'libusb' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBUSB_CFLAGS
and LIBUSB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
參考解決方法:
安裝:libusb
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
$ cd /usr/local/lib/pkgconfig
$ sudo mv libusb-1.0.pc libusb.pc  //如果不修改則出同樣的錯誤,還是找不到libusb
$ cd -
$ ./configure
出錯信息:
checking for USBUTILS... configure: error: Package requirements (usbutils >= 0.82) were not met:

No package 'usbutils' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables USBUTILS_CFLAGS
and USBUTILS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
參考解決方法:
安裝usbutils
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
$ ./configure --prefix=/home/cs2c/mylib/udev/ 
下面是提示信息:
    udev 145
    ========
    prefix:            /home/cs2c/mylib/udev
    sysconfdir:        ${prefix}/etc
    sbindir:        ${exec_prefix}/sbin
    libdir:            ${exec_prefix}/lib
    rootlibdir:        ${exec_prefix}/lib
    libexecdir:        ${exec_prefix}/libexec

    datarootdir:        ${prefix}/share
    mandir:            ${datarootdir}/man
    includedir:        ${prefix}/include

    logging:        yes
    debug:            no
    selinux:        no

    compiler:        gcc
    cflags:            -g -O2
    ldflags:        

    extras:            yes
    gintrospection:        no

    usb.ids:        /usr/share/usb.ids
    pci.ids:        /usr/share/pci.ids

    xsltproc:        /usr/bin/xsltproc
    gperf:            /usr/local/bin/gperf

$ make
出錯信息:
udevd.c:36:26: 錯誤:sys/signalfd.h:沒有那個文件或目錄
udevd.c: 在函數‘main’中:
udevd.c:1051: 錯誤:‘fdsi’的存儲大小未知
udevd.c:1054: 錯誤:‘sizeof’不能用於不完全的類型‘struct signalfd_siginfo’
udevd.c:1055: 錯誤:‘sizeof’不能用於不完全的類型‘struct signalfd_siginfo’
make[2]: *** [udevd.o] 錯誤 1
make[2]: Leaving directory `/home/cs2c/work/nc/udev-145/udev'
make[1]: *** [all-recursive] 錯誤 1
make[1]: Leaving directory `/home/cs2c/work/nc/udev-145'
make: *** [all] 錯誤 2
參考解決方法:
從X86的電腦(/usr/include/sys/signalfd.h)上覆制過來放到(/usr/include/sys/) 目錄下
 signalfd.h.zip   
出錯信息:
gcc: /usr/lib/libacl.so: No such file or directory
make[3]: *** [udev-acl] 錯誤 1
make[3]: Leaving directory `/home/cs2c/work/nc/udev-145/extras/udev-acl'
make[2]: *** [all-recursive] 錯誤 1
make[2]: Leaving directory `/home/cs2c/work/nc/udev-145/extras'
make[1]: *** [all-recursive] 錯誤 1
make[1]: Leaving directory `/home/cs2c/work/nc/udev-145'
make: *** [all] 錯誤 2
參考解決方法:
$ sudo find / -name libacl*
$ cd /usr/lib
$ sudo cp /lib/libacl.so.1.1.0  .
$ sudo ln -s libacl.so.1.1.0  libacl.so.1
$ make
$ make install

usbutils-0.84
$ tar xf usbutils-0.84.tar.gz
$ cd usbutils-0.84
$ ./configure 
出錯信息:
checking for LIBUSB... configure: error: Package requirements (libusb >= 0.1.12) were not met:

No package 'libusb' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBUSB_CFLAGS
and LIBUSB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
參考解決方法:
安裝:libusb
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
$ make

出錯信息:
lsusb.c:36:17: 錯誤:usb.h:沒有那個文件或目錄
參考解決方法:
用libusb-0.1.1.12替換libusb-1.0
$ make
$ sudo make install

libusb-0.1.1.12

$ tar xf libusb-0.1.12.tar.gz
$ cd libusb-0.1.12 && sudo su
# ./configure && make && make install


libusb-1.0.2
$ tar xf libusb-1.0.2.tar.gz
$ cd libusb-1.0.2 
$ ./configure && make
$ sudo make install


gperf-3.0.4

$ tar xf gperf-3.0.4
$ cd gperf-3.0.4
$ ./configure
出錯信息:
checking for acl_init in -lacl... no
configure: error: libacl not found

參考解決方法:
安裝acl-2.2.47
$ ./configugre && make 
$ sudo make install


acl-2.2.47
$ tar xf acl-2.2.47
$ cd acl-2.2.47
$ ./configure 

出錯信息:
checking for msgfmt... no
FATAL ERROR: msgfmt does not seem to be installed.
acl cannot be built without a working gettext installation.

參考解決方法:
安裝:gettext-0.17
$ ./configure
出錯信息:
checking attr/xattr.h usability... no
checking attr/xattr.h presence... no
checking for attr/xattr.h... no

FATAL ERROR: attr/xattr.h does not exist.

Install the extended attributes (attr) development package.
Alternatively, run "make install-dev" from the attr source.
參考解決方法:
安裝:attr
$ ./configure
$ make
出錯信息:
gcc: /usr/lib/libattr.so: No such file or directory
gmake[1]: *** [libacl.la] 錯誤 1
make: *** [default] 錯誤 2

參考解決方法:
$ sudo su && cd /usr
# find ./ -name libattr.so
# cp /lib/libattr.so.1*  /usr/lib
# cd /usr/lib
# rm libattr.so.1
# ln -s libattr.so.1.1.0 libattr.so.1
# make
# make install-dev

gettext-0.17
$ tar xf gettext-0.17.tar.gz
$ cd gettext-0.17
$ ./configure && make
$ sudo make install

attr-2.4.43

$ tar xf attr-2.4.43.tar.gz
$ cd attr-2.4.43
$ ./configure && make
$ sudo make install-dev
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章