使用Wine 3.0 Stable获取“make install”错误

我配置了Wine 3.0。 我已经运行了make命令。 30分钟后,Wine已构建,但make install失败:

 make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/hafeez/Downloads/wine-3.0/winecrt0' make[1]: Entering directory '/home/hafeez/Downloads/wine-3.0/acledit' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/hafeez/Downloads/wine-3.0/dlls/acledit' STRIPPROG="strip" ./tools/install-sh dlls/acledit/acledit.dll.so /usr/local/lib/wine/acledit.dll.so mkdir: cannot create directory '/usr/local/lib/wine': Permission denied mkdir: cannot create directory '/usr/local/lib/wine': Permission denied Makefile:1608: recipe for target 'dlls/acledit/install-lib' failed make: *** [dlls/acledit/install-lib] Error 1 

如何make install以安装Wine?

命令make install将无法成功完成,除非它以sudo开头,如下所示:

 sudo make install 

要在wine中运行Windows程序,您需要输入wine c:\\path\\to\\app 。 它通常位于\home\user\.wine的Program Files文件夹中。

如果您从源安装了Wine,请使用sudo rm从您安装它们的目录中删除wine文件(通常是/usr/local/bin )。

你不打算做什么。

更好的方法是安装自编译应用程序
checkinstallsudo apt-get install checkinstall
用它制作deb包。
您可以使用我的其他答案来完成指导。

或者从WineHQ官方存储库为Ubuntu安装Wine:

 wget https://dl.winehq.org/wine-builds/Release.key sudo apt-key add Release.key sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/' sudo apt-get update sudo apt-get install winehq-stable # for trusty, xenial and artful 

上面的命令将安装Wine 3.0。