Ubuntu18.04编译安装wine5.0

本地wine不清除什么原因,失效了。这样SI4无法使用,很不方便。

重新安装wine

sudo apt-get install --install-recommends winehq-stable

The following packages have unmet dependencies:

 winehq-stable : Depends: wine-stable (= 8.0.1~bionic-1)

E: Unable to correct problems, you have held broken packages.

出现如上报错,尝试多种方式未能解决。

最终选尝试下载wine源码包,本地编译安装的方式,最终完成了wine安装。

编译安装wine-5.0

下载

https://dl.winehq.org/wine/source/5.0/

选择wine-5.0.tar.xz。

解压

tar xvJf wine-5.0.tar.xz

编译安装

cd wine-5.0

./configure

报错: configure: error: FreeType 32-bit development files not found.

sudo apt-get install libfreetype6-dev:i386 libfreetype6-dev

再次执行 ./configure

成功:configure: Finished. Do 'make' to compile Wine.

(可选) 存在一些configure: WARNING,按提示安装相关的库。

sudo apt-get install libxrender-dev:i386

sudo apt-get install libxml2-dev:i386

sudo apt-get install libjpeg-dev:i386

再次执行./configure

减少了一些configure: WARNING。

make

成功:Wine build complete.

sudo make install

安装成功。

which wine

/usr/local/bin/wine

wine --version

wine-5.0

参考:https://blog.csdn.net/wyplj2015/article/details/105365833

使用wine安装SI4

wine sourceinsight4096-setup.exe

wine client error:0: version mismatch 547/595.

Your wineserver binary was not upgraded correctly,

or you have an older one somewhere in your PATH.

Or maybe the wrong wineserver is still running?

出现以上报错。

sudo apt-get remove --purge wine

rm -r ~/.wine

(可选)删除~/.local/share/applications/wine/Programs下相关文件

(可选)删除~/.config/menus/applications-merged下相关文件

再次执行

wine sourceinsight4096-setup.exe

完成安装。

wine字体安装

下载

Index of /ubuntu/pool/universe/w/wine

选择fonts-wine_5.0-3ubuntu1_all.deb。

安装

sudo dpkg -i ./fonts-wine_5.0-3ubuntu1_all.deb

将/usr/share/fonts/下的所需字体,复制到~/.wine/drive_c/windows/Fonts目录。

~/.wine/drive_c/windows/Fonts$ ls

Consolas  DroidSansMono  FiraCode  msyh.ttf  source-code-pro  YaHeiConsolas.ttf

  • 13
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值