Fedora23 安装 VMware12 问题

   最新的的fedora23在安装vmware12时会发生错误,百度了好多找不到解决方法,询问小伙伴后在google上发现了一篇介绍如何安装的文章,这里分享以下。

http://vcojot.blogspot.ca/2015/11/vmware-worksation-12-on-fedora-core-23.html

英文博客,不待看的就看下面就可以了。
首先安装 vmware12,不要问我怎么安装。 附个激活码:
VY1DU-2VXDH-08DVQ-PXZQZ-P2KV8
然后命令行执行:

# dnf install kernel-headers kernel-devel gcc glibc-headers 

大概下载个几十兆,再运行以下脚本:

#!/bin/bash
FCX="fedoralib"
# Check for root
if [ "x$(id -u)" != "x0" ]; then
    echo "(**) Run this tool as root!"; exit 1
fi
# Check distro
KVER=$(uname -r|grep fc23)
if [ "x${KVER}" = "x" ];then
    echo "(**) Fedora 23 not detected, Exit!"
    exit 1
fi
# Check presence of VMW
if [ -f /usr/lib/vmware/lib/libvmwareui.so/libvmwareui.so ]; then
    echo "(II) /usr/lib/vmware/lib/libvmwareui.so/libvmwareui.so present, continuing..."
else
    echo "(**) VMWare Workstation not detected, exit!"; exit 1
fi
# Force use of VMWare bundled libs
if [ -f /etc/vmware/bootstrap ]; then
    grep -q VMWARE_USE_SHIPPED_LIBS /etc/vmware/bootstrap
    if [ $? -eq 0 ]; then
        echo "(II) /etc/vmware/bootstrap already has VMWARE_USE_SHIPPED_LIBS, skip.."
    else
        echo "(II) Patching /etc/vmware/bootstrap..."
        echo "export VMWARE_USE_SHIPPED_LIBS=force" >> /etc/vmware/bootstrap
    fi

fi
#
for mylib in $(rpm -ql glib2|grep '/usr/lib64/libg.*so\.0$')
do
    tgtlib="/usr/lib/vmware/lib/$(basename $mylib)/$(basename $mylib)"
    if [ ! -f "${tgtlib}.${FCX}" ]; then
        echo "(II) Backing up to ${tgtlib}.${FCX}..."
        /bin/cp -Lfv ${tgtlib} ${tgtlib}.${FCX}
    fi
    echo "(II) Replacing ${tgtlib} ..."
    /bin/cp -Lfv ${mylib} ${tgtlib}
done

脚本保存为 1.sh。赋予权限:

chmod 755 1.sh

运行:

./1.sh

完成!
      如果运行 vmware12 报错说指明 kernel 的位置,点击 browse 查看系统的kernel 版本号,如果与所需要的不同一,则要重新安装本机的kernel。比如说我的 kernel 为 kernel-headers-4.2.8-300,而需要的是kernel-headers-4.2.3-300则要重新安kernel-headers-4.2.3-300。命令为:

dnf install kernel-headers-4.2.3-300.fc23.x86_64
dnf install kernel-devel-4.2.3-300.fc23.x86_64 

你可能感兴趣的:(vmware,fedora)