• 締切済み

ubuntu上でVMware server

make: Entering directory `/tmp/vmware-config5/vmmon-only' make -C /lib/modules/3.0.0-19-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/linux-headers-3.0.0-19-generic' CC [M] /tmp/vmware-config5/vmmon-only/linux/driver.o /tmp/vmware-config5/vmmon-only/linux/driver.c:39:28: fatal error: linux/smp_lock.h: No such file or directory compilation terminated. make[2]: *** [/tmp/vmware-config5/vmmon-only/linux/driver.o] Error 1 make[1]: *** [_module_/tmp/vmware-config5/vmmon-only] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-19-generic' make: *** [vmmon.ko] Error 2 make: Leaving directory `/tmp/vmware-config5/vmmon-only' Unable to build the vmmon module. といわれ、コンパイルがうまくいきません。 どのようにしたらこの先に進むことができるでしょうか? ご教授お願い致します。

みんなの回答

  • wormhole
  • ベストアンサー率28% (1619/5653)
回答No.2

UbuntuにVMwareServerをインストールしようとしてるという事でしょうか? Ubuntu,VMwareServerのどちらもバージョンを書かれてないので推測でしか書けませんが VMwareServerは2009年10月末から更新されてませんので最近のLinuxにはそのままではインストールできないと思います。 では、どのようにしたらインストールできるかですが先人がいないのであれば、あなた自身でそのコンパイルできないもの(VMwareServerが使うデバイスドライバーだと思います)を最近のカーネルに対応できるよう手を入れるしかないです。

  • akr
  • ベストアンサー率18% (32/173)
回答No.1

大雑把な質問なので大雑把に回答すると、エラーをひとつひとつ調べて直すことでしょうね。 例えば、下記のエラーは、driver.cをコンパイルした時にsmp_lock.hが見つからなかったってことだと思います。 /tmp/vmware-config5/vmmon-only/linux/driver.c:39:28: fatal error: linux/smp_lock.h: No such file or directory 原因が、パス設定の問題なのか、本当にファイルが存在しないのかは、この情報だけでは、私には判りません。 何をしててエラーが出たとか、手がかりになりそうなことを書くって当たり前のことをしたほうが、回答をもらいやすいと思いますよ。

