LinuxSir.cn,穿越时空的Linuxsir!

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

郁闷!sles10不带源码?

[复制链接]
发表于 2006-7-29 21:07:33 | 显示全部楼层 |阅读模式
装了sles10,更新nVidia驱动和安装vmware5.5-19175时都提示找不到kernel源码。怎么回事?手动找也没有。RHEL4就没这个问题,上述两项都是一路回车就完成了。
发表于 2006-7-30 00:17:35 | 显示全部楼层
Post by 糊涂
装了sles10,更新nVidia驱动和安装vmware5.5-19175时都提示找不到kernel源码。怎么回事?手动找也没有。RHEL4就没这个问题,上述两项都是一路回车就完成了。

先安装kernel-source包,然后复制/usr/src/linux/arch/i386/yourarch.config到/usr/src/linux/.config。再安装驱动就行了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-30 13:21:11 | 显示全部楼层
Post by dino7
先安装kernel-source包,然后复制/usr/src/linux/arch/i386/yourarch.config到/usr/src/linux/.config。再安装驱动就行了。
十分感谢!包已经安装了,nv的驱动安装已经完成,没有再提示让指定源码目录,再试试vmware
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-30 14:10:03 | 显示全部楼层
安装vmware仍旧报错,下面是屏幕输出,所有交互都直接回车:
# ./vmware-install.pl
A previous installation of VMware software has been detected.
The previous installation was made by the tar installer (version 3).

Keeping the tar3 installer database format.

Uninstalling the tar installation of VMware Workstation.

Stopping VMware services:
   Virtual machine monitor                                             done

The removal of VMware Workstation 5.5.1 build-19175 for Linux completed
successfully. Thank you for having tried this software.

Installing the content of the package.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/init.d]

What is the directory that contains the init scripts?
[/etc/init.d]

In which directory do you want to install the library files?
[/usr/lib/vmware]

The path "/usr/lib/vmware" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want? [yes]

In which directory do you want to install the manual files?
[/usr/share/man]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware]

The path "/usr/share/doc/vmware" does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want?
[yes]

The installation of VMware Workstation 5.5.1 build-19175 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall.pl".

Before running VMware Workstation for the first time, you need to configure it
by invoking the following command: "/usr/bin/vmware-config.pl". Do you want this
program to invoke the command for you now? [yes]

Making sure services for VMware Workstation are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done

You must read and accept the End User License Agreement to continue.
Press enter to display it.


Do you accept? (yes/no) yes

Thank you.

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.16.21-0.8-default/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.16.21-0.8-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.16.21-0.8-obj/i386/default'
make -C ../../../linux-2.6.16.21-0.8 O=../linux-2.6.16.21-0.8-obj/i386/default modules
  CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.h:20,
                 from /tmp/vmware-config0/vmmon-only/linux/driver.c:49:
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.h:20,
                 from /tmp/vmware-config0/vmmon-only/linux/driver.c:49:
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
/usr/src/linux-2.6.16.21-0.8/include/linux/poll.h:45: error: previous declaration of ‘poll_initwait’ was here
/tmp/vmware-config0/vmmon-only/linux/driver.c:145: warning: initialization from incompatible pointer type
/tmp/vmware-config0/vmmon-only/linux/driver.c:149: warning: initialization from incompatible pointer type
make[4]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] 错误 1
make[3]: *** [_module_/tmp/vmware-config0/vmmon-only] 错误 2
make[2]: *** [modules] 错误 2
make[1]: *** [modules] 错误 2
make[1]: Leaving directory `/usr/src/linux-2.6.16.21-0.8-obj/i386/default'
make: *** [vmmon.ko] 错误 2
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

回复 支持 反对

使用道具 举报

发表于 2006-7-30 19:44:23 | 显示全部楼层
Post by 糊涂
安装vmware仍旧报错,下面是屏幕输出,所有交互都直接回车:
# ./vmware-install.pl
A previous installation of VMware software has been detected.
The previous installation was made by the tar installer (version 3).

Keeping the tar3 installer database format.

Uninstalling the tar installation of VMware Workstation.

Stopping VMware services:
   Virtual machine monitor                                             done

The removal of VMware Workstation 5.5.1 build-19175 for Linux completed
successfully. Thank you for having tried this software.


vmware workstation我没试过,我用的是VMware Server(build 28343),没有遇到任何问题。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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