日度归档:2019年10月19日

php编译问题

configure: error: jpeglib.h not found.

yum -y install libjpeg-devel

configure: error: xpm.h not found.

yum install libXpm-devel -y

configure: error: freetype-config not found.

yum install freetype-devel -y

configure: error: Unable to locate gmp.h

yum install gmp-devel -y

php 7.4 GD全开

./configure –enable-fpm –with-pdo-mysql –enable-mbstring –with-mysqli –with-openssl –with-zlib –enable-bcmath –enable-gd –with-curl –enable-exif –with-zip –with-pear –with-jpeg –with-webp –with-freetype –with-xpm –enable-gd-jis-conv

“Cannot open /dev/vmmon: No such file or directory” 解决办法

方法一:关闭安全引导

方法二:签名vmmon和vmnet

1.生成key对
$openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
2.使用内核自带的scripts/sign-file签名模块
$sudo /usr/src/kernels/`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
$sudo /usr/src/kernels/`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
注意:sign-file的路径可能不太一样自己find一下

3.导入key
$sudo mokutil --import MOK.der
输入一个秘密记住,然后重启电脑,在efi控制台同意操作

重启后vmware服务就能正常启动了

参考链接:https://kb.vmware.com/s/article/2146460