LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 999|回复: 0

关于libdrm2.4的安装问题

[复制链接]
发表于 2008-12-24 09:06:45 | 显示全部楼层 |阅读模式
参照了下面的方法后。
http://forum.ubuntu.org.cn/viewt ... =164984&start=0
make install并没有完成安装
装显卡驱动的时候还是提示要求》=libdrm 2.4
看readme上说
By default, libdrm and the DRM header files will install into /usr/local/.
If you want to install this DRM to replace your system copy, say:

./configure --prefix=/usr --exec-prefix=/

Then,
make install
To build the device-specific kernel modules:

cd linux-core/
make
cp *.ko /lib/modules/VERSION/kernel/drivers/char/drm/
(where VERSION is your kernel version: uname -f)
Or,
cd bsd-core/
make
copy the kernel modules to the appropriate place
后面他指定的目录我机器上根本没有。请问问题出在什么地方?

我sudo make install之后的代码:
Making install in libdrm
make[1]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
Making install in .
make[2]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
make[3]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
make[3]: 没有什么可以做的为 `install-exec-am'。
test -z "//lib" || /bin/mkdir -p "//lib"
/bin/bash ../libtool --mode=install /usr/bin/install -c 'libdrm.la' '//lib/libdrm.la'
/usr/bin/install -c .libs/libdrm.so.2.3.0 //lib/libdrm.so.2.3.0
(cd //lib && { ln -s -f libdrm.so.2.3.0 libdrm.so.2 || { rm -f libdrm.so.2 && ln -s libdrm.so.2.3.0 libdrm.so.2; }; })
(cd //lib && { ln -s -f libdrm.so.2.3.0 libdrm.so || { rm -f libdrm.so && ln -s libdrm.so.2.3.0 libdrm.so; }; })
/usr/bin/install -c .libs/libdrm.lai //lib/libdrm.la
PATH="$PATH:/sbin" ldconfig -n //lib
----------------------------------------------------------------------
Libraries have been installed in:
//lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/include" || /bin/mkdir -p "/usr/include"
/usr/bin/install -c -m 644 'xf86drm.h' '/usr/include/xf86drm.h'
make[3]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
make[2]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
Making install in intel
make[2]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/libdrm/intel'
make[3]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/libdrm/intel'
make[3]: 没有什么可以做的为 `install-exec-am'。
test -z "//lib" || /bin/mkdir -p "//lib"
/bin/bash ../../libtool --mode=install /usr/bin/install -c 'libdrm_intel.la' '//lib/libdrm_intel.la'
libtool: install: warning: relinking `libdrm_intel.la'
(cd /home/dawn/下载/libdrm-2.4.1/libdrm/intel; /bin/bash ../../libtool --tag=CC --mode=relink gcc -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -I../../libdrm -I../../libdrm/intel -I../../shared-core -g -O2 -version-number 1:0:0 -no-undefined -o libdrm_intel.la -rpath //lib intel_bufmgr.lo intel_bufmgr_fake.lo intel_bufmgr_gem.lo mm.lo ../libdrm.la )
../../libtool: line 6348: cd: /home/dawn/下载/libdrm-2.4.1/libdrm/intel: No such file or directory
gcc -shared .libs/intel_bufmgr.o .libs/intel_bufmgr_fake.o .libs/intel_bufmgr_gem.o .libs/mm.o -Wl,--rpath -Wl,//lib -L//lib -ldrm -Wl,-soname -Wl,libdrm_intel.so.1 -o .libs/libdrm_intel.so.1.0.0
/usr/bin/install -c .libs/libdrm_intel.so.1.0.0T //lib/libdrm_intel.so.1.0.0
(cd //lib && { ln -s -f libdrm_intel.so.1.0.0 libdrm_intel.so.1 || { rm -f libdrm_intel.so.1 && ln -s libdrm_intel.so.1.0.0 libdrm_intel.so.1; }; })
(cd //lib && { ln -s -f libdrm_intel.so.1.0.0 libdrm_intel.so || { rm -f libdrm_intel.so && ln -s libdrm_intel.so.1.0.0 libdrm_intel.so; }; })
/usr/bin/install -c .libs/libdrm_intel.lai //lib/libdrm_intel.la
PATH="$PATH:/sbin" ldconfig -n //lib
----------------------------------------------------------------------
Libraries have been installed in:
//lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/include" || /bin/mkdir -p "/usr/include"
/usr/bin/install -c -m 644 'intel_bufmgr.h' '/usr/include/intel_bufmgr.h'
make[3]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/libdrm/intel'
make[2]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/libdrm/intel'
make[1]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
Making install in shared-core
make[1]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/shared-core'
make[2]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/shared-core'
make[2]: 没有什么可以做的为 `install-exec-am'。
test -z "/usr/include/drm" || /bin/mkdir -p "/usr/include/drm"
/usr/bin/install -c -m 644 'drm.h' '/usr/include/drm/drm.h'
/usr/bin/install -c -m 644 'drm_sarea.h' '/usr/include/drm/drm_sarea.h'
/usr/bin/install -c -m 644 'i915_drm.h' '/usr/include/drm/i915_drm.h'
/usr/bin/install -c -m 644 'mach64_drm.h' '/usr/include/drm/mach64_drm.h'
/usr/bin/install -c -m 644 'mga_drm.h' '/usr/include/drm/mga_drm.h'
/usr/bin/install -c -m 644 'nouveau_drm.h' '/usr/include/drm/nouveau_drm.h'
/usr/bin/install -c -m 644 'r128_drm.h' '/usr/include/drm/r128_drm.h'
/usr/bin/install -c -m 644 'radeon_drm.h' '/usr/include/drm/radeon_drm.h'
/usr/bin/install -c -m 644 'savage_drm.h' '/usr/include/drm/savage_drm.h'
/usr/bin/install -c -m 644 'sis_drm.h' '/usr/include/drm/sis_drm.h'
/usr/bin/install -c -m 644 'via_drm.h' '/usr/include/drm/via_drm.h'
/usr/bin/install -c -m 644 'r300_reg.h' '/usr/include/drm/r300_reg.h'
/usr/bin/install -c -m 644 'via_3d_reg.h' '/usr/include/drm/via_3d_reg.h'
/usr/bin/install -c -m 644 'xgi_drm.h' '/usr/include/drm/xgi_drm.h'
make[2]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/shared-core'
make[1]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/shared-core'
Making install in tests
make[1]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/tests'
make[2]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/tests'
make[2]: 没有什么可以做的为 `install-exec-am'。
make[2]: 没有什么可以做的为 `install-data-am'。
make[2]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/tests'
make[1]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/tests'
make[1]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1'
make[2]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1'
make[2]: 没有什么可以做的为 `install-exec-am'。
test -z "//lib/pkgconfig" || /bin/mkdir -p "//lib/pkgconfig"
/usr/bin/install -c -m 644 'libdrm.pc' '//lib/pkgconfig/libdrm.pc'
make[2]:正在离开目录 `/home/dawn/download/libdrm-2.4.1'
make[1]:正在离开目录 `/home/dawn/download/libdrm-2.4.1'
dawn@dawn:~/download/libdrm-2.4.1$ sudo make install
[sudo] password for dawn:
Making install in libdrm
make[1]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
Making install in .
make[2]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
make[3]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
make[3]: 没有什么可以做的为 `install-exec-am'。
test -z "//lib" || /bin/mkdir -p "//lib"
/bin/bash ../libtool --mode=install /usr/bin/install -c 'libdrm.la' '//lib/libdrm.la'
/usr/bin/install -c .libs/libdrm.so.2.3.0 //lib/libdrm.so.2.3.0
(cd //lib && { ln -s -f libdrm.so.2.3.0 libdrm.so.2 || { rm -f libdrm.so.2 && ln -s libdrm.so.2.3.0 libdrm.so.2; }; })
(cd //lib && { ln -s -f libdrm.so.2.3.0 libdrm.so || { rm -f libdrm.so && ln -s libdrm.so.2.3.0 libdrm.so; }; })
/usr/bin/install -c .libs/libdrm.lai //lib/libdrm.la
PATH="$PATH:/sbin" ldconfig -n //lib
----------------------------------------------------------------------
Libraries have been installed in:
//lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/include" || /bin/mkdir -p "/usr/include"
/usr/bin/install -c -m 644 'xf86drm.h' '/usr/include/xf86drm.h'
make[3]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
make[2]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
Making install in intel
make[2]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/libdrm/intel'
make[3]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/libdrm/intel'
make[3]: 没有什么可以做的为 `install-exec-am'。
test -z "//lib" || /bin/mkdir -p "//lib"
/bin/bash ../../libtool --mode=install /usr/bin/install -c 'libdrm_intel.la' '//lib/libdrm_intel.la'
libtool: install: warning: relinking `libdrm_intel.la'
(cd /home/dawn/下载/libdrm-2.4.1/libdrm/intel; /bin/bash ../../libtool --tag=CC --mode=relink gcc -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -I../../libdrm -I../../libdrm/intel -I../../shared-core -g -O2 -version-number 1:0:0 -no-undefined -o libdrm_intel.la -rpath //lib intel_bufmgr.lo intel_bufmgr_fake.lo intel_bufmgr_gem.lo mm.lo ../libdrm.la )
../../libtool: line 6348: cd: /home/dawn/下载/libdrm-2.4.1/libdrm/intel: No such file or directory
gcc -shared .libs/intel_bufmgr.o .libs/intel_bufmgr_fake.o .libs/intel_bufmgr_gem.o .libs/mm.o -Wl,--rpath -Wl,//lib -L//lib -ldrm -Wl,-soname -Wl,libdrm_intel.so.1 -o .libs/libdrm_intel.so.1.0.0
/usr/bin/install -c .libs/libdrm_intel.so.1.0.0T //lib/libdrm_intel.so.1.0.0
(cd //lib && { ln -s -f libdrm_intel.so.1.0.0 libdrm_intel.so.1 || { rm -f libdrm_intel.so.1 && ln -s libdrm_intel.so.1.0.0 libdrm_intel.so.1; }; })
(cd //lib && { ln -s -f libdrm_intel.so.1.0.0 libdrm_intel.so || { rm -f libdrm_intel.so && ln -s libdrm_intel.so.1.0.0 libdrm_intel.so; }; })
/usr/bin/install -c .libs/libdrm_intel.lai //lib/libdrm_intel.la
PATH="$PATH:/sbin" ldconfig -n //lib
----------------------------------------------------------------------
Libraries have been installed in:
//lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/include" || /bin/mkdir -p "/usr/include"
/usr/bin/install -c -m 644 'intel_bufmgr.h' '/usr/include/intel_bufmgr.h'
make[3]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/libdrm/intel'
make[2]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/libdrm/intel'
make[1]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/libdrm'
Making install in shared-core
make[1]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/shared-core'
make[2]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/shared-core'
make[2]: 没有什么可以做的为 `install-exec-am'。
test -z "/usr/include/drm" || /bin/mkdir -p "/usr/include/drm"
/usr/bin/install -c -m 644 'drm.h' '/usr/include/drm/drm.h'
/usr/bin/install -c -m 644 'drm_sarea.h' '/usr/include/drm/drm_sarea.h'
/usr/bin/install -c -m 644 'i915_drm.h' '/usr/include/drm/i915_drm.h'
/usr/bin/install -c -m 644 'mach64_drm.h' '/usr/include/drm/mach64_drm.h'
/usr/bin/install -c -m 644 'mga_drm.h' '/usr/include/drm/mga_drm.h'
/usr/bin/install -c -m 644 'nouveau_drm.h' '/usr/include/drm/nouveau_drm.h'
/usr/bin/install -c -m 644 'r128_drm.h' '/usr/include/drm/r128_drm.h'
/usr/bin/install -c -m 644 'radeon_drm.h' '/usr/include/drm/radeon_drm.h'
/usr/bin/install -c -m 644 'savage_drm.h' '/usr/include/drm/savage_drm.h'
/usr/bin/install -c -m 644 'sis_drm.h' '/usr/include/drm/sis_drm.h'
/usr/bin/install -c -m 644 'via_drm.h' '/usr/include/drm/via_drm.h'
/usr/bin/install -c -m 644 'r300_reg.h' '/usr/include/drm/r300_reg.h'
/usr/bin/install -c -m 644 'via_3d_reg.h' '/usr/include/drm/via_3d_reg.h'
/usr/bin/install -c -m 644 'xgi_drm.h' '/usr/include/drm/xgi_drm.h'
make[2]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/shared-core'
make[1]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/shared-core'
Making install in tests
make[1]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/tests'
make[2]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1/tests'
make[2]: 没有什么可以做的为 `install-exec-am'。
make[2]: 没有什么可以做的为 `install-data-am'。
make[2]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/tests'
make[1]:正在离开目录 `/home/dawn/download/libdrm-2.4.1/tests'
make[1]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1'
make[2]: 正在进入目录 `/home/dawn/download/libdrm-2.4.1'
make[2]: 没有什么可以做的为 `install-exec-am'。
test -z "//lib/pkgconfig" || /bin/mkdir -p "//lib/pkgconfig"
/usr/bin/install -c -m 644 'libdrm.pc' '//lib/pkgconfig/libdrm.pc'
make[2]:正在离开目录 `/home/dawn/download/libdrm-2.4.1'
make[1]:正在离开目录 `/home/dawn/download/libdrm-2.4.1'

不胜感激
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表