デスクトップではない、CUIのCentOSの仮想マシンにVirtualBox Guest Additionsをインストールする際にperlが使われるようになっていました。確か少し前までは不要だったと思うのですが、いつから(ひょっとして最初から?)Perlを必要とするようになったかは不明です。
環境
- CentOS 6.6(x86_64) カーネル 2.6.32
- VirtulBox 4.3.20
VirtualBox Guest Additionsインストール失敗
いつものように、デバイスドライバをビルドするのに必要なパッケージを入れてビルドしました。
いつものインストール方法
yum -y install kernel-devel kernel-headers dkms gcc gcc-c++
mount -t iso9660 /dev/cdrom /mnt
sh /mnt/VBoxLinuxAdditions.run
失敗
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.20 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.20 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules [ OK ]
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module [失敗]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions [ OK ]
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
Perlを追加してインストール
Perlを追加して再度インストール
yum -y install perl
sh /mnt/VBoxLinuxAdditions.run
成功
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.20 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.20 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules [ OK ]
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules [ OK ]
Doing non-kernel setup of the Guest Additions [ OK ]
Starting the VirtualBox Guest Additions [ OK ]
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
うまくいきました。