红联Linux门户
Linux帮助

rf6.0下安装VM 虚拟机问题求助 (已解决)

发布时间:2007-12-12 14:26:42来源:红联作者:zhangcobi
我下的是VMware-workstation-5.5.1-19175.tar.gz包,在终端下 1.tar -zxvf VMware-workstation-4.0.5-6030.tar.gz
  2、cd ./vmware-distrib
  3、./vmware-install.pl
  按照提示,回车了几次,但后来在这里就无法进行了:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

请问要如何处理?

[ 本帖最后由 zhangcobi 于 2007-12-12 16:10 编辑 ]
文章评论

共有 4 条评论

  1. zhangcobi 于 2007-12-14 10:23:20发表:

    学好linux一定要有点精神,另一个不可少的条件就是能上网。

  2. sheep7 于 2007-12-13 14:08:03发表:

    偶就喜欢lz这种精神!!!
    可惜偶太菜,学习中......

  3. zhangcobi 于 2007-12-12 16:08:36发表:

    哈哈问题解决了, 这个vmware-any-any-update109.tar.gz不能在RF6下用, 我下了一个vmware-any-any-update115.tar.gz,安装后就成功了。

    [ 本帖最后由 zhangcobi 于 2007-12-12 16:10 编辑 ]

  4. zhangcobi 于 2007-12-12 15:25:37发表:

    我找了很多贴子,知道上面提示是要找内核版本,于是我下了一个vmware-any-any-update109.tar.gz,安装后又出现新问题了,如下:

    [root@localhost src]# cd vmware-any-any-update109
    [root@localhost vmware-any-any-update109]# ls
    vmware-any-any-update109
    [root@localhost vmware-any-any-update109]# cd vmware-any-any-update109
    [root@localhost vmware-any-any-update109]# ls
    runme.pl services.sh update update.c vmmon.tar vmnet.tar
    [root@localhost vmware-any-any-update109]# ./services.sh
    Usage: services.sh {start|stop|status|restart}
    [root@localhost vmware-any-any-update109]# ./runme.pl
    Updating /usr/bin/vmware-config.pl ... now patched
    Updating /usr/bin/vmware ... No patch needed/available
    Updating /usr/bin/vmnet-bridge ... No patch needed/available
    Updating /usr/lib/vmware/bin/vmware-vmx ... No patch needed/available
    Updating /usr/lib/vmware/bin-debug/vmware-vmx ... No patch needed/available
    VMware modules in "/usr/lib/vmware/modules/source" has been updated.

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

    Making sure services for VMware Workstation are stopped.

    Stopping VMware services:
    Virtual machine monitor [确定]

    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] 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.22.6-1/build/include]

    Extracting the sources of the vmmon module.

    Building the vmmon module.

    Building for VMware Workstation 5.5.0 or 5.5.1.
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-config0/vmmon-only'
    make -C /lib/modules/2.6.22.6-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
    CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
    CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
    CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
    CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o
    CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
    CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
    CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
    cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
    cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
    cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
    cc1plus: warning: command line option "-ffreestanding" is valid for C/ObjC but not for C++
    In file included from /tmp/vmware-config0/vmmon-only/common/hostKernel.h:56,
    from /tmp/vmware-config0/vmmon-only/common/task.c:24:
    include/asm/page.h: In function ‘pte_t native_make_pte(long unsigned int)’:
    include/asm/page.h:112: error: expected primary-expression before ‘)’ token
    include/asm/page.h:112: error: expected ‘;’ before ‘{’ token
    include/asm/page.h:112: error: expected primary-expression before ‘.’ token
    include/asm/page.h:112: error: expected `;' before ‘}’ token
    make[2]: *** [/tmp/vmware-config0/vmmon-only/common/task.o] 错误 1
    make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] 错误 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
    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.
    请问这下又得怎样处理呀? 急急