作者 主題: virtual machine的安裝  (閱讀 5727 次)

0 會員 與 1 訪客 正在閱讀本文。

chauping

  • 懷疑的國中生
  • **
  • 文章數: 48
    • 檢視個人資料
virtual machine的安裝
« 於: 2005-12-24 23:09 »
大家好:
    我想利用virtual machine在linux內裝windows 2003 server,當我打vmware-config.pl後,出現下列錯誤訊息:
Your kernel was built with "gcc" version "4.0.0", while you are trying to use "/usr/bin/gcc" version "4.0.2". This configuration is not recommended and VMware Virtual Machine Player may crash if you'll continue. Please try to use exactly same compiler as one used for building your kernel. Do you want to go with compiler "/usr/bin/gcc" version "4.0.2" anyway? [no] yes

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

The path "/usr/src/linux/include" is not an existing directory.
我查我的/usr/src/裡面是空的,什麼都沒有,我的kernel 是2.6.11-1.1369_FC4,我想可能是我的kernel太舊,就去下載2.6.11.1的kernel tarball後,準備要重新編譯,當我打完make mrproper後又打make menuconfig時又出現下列一大堆錯誤訊息:
HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c: In function ‘parse_config_file’:
scripts/basic/fixdep.c:245: warning: pointer targets in passing argument 1 of ‘u se_config’ differ in signedness
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:299: warning: pointer targets in passing argument 1 of ‘_ _builtin_strchr’ differ in signedness
scripts/basic/fixdep.c:299: warning: pointer targets in assignment differ in sig nedness
  HOSTCC  scripts/basic/split-include
scripts/basic/split-include.c: In function ‘main’:
scripts/basic/split-include.c:113: warning: pointer targets in assignment differ  in signedness
  HOSTCC  scripts/basic/docproc
scripts/basic/docproc.c: In function ‘find_export_symbols’:
scripts/basic/docproc.c:184: warning: pointer targets in assignment differ in si gnedness
scripts/basic/docproc.c:185: warning: pointer targets in assignment differ in si gnedness
scripts/basic/docproc.c:202: warning: pointer targets in passing argument 2 of ‘ add_new_symbol’ differ in signedness
scripts/basic/docproc.c: In function ‘singfunc’:
scripts/basic/docproc.c:274: warning: pointer targets in assignment differ in si gnedness
scripts/basic/docproc.c: In function ‘parse_file’:
scripts/basic/docproc.c:296: warning: pointer targets in assignment differ in si gnedness
  SHIPPED scripts/kconfig/zconf.tab.h
  HOSTCC  scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘strip’:
scripts/kconfig/conf.c:46: warning: pointer targets in passing argument 1 of ‘st rlen’ differ in signedness
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:94: warning: pointer targets in passing argument 1 of ‘fg ets’ differ in signedness
scripts/kconfig/conf.c: In function ‘conf_string’:
scripts/kconfig/conf.c:187: warning: pointer targets in passing argument 1 of ‘s trlen’ differ in signedness
scripts/kconfig/conf.c:188: warning: pointer targets in assignment differ in sig nedness
scripts/kconfig/conf.c: In function ‘conf_sym’:
scripts/kconfig/conf.c:236: warning: pointer targets in passing argument 1 of ‘s trlen’ differ in signedness
scripts/kconfig/conf.c:236: warning: pointer targets in passing argument 1 of ‘_ _builtin_strcmp’ differ in signedness
scripts/kconfig/conf.c:236: warning: pointer targets in passing argument 1 of ‘s trlen’ differ in signedness
scripts/kconfig/conf.c:236: warning: pointer targets in passing argument 1 of ‘_ _builtin_strcmp’ differ in signedness
scripts/kconfig/conf.c:236: warning: pointer targets in passing argument 1 of ‘_ _builtin_strcmp’ differ in signedness
scripts/kconfig/conf.c:236: warning: pointer targets in passing argument 1 of ‘_ _builtin_strcmp’ differ in signedness
scripts/kconfig/conf.c:248: warning: pointer targets in passing argument 1 of ‘s trlen’ differ in signedness
scripts/kconfig/conf.c:248: warning: pointer targets in passing argument 1 of ‘_ _builtin_strcmp’ differ in signedness
scripts/kconfig/conf.c:248: warning: pointer targets in passing argument 1 of ‘s trlen’ differ in signedness
scripts/kconfig/conf.c:248: warning: pointer targets in passing argument 1 of ‘_ _builtin_strcmp’ differ in signedness
scripts/kconfig/conf.c:248: warning: pointer targets in passing argument 1 of ‘_ _builtin_strcmp’ differ in signedness
scripts/kconfig/conf.c:248: warning: pointer targets in passing argument 1 of ‘_ _builtin_strcmp’ differ in signedness
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:350: warning: pointer targets in passing argument 1 of ‘f gets’ differ in signedness
scripts/kconfig/conf.c:360: warning: pointer targets in passing argument 1 of ‘a toi’ differ in signedness
scripts/kconfig/conf.c:384: warning: pointer targets in passing argument 1 of ‘s trlen’ differ in signedness
  HOSTCC  scripts/kconfig/mconf.o
