Ubuntu配置VMware遇到的问题
- 解决方案一:(报GCC相关问题)
Ubuntu下面安装VMWare,提示:Build environment error! A required application is missing and Modconfig can not
sudo apt-get install libcanberra*
sudo vmware-modconfig --console --install-all
- 解决方案二:(GUI最后一步liscense界面,点击Finish没反应卡住)
Ubuntu运行vmware时报错Vmware Unable to install all modules!Use shipped Linux kernel AIO access library解决。
先通过
vmware --verison
查看目前版本
再新建一个文件vmware.sh
并给予执行权限
在文件中输入:
#!/bin/bash
sudo apt install git -y
VMWARE_VERSION=workstation-16.2.3 #替换版本号
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git
cd $TMP_FOLDER/vmware-host-modules
git checkout $VMWARE_VERSION
git fetch
make
sudo make install
sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1
/usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo /etc/init.d/vmware restart
执行:
sudo chmod +x ./vmware.sh
./vmware.sh
显示以下画面即成功
- 解决方案三:(GUI最后一步liscense界面,点击Finish没反应卡住)
apt-get install libaio #未找到的话直接安装第二个
apt-get install libaio-dev