関連するQ&A

  • ubuntu上でVMware serverのインストール

    ubuntu8.10 カーネル Linux 2.6.27-11-generic この環境でVMware server 1.0.8をインストールしようと苦戦しております。 VMware-server-1.0.8-126538.tar.gzをダウンロードして、解凍し vmware-server-distribフォルダに移動し、vmware-install.plを実行しました。 その後ほとんどの設定にデフォルトで答え、使用許諾を受け入れると None of the pre-built vmmon modules for VMware Server 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] といわれ、コンパイルをはじめます。 その後もデフォルトで答えていき、いざコンパイルがはじまると、、、 Extracting the sources of the vmmon module. Building the vmmon module. Using 2.6.x kernel build system. make: ディレクトリ `/tmp/vmware-config7/vmmon-only' に入ります make -C /lib/modules/2.6.27-11-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: ディレクトリ `/usr/src/linux-headers-2.6.27-11-generic' に入ります CC [M] /tmp/vmware-config7/vmmon-only/linux/driver.o In file included from /tmp/vmware-config7/vmmon-only/./include/machine.h:24, from /tmp/vmware-config7/vmmon-only/linux/driver.h:15, from /tmp/vmware-config7/vmmon-only/linux/driver.c:49: /tmp/vmware-config7/vmmon-only/./include/x86.h:830:1: warning: "PTE_PFN_MASK" redefined In file included from include/asm/paravirt.h:7, from include/asm/irqflags.h:55, from include/linux/irqflags.h:57, from include/asm/system.h:11, from include/asm/processor.h:17, from include/linux/prefetch.h:14, from include/linux/list.h:6, from include/linux/module.h:9, from /tmp/vmware-config7/vmmon-only/linux/driver.c:12: include/asm/page.h:22:1: warning: this is the location of the previous definition In file included from /tmp/vmware-config7/vmmon-only/linux/vmhost.h:13, from /tmp/vmware-config7/vmmon-only/linux/driver.c:71: /tmp/vmware-config7/vmmon-only/./include/compat_semaphore.h:5:27: error: asm/semaphore.h: No such file or directory /tmp/vmware-config7/vmmon-only/linux/driver.c:146: error: unknown field ‘nopage’ specified in initializer /tmp/vmware-config7/vmmon-only/linux/driver.c:147: 警告: initialization from incompatible pointer type /tmp/vmware-config7/vmmon-only/linux/driver.c:150: error: unknown field ‘nopage’ specified in initializer /tmp/vmware-config7/vmmon-only/linux/driver.c:151: 警告: initialization from incompatible pointer type /tmp/vmware-config7/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’: /tmp/vmware-config7/vmmon-only/linux/driver.c:1670: error: too many arguments to function ‘smp_call_function’ make[2]: *** [/tmp/vmware-config7/vmmon-only/linux/driver.o] エラー 1 make[1]: *** [_module_/tmp/vmware-config7/vmmon-only] エラー 2 make[1]: ディレクトリ `/usr/src/linux-headers-2.6.27-11-generic' から出ます make: *** [vmmon.ko] エラー 2 make: ディレクトリ `/tmp/vmware-config7/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. といわれ、コンパイルがうまくいきません。 どのようにしたらこの先に進むことができるでしょうか? ご教授お願い致します。

  • VMwareの設定が上手くいかない

    VMware4.5.2をRedHatLinux Enterprise3にインストールしました。 「vmware-config.pl」を実行したところ、以下のようなエラーが出てきて、先に進めません。リンク先のページを見てもどう対処すればいいかさっぱり分かりませんでした。どなたか対処法および関係ありそうなwebを教えてください。 make[2]: *** [driver.o] Error 1 make[2]: Leaving directory `/tmp/vmware-config0/vmmon-only/driver-2.4.21-15.0.3.ELsmp' make[1]: *** [driver] Error 2 make[1]: Leaving directory `/tmp/vmware-config0/vmmon-only' make: *** [auto-build] Error 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. 当方の環境は Dell Precision 650-n Intel Xeon 3.2GHz*2 RedHat Linux 3 (kernel-2.4.21-15.0.3-ELsmp) です。

  • VMware tool の インストールについて

    VMware workstationにVMware-toolをインストールする際、コンパイルエラーが表示され、共有フォルダなどの機能が使用できません。 下記にインストール環境とエラー内容を書きます。 ご存知の方がいらしたらご教授願いませんでしょうか? 【VMware workstationバージョン】 VMware Workstation 5.5.2 build-29772 【ホストOS】 WindowsXP Professional Version 2002 Service Pack 2 【ゲストOS】 Fedora7 【ダウンロードしたVMware-tool】 VMwareTools-5.5.2-29772.tar.gz 【エラー内容】 以下のようなエラーが出力されます。 ------------------------------------------------------ [略] None of the pre-built vmhgfs modules for VMware Tools is suitable for your running kernel. Do you want this program to try to build the vmhgfs 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.21-1.3194.fc7/build/include] Extracting the sources of the vmhgfs module. Building the vmhgfs module. Using 2.6.x kernel build system. make: ディレクトリ `/tmp/vmware-config0/vmhgfs-only' に入ります make -C /lib/modules/2.6.21-1.3194.fc7/build/include/.. SUBDIRS=PWD SRCROOT=PWD/. modules make[1]: ディレクトリ `/usr/src/kernels/2.6.21-1.3194.fc7-i686' に入ります CC [M] /tmp/vmware-config0/vmhgfs-only/cpName.o CC [M] /tmp/vmware-config0/vmhgfs-only/cpNameLinux.o CC [M] /tmp/vmware-config0/vmhgfs-only/dev.o CC [M] /tmp/vmware-config0/vmhgfs-only/driver.o /tmp/vmware-config0/vmhgfs-only/driver.c: In function ‘HgfsChangeFileAttributes?’: /tmp/vmware-config0/vmhgfs-only/driver.c:763: error: ‘struct inode’ has no member named ‘i_blksize’ [略(このようなエラーが続きます)] /tmp/vmware-config0/vmhgfs-only/driver.c: In function ‘HgfsClearInode?’: /tmp/vmware-config0/vmhgfs-only/driver.c:4113: error: ‘struct inode’ has no member named ‘u’ make[2]: *** [/tmp/vmware-config0/vmhgfs-only/driver.o] エラー 1 make[1]: *** [_module_/tmp/vmware-config0/vmhgfs-only] エラー 2 make[1]: ディレクトリ `/usr/src/kernels/2.6.21-1.3194.fc7-i686' から出ます make: *** [vmhgfs.ko] エラー 2 make: ディレクトリ `/tmp/vmware-config0/vmhgfs-only' から出ます Unable to build the vmhgfs module. The filesystem driver (vmhgfs module) is used only for the shared folder feature. The rest of the software provided by VMware Tools is designed to work independently of this feature. If you wish to have the shared folders feature, you can install the driver by running vmware-config-tools.pl again after making sure that gcc, binutils, make and the kernel sources for your running kernel are installed on your machine. These packages are available on your distribution's installation CD. ----------------------------------------------------------- 【gcc version】 gcc (GCC) 4.1.2 20070502(Red Hat 4.1.2-12) 【binutils version】 2.17.50.0.12-4 【make version】 GNU Make 3.81 【kernel】 2.6.21-1.3194.fc7 よろしくお願いいたします

  • LaVie G 内蔵ワイヤレスLAN + madwifi

    こんにちわ、いつもお世話になっております。 自分のノートLaVie G RXにFedora Core 1をインストール しました。ノートの内蔵無線LANは UGJZ 10a/b/g MiniPCI Network Adapter madwifiをダウンロードし、 makeしたいですが、以下の エラーメッセージがあります、 [root@d191pool28 madwifi]# make for i in ./ath_hal ./wlan ./driver; do \ (cd $i; make); \ done make[1]: Entering directory `/root/madwifi/ath_hal' make -C /lib/modules/2.4.22-1.2115.nptl/build SUBDIRS=/root/madwifi/ath_hal modules make[2]: Entering directory `/usr/src/linux-2.4.22-1.2115.nptl' . . (省略) . make[2]: *** [modules] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl' make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/madwifi/wlan' make[1]: Entering directory `/root/madwifi/driver' make -C /lib/modules/2.4.22-1.2115.nptl/build SUBDIRS=/root/madwifi/driver modules make[2]: Entering directory `/usr/src/linux-2.4.22-1.2115.nptl' The present kernel configuration has modules disabled. Type 'make config' and enable loadable module support. Then build a kernel with module support enabled. make[2]: *** [modules] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl' make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/madwifi/driver' make: *** [all] エラー 2 [root@d191pool28 madwifi]# そのエラーはFedora Core 1のカーネル2.4.22-1に関係 するものでしょうか。カーネルの新しい設定を教えて、 お願い致します。

  • fedora7

    fedora7にVM-Workstation5.5をインストールしましたが、vmware-config.plの設定が失敗します。 どなたか知っていたら教えてください。 カーネルバージョン(2.6.22.1-41.fc7) 以下の設定&Installをしました。 /lib/modules/2.6.22.1-41.fc7/build/include yum install kernel-devel yum install gcc-c++ yum install libstdc++ yum install libstdc++-devel vmware-any-any-update109 以下はエラー表示です。 make[1]: ディレクトリ `/usr/src/kernels/2.6.22.1-41.fc7-i686' に入ります CC [M] /tmp/vmware-config3/vmmon-only/linux/driver.o CC [M] /tmp/vmware-config3/vmmon-only/linux/hostif.o CC [M] /tmp/vmware-config3/vmmon-only/common/cpuid.o CC [M] /tmp/vmware-config3/vmmon-only/common/hash.o CC [M] /tmp/vmware-config3/vmmon-only/common/memtrack.o CC [M] /tmp/vmware-config3/vmmon-only/common/phystrack.o CC [M] /tmp/vmware-config3/vmmon-only/common/task.o cc1plus: 警告: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++ cc1plus: 警告: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++ cc1plus: 警告: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus: 警告: command line option "-ffreestanding" is valid for C/ObjC but not for C++ 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-config3/vmmon-only/common/task.o] エラー 1 make[1]: *** [_module_/tmp/vmware-config3/vmmon-only] エラー 2 make[1]: ディレクトリ `/usr/src/kernels/2.6.22.1-41.fc7-i686' から出ます make: *** [vmmon.ko] エラー 2 make: ディレクトリ `/tmp/vmware-config3/vmmon-only' から出ます Unable to build the vmmon module. よろしくお願いします。

  • モジュールんの有効(?)に関する質問

    ディストリビューションはTurbo Linuxでカーネルは2.6です。 モジュールを以下のコマンドでコンパイルでコンパイルしようとした所 make -C ~/linux-2.6.5/linux-2.6.5 M='pwd' modules The present kernel configuration has modules disabled. Type 'make config' and enable loadable module support. Then build a kernel with module support enabled. というエラーメッセージ(?)がでました。 意味としては、「'make config'変更してをモジュールを有効にしてください」 という意味だと思いますが、何処を変更すれば良いのでしょうか

  • suse 10.5にRealTek 8169のドライバのinstallに失敗

    suse 10.5にRealTek 8169のドライバのinstallに失敗して困っています 1.RealTekのホームページよりr1000_v1.04.gzを入手 2.r1000_v1.04.gzを解凍して、以下のコマンドにて対応 ・cd r100_v1.04 ・make clean modules ★下記のエラーが発生 make clean modules -----途中省略----- make -C ../../../linux-2.6.16.21-0.25 O=../linux-2.6.16.21-0.25-obj/i386/smp modules /tmp/8169/r1000_v1.04/src/Makefile:28: /usr/src/linux-2.6.16.21-0.25/src/Makefile_linux26x: No such file or directory make[5]: *** No rule to make target `/usr/src/linux-2.6.16.21-0.25/src/Makefile_linux26x'. Stop. -----途中省略----- ★下記のエラーの対応 vi srrc/Makefileの修正 include $(PWD)/src/Makefile_linux26x ↓ include /tmp/8169/r1000_v1.04/src/Makefile_linux26x ★上記修正後、make clean modulesする make -C src/ clean -----途中省略----- make -C ../../../linux-2.6.16.21-0.25 O=../linux-2.6.16.21-0.25-obj/i386/smp modules CC [M] /tmp/8169/r1000_v1.04/src/r1000_n.o /tmp/8169/r1000_v1.04/src/r1000_n.c:51: error: expected ‘)’ before string constant /tmp/8169/r1000_v1.04/src/r1000_n.c:52: error: expected ‘)’ before string constant /tmp/8169/r1000_v1.04/src/r1000_n.c:53: error: expected ‘)’ before string constant -----途中省略----- ※上記エラーは、下記らしいのですが、どうしたらよいわかりません。 MODULE_PARM (speed, "1-" __MODULE_STRING(MAX_UNITS) "i"); MODULE_PARM (duplex, "1-" __MODULE_STRING(MAX_UNITS) "i"); MODULE_PARM (autoneg, "1-" __MODULE_STRING(MAX_UNITS) "i"); どなたかヒントをお願いします

  • Debian(amd64)でdriverをコンパイルに失敗する

    Debian(amd64)でdriverをコンパイルに失敗する DebianでPT1のドライバをコンパイルしようとしたところ、 make[1]: ディレクトリ `/lib/modules/2.6.26-2-amd64/build' に入ります make[1]: *** ターゲット `modules' を make するルールがありません。中止 make[1]: ディレクトリから `/lib/modules/2.6.26-2-amd64/build' 出ます make" ***[pt1_drv.ko] エラー 2 となりドライバが作成できません。 調べたところmakeに失敗するのは下記がバージョンがずれているときと出ていましたがこれ以上は疎くわかりません。 dpkg -l | grep linux-source ii linux-source-2.6.26 2.6.26-24lenny1 dpkg -l | grep linux-headers ii linux-headers-2.6.26-2-amd64 2.6.26-24lenny1 ii linux-headers-2.6.26-2-common 2.6.26-24lenny1

  • CentOS 5 での無線LAN接続設定について

    CentOS 5 での無線LAN接続設定について Linux設定初心者です。 無線LANへの接続設定の方法がネットで調べてもできません。 「Ethernet controller」のドライバをダウンロード・解凍したのですが、「make all」実行中にエラーが起きてしまいます。 何をどうすればいいのか分からないです。 アドバイスいただきたいです。 DELL Inspiron Mini 10v に[CentOS 5.4]をインストールしてます。 /************************ lspci の実行結果 ************************/ [root@localhost /]# lspci : 03:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01) 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02) /************************ make all の実行 ************************/ $ make all make -C src/ clean make[1]: ディレクトリ `/home/tatsuya/nic/r8101-1.019.00/src' に入ります rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers Module.markers *.order make[1]: ディレクトリ `/home/tatsuya/nic/r8101-1.019.00/src' から出ます make -C src/ modules make[1]: ディレクトリ `/home/tatsuya/nic/r8101-1.019.00/src' に入ります make -C /lib/modules/2.6.18-164.el5xen/build SUBDIRS=/home/tatsuya/nic/r8101-1.019.00/src modules make: Entering an unknown directory make: *** /lib/modules/2.6.18-164.el5xen/build: そのようなファイルやディレクトリはありません. 中止. make: Leaving an unknown directory make[1]: *** [modules] エラー 2 make[1]: ディレクトリ `/home/tatsuya/nic/r8101-1.019.00/src' から出ます make: *** [modules] エラー 2 /************************ エラーの原因はディレクトリが無いようです ************************/ $ ll /lib/modules/2.6.18-164.el5xen/build /lib/modules/2.6.18-164.el5xen/build -> ../../../usr/src/kernels/2.6.18-164.el5-xen-i686 /usr/src には何も入っていません $ cd /lib/modules/2.6.18-164.el5xen $ ll ../../../usr/src 合計 0

  • CentOSにRTL8111Cインストールできない

    CentOSをインストールしましたがNICを検出しません。 調査しRTL8111Cであることが分かり、ReadMeに書かれているように 以下の手順を試みましたが、組み込めません。 どなたか対策方法がお分かりになる方教えて下さい。 尚、PCはPCIBusを持っていませんので、別売りの100BASENICに換え ることもできません。初心者で手順が悪いのかよく分かりません。 (1)Realtekからドライバの入手   r8168-8.008.00tar.bz2 (2)ドライバのコピー先を”/root/DownLoad”作成 (3)ドライバをこのフォルダーに入れダブルクリック(解凍) (4)"r8168-8.008.00"が作られ中に以下のフォルダとファイルが生成される  src  Makefile  readme  release_note.txt (5)GNOME端末で # cd Download # cd r8186-8.008.00  # make clean modules (6)表示 [root@localhost Download]# cd r8168-8.008.00 [root@localhost r8168-8.008.00]# make clean modules make -C src/ clean make[1]: ディレクトリ `/root/Download/r8168-8.008.00/src' に入ります rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order make[1]: ディレクトリ `/root/Download/r8168-8.008.00/src' から出ます make -C src/ modules make[1]: ディレクトリ `/root/Download/r8168-8.008.00/src' に入ります make -C /lib/modules/2.6.18-8.el5/build SUBDIRS=/root/Download/r8168-8.008.00/src modules make: Entering an unknown directory make: *** /lib/modules/2.6.18-8.el5/build: そのようなファイルやディレクトリはありません. 中止. make: Leaving an unknown directory make[1]: *** [modules] エラー 2 make[1]: ディレクトリ `/root/Download/r8168-8.008.00/src' から出ます make: *** [modules] エラー 2 [root@localhost r8168-8.008.00]# 宜しくお願いします