scripts/kconfig/mconf.c: In function ‘cprint1’:
scripts/kconfig/mconf.c:335: warning: pointer targets in assignment differ in si gnedness
scripts/kconfig/mconf.c:337: warning: pointer targets in passing argument 1 of ‘ vsprintf’ differ in signedness
scripts/kconfig/mconf.c: In function ‘cprint’:
scripts/kconfig/mconf.c:355: warning: pointer targets in assignment differ in si gnedness
scripts/kconfig/mconf.c:357: warning: pointer targets in passing argument 1 of ‘ vsprintf’ differ in signedness
scripts/kconfig/mconf.c: In function ‘search_conf’:
scripts/kconfig/mconf.c:548: warning: pointer targets in passing argument 1 of ‘ sym_re_search’ differ in signedness
scripts/kconfig/mconf.c: In function ‘conf’:
scripts/kconfig/mconf.c:759: warning: pointer targets in passing argument 2 of ‘ strcpy’ differ in signedness
scripts/kconfig/mconf.c:763: warning: pointer targets in passing argument 1 of ‘ sscanf’ differ in signedness
scripts/kconfig/mconf.c: In function ‘conf_choice’:
scripts/kconfig/mconf.c:913: warning: pointer targets in passing argument 1 of ‘ sscanf’ differ in signedness
scripts/kconfig/mconf.c:918: warning: pointer targets in passing argument 1 of ‘ sscanf’ differ in signedness
scripts/kconfig/mconf.c: In function ‘conf_string’:
scripts/kconfig/mconf.c:959: warning: pointer targets in passing argument 2 of ‘ sym_set_string_value’ differ in signedness
scripts/kconfig/mconf.c: In function ‘conf_load’:
scripts/kconfig/mconf.c:988: warning: pointer targets in passing argument 1 of ‘ conf_read’ differ in signedness
scripts/kconfig/mconf.c: In function ‘conf_save’:
scripts/kconfig/mconf.c:1017: warning: pointer targets in passing argument 1 of ‘conf_write’ differ in signedness
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2125:
scripts/kconfig/confdata.c: In function ‘conf_expand_value’:
scripts/kconfig/confdata.c:39: warning: pointer targets in passing argument 1 of  ‘__builtin_strchr’ differ in signedness
scripts/kconfig/confdata.c:39: warning: pointer targets in assignment differ in signedness
scripts/kconfig/confdata.c:40: warning: pointer targets in passing argument 2 of  ‘__builtin_strncat’ differ in signedness
scripts/kconfig/confdata.c:51: warning: pointer targets in passing argument 2 of  ‘strcat’ differ in signedness
scripts/kconfig/confdata.c: In function ‘conf_get_default_confname’:
scripts/kconfig/confdata.c:62: warning: pointer targets in passing argument 1 of  ‘conf_expand_value’ differ in signedness
scripts/kconfig/confdata.c: In function ‘conf_read’:
scripts/kconfig/confdata.c:88: warning: pointer targets in passing argument 1 of  ‘conf_expand_value’ differ in signedness
  HOSTLD  scripts/kconfig/mconf
  HOSTCC  scripts/lxdialog/checklist.o
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:32:20: error: curses.h: 沒有此一檔案或目錄
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:130: error: syntax error before ‘use_colors’
scripts/lxdialog/dialog.h:130: warning: type defaults to ‘int’ in declaration of  ‘use_colors’
scripts/lxdialog/dialog.h:130: warning: data definition has no type or storage c lass
scripts/lxdialog/dialog.h:131: error: syntax error before ‘use_shadow’
scripts/lxdialog/dialog.h:131: warning: type defaults to ‘int’ in declaration of  ‘use_shadow’
scripts/lxdialog/dialog.h:131: warning: data definition has no type or storage c lass
scripts/lxdialog/dialog.h:133: error: syntax error before ‘attributes’
scripts/lxdialog/dialog.h:133: warning: type defaults to ‘int’ in declaration of  ‘attributes’
scripts/lxdialog/dialog.h:133: warning: data definition has no type or storage c lass
scripts/lxdialog/dialog.h:146: error: syntax error before ‘*’ token
scripts/lxdialog/dialog.h:146: warning: function declaration isn’t a prototype
scripts/lxdialog/dialog.h:149: error: syntax error before ‘*’ token
scripts/lxdialog/dialog.h:149: warning: function declaration isn’t a prototype
scripts/lxdialog/dialog.h:150: error: syntax error before ‘*’ token
scripts/lxdialog/dialog.h:150: warning: function declaration isn’t a prototype
scripts/lxdialog/dialog.h:151: error: syntax error before ‘*’ token
scripts/lxdialog/dialog.h:152: warning: function declaration isn’t a prototype
scripts/lxdialog/dialog.h:153: error: syntax error before ‘*’ token
scripts/lxdialog/dialog.h:153: warning: function declaration isn’t a prototype
scripts/lxdialog/checklist.c:32: error: syntax error before ‘*’ token
scripts/lxdialog/checklist.c:34: warning: function declaration isn’t a prototype
scripts/lxdialog/checklist.c: In function ‘print_item’:
scripts/lxdialog/checklist.c:38: warning: implicit declaration of function ‘watt rset’
scripts/lxdialog/checklist.c:38: error: ‘win’ undeclared (first use in this func tion)
scripts/lxdialog/checklist.c:38: error: (Each undeclared identifier is reported only once
scripts/lxdialog/checklist.c:38: error: for each function it appears in.)
scripts/lxdialog/checklist.c:39: warning: implicit declaration of function ‘wmov e’
scripts/lxdialog/checklist.c:39: error: ‘choice’ undeclared (first use in this f unction)
scripts/lxdialog/checklist.c:41: warning: implicit declaration of function ‘wadd ch’
scripts/lxdialog/checklist.c:44: error: ‘selected’ undeclared (first use in this  function)
scripts/lxdialog/checklist.c:46: warning: implicit declaration of function ‘wpri ntw’
scripts/lxdialog/checklist.c:46: error: ‘status’ undeclared (first use in this f unction)
scripts/lxdialog/checklist.c:51: warning: implicit declaration of function ‘mvwa ddch’
scripts/lxdialog/checklist.c:51: error: ‘item’ undeclared (first use in this fun ction)
scripts/lxdialog/checklist.c:53: warning: implicit declaration of function ‘wadd str’
scripts/lxdialog/checklist.c:56: warning: implicit declaration of function ‘wref resh’
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/checklist.c:64: error: syntax error before ‘*’ token
scripts/lxdialog/checklist.c:66: warning: function declaration isn’t a prototype
scripts/lxdialog/checklist.c: In function ‘print_arrows’:
scripts/lxdialog/checklist.c:67: error: ‘win’ undeclared (first use in this func tion)
scripts/lxdialog/checklist.c:67: error: ‘y’ undeclared (first use in this functi on)
scripts/lxdialog/checklist.c:67: error: ‘x’ undeclared (first use in this functi on)
scripts/lxdialog/checklist.c:69: error: ‘scroll’ undeclared (first use in this f unction)
scripts/lxdialog/checklist.c:82: error: ‘height’ undeclared (first use in this f unction)
scripts/lxdialog/checklist.c:85: error: ‘item_no’ undeclared (first use in this function)
scripts/lxdialog/checklist.c:85: error: ‘choice’ undeclared (first use in this f unction)
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/checklist.c:103: error: syntax error before ‘*’ token
scripts/lxdialog/checklist.c:104: warning: function declaration isn’t a prototyp e
scripts/lxdialog/checklist.c: In function ‘print_buttons’:
scripts/lxdialog/checklist.c:105: error: ‘width’ undeclared (first use in this f unction)
scripts/lxdialog/checklist.c:106: error: ‘height’ undeclared (first use in this function)
scripts/lxdialog/checklist.c:108: error: ‘dialog’ undeclared (first use in this function)
scripts/lxdialog/checklist.c:108: error: ‘selected’ undeclared (first use in thi s function)
scripts/lxdialog/checklist.c: In function ‘dialog_checklist’:
scripts/lxdialog/checklist.c:126: error: ‘WINDOW’ undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: error: ‘dialog’ undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: error: ‘list’ undeclared (first use in this fu nction)
scripts/lxdialog/checklist.c:126: warning: left-hand operand of comma expression  has no effect
scripts/lxdialog/checklist.c:126: warning: statement with no effect
scripts/lxdialog/checklist.c:132: warning: implicit declaration of function ‘end win’
scripts/lxdialog/checklist.c:133: warning: implicit declaration of function ‘fpr intf’
scripts/lxdialog/checklist.c:133: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/lxdialog/checklist.c:133: error: ‘stderr’ undeclared (first use in this function)
scripts/lxdialog/checklist.c:150: error: ‘COLS’ undeclared (first use in this fu nction)
scripts/lxdialog/checklist.c:151: error: ‘LINES’ undeclared (first use in this f unction)
scripts/lxdialog/checklist.c:153: error: ‘stdscr’ undeclared (first use in this function)
scripts/lxdialog/checklist.c:155: warning: implicit declaration of function ‘new win’
scripts/lxdialog/checklist.c:156: warning: implicit declaration of function ‘key pad’
scripts/lxdialog/checklist.c:156: error: ‘TRUE’ undeclared (first use in this fu nction)
scripts/lxdialog/checklist.c:189: warning: implicit declaration of function ‘sub win’
scripts/lxdialog/checklist.c:221: warning: implicit declaration of function ‘wno utrefresh’
scripts/lxdialog/checklist.c:223: warning: implicit declaration of function ‘dou pdate’
scripts/lxdialog/checklist.c:226: warning: implicit declaration of function ‘wge tch’
scripts/lxdialog/checklist.c:233: error: ‘KEY_UP’ undeclared (first use in this function)
scripts/lxdialog/checklist.c:233: error: ‘KEY_DOWN’ undeclared (first use in thi s function)
scripts/lxdialog/checklist.c:243: error: ‘FALSE’ undeclared (first use in this f unction)
scripts/lxdialog/checklist.c:244: warning: implicit declaration of function ‘scr ollok’
scripts/lxdialog/checklist.c:245: warning: implicit declaration of function ‘wsc rl’
scripts/lxdialog/checklist.c:272: error: called object ‘scroll’ is not a functio n
scripts/lxdialog/checklist.c:307: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/lxdialog/checklist.c:308: warning: implicit declaration of function ‘del win’
scripts/lxdialog/checklist.c:312: error: ‘KEY_LEFT’ undeclared (first use in thi s function)
scripts/lxdialog/checklist.c:313: error: ‘KEY_RIGHT’ undeclared (first use in th is function)
make[2]: *** [scripts/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2
請問是什麼原因呢?                    搞了好久的新手

netman

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 17463
    • 檢視個人資料
    • http://www.study-area.org
virtual machine的安裝
« 回覆 #1 於: 2005-12-24 23:27 »
你用啥版本的 Linux?
或許將 kernel-source 這個 RPM 裝一下看看?

chauping

  • 懷疑的國中生
  • **
  • 文章數: 48
    • 檢視個人資料
virtual machine的安裝
« 回覆 #2 於: 2005-12-25 01:25 »
netman兄:
   我到redhat的網站抓了較新的kernel rpm版解決kernel和gcc版本不合的問題,但尚有一個問題如下:

What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]

