のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

vmware-toolsでエラー

共有フォルダがマウントされない。
しょうがないので、USBメモリでコピーした。

/lib/modules/3.2.0-30-generic/build/include/

/tmp/vmware-root/modules/vmhgfs-only/fsutil.c: 関数 ‘HgfsChangeFileAttributes’ 内:
/tmp/vmware-root/modules/vmhgfs-only/fsutil.c:610:4: エラー: 読み取り専用メンバ ‘i_nlink’ への代入です
/tmp/vmware-root/modules/vmhgfs-only/file.c:128:4: 警告: 互換性のないポインタ型からの初期化です [デフォルトで有効]
/tmp/vmware-root/modules/vmhgfs-only/file.c:128:4: 警告: (‘HgfsFileFileOperations.fsync’ 用の初期化付近) [デフォルトで有効]
make[2]: *** [/tmp/vmware-root/modules/vmhgfs-only/fsutil.o] エラー 1
make[2]: *** 未完了のジョブを待っています....
/tmp/vmware-root/modules/vmhgfs-only/tcp.c:53:30: エラー: expected ‘)’ before numeric constant
/tmp/vmware-root/modules/vmhgfs-only/tcp.c:56:25: エラー: expected ‘)’ before ‘int’
/tmp/vmware-root/modules/vmhgfs-only/tcp.c:59:33: エラー: expected ‘)’ before ‘int’
make[2]: *** [/tmp/vmware-root/modules/vmhgfs-only/tcp.o] エラー 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmhgfs-only] エラー 2
make[1]: ディレクトリ `/usr/src/linux-headers-3.2.0-30-generic' から出ます
make: *** [vmhgfs.ko] エラー 2
make: ディレクトリ `/tmp/vmware-root/modules/vmhgfs-only' から出ます

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.
[ Press Enter key to continue ] 

vmware-playerを4.1から5.0へアップデートし、
もう一度、vmware-config-tools.plを実行した。

$ sudo vmware-config-tools.pl

どうしてか、エラーが出なくなった。
共有ファイルも使えそうだ。