因為我的/usr/src/ 裡空空的,而我的/usr/include有很多 .h檔 ,所以我打/usr/include , 它出現下列錯誤訊息如下:

The header files in /usr/include are generally for C libraries, not for the
running kernel. If you do not have kernel header files in your /usr/src
directory, you probably do not have the kernel-source package installed. Are you
sure that /usr/include contains the header files associated with your running
kernel? [no] yes

The directory of kernel headers (version 2.4.20) does not match your running
kernel (version 2.6.14-1.1653_FC4).  Even if the module were to compile
successfully, it would not load into the running kernel.

是否我還要下載什麼套件,才能符合?    
                                     非常困惑的新手 >_<

netman

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 17463
    • 檢視個人資料
    • http://www.study-area.org
virtual machine的安裝
« 回覆 #3 於: 2005-12-25 21:17 »
如果 /usr/src 是空的話, 那就證明你的 kernel-source 還沒裝好囉...

你跑一下如下命令看看:
rpm -qa | grep 'kernel.*source'

chauping

  • 懷疑的國中生
  • **
  • 文章數: 48
    • 檢視個人資料
virtual machine的安裝
« 回覆 #4 於: 2005-12-25 23:14 »
netman兄:
       我的核心用 yum 從2.6.12-1.1381_FC3昇級到另一個FC4版,再用rpm -Uvh *.rpm 的方法昇級到2.6.14-1.1653_FC4,,不是用tar ball安裝,之前用tar ball安裝,出現錯誤,如上兩篇所述,是否核心昇太快了嗎,你那個指令,我打了後都沒動靜.
                                 快瘋掉的新手  >_<

longlife

  • 活潑的大學生
  • ***
  • 文章數: 476
    • 檢視個人資料
    • Arch
virtual machine的安裝
« 回覆 #5 於: 2005-12-26 03:02 »
FC3 使用 FC4 的 kernel?
安裝 VMware 需要的是 kernel 的原始檔(source),
以及相關的 gcc 編譯程式, 且 kernel 版本一定要對上
source, 意即版本要一致.

當 kernel 更換過, 就要從一致的 kernel source 來重新編譯.
個人空間 - 部落格、相冊、書籤
論壇 - 商品、懸賞、活動、辯論

chauping

  • 懷疑的國中生
  • **
  • 文章數: 48
    • 檢視個人資料
virtual machine的安裝
« 回覆 #6 於: 2005-12-26 13:58 »
longlife你好:
       我的kernel是2.6.14-1.1653_FC4.而我下載的source是linux-2.6.14.1.tar.gz,然後我make mrproper後再make menuconfig還是出現如上幾篇所述的和script有關的錯誤訊息,到底是怎麼回事?
                                         >_<

洋蔥叔叔

  • 榮譽博士
  • 鑽研的研究生
  • *****
  • 文章數: 830
    • 檢視個人資料
    • 洋蔥叔叔的隨意漫談電腦、網路、.NET、軟體本地化、雜七雜八
virtual machine的安裝
« 回覆 #7 於: 2005-12-26 15:54 »
裝 kernel-devel 跟 ncurses-devel