Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Ubuntu 12.04 安装 IEs4Linux 运行 IE6/IE7:Wine 环境、核心字体与常见错误修复

編輯:關於 Linux

IEs4Linux 通过 Wine 在 Linux 上运行 Internet Explorer 6/7,适用于网银、旧版 OA 系统兼容性测试。本文记录 Wine 安装、IEs4Linux 部署、安装脚本报错修复、下载加速与桌面快捷方式创建全流程。

一、安装 Wine 与依赖

sudo apt-get install wine1.4 cabextract
# 或启用 Wine PPA 获取更新版
# sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update && sudo apt-get install wine1.7

二、下载并安装 IEs4Linux

wget https://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
# 终端模式安装 IE6+IE7 Beta+核心字体(推荐)
./ies4linux --no-gui --beta-install-ie7 --locale CN --install-corefonts
# 仅安装 IE6
# ./ies4linux --no-gui --install-ie6 --locale CN --install-corefonts

参数说明:--no-gui 避免图形安装器卡死;--install-corefonts 必装,否则网页显示方框乱码。

三、修复常见安装错误

  1. wineprefixcreate 不存在(Wine 1.4+ 移除)
    编辑 lib/functions.sh 与 lib/install.sh,将 wineprefixcreate 替换为 winepath:
    # functions.sh 第 242 行左右
    if which winepath &>/dev/null; then
        (winepath 2>&1) | debugPipe
    else
        error $MSG_ERROR_NO_WINEPREFIXCREATE
    fi
    
    # install.sh 第 426 行左右
    winepath &>/dev/null
  2. 核心字体下载缓慢/中断
    编辑 lib/install.sh 第 119 行,SourceForge 镜像改为 nchc(台湾):
    download "https://nchc.dl.sourceforge.net/project/corefonts/the%20fonts/final/$font"
    编辑 lib/functions.sh 第 126 行,下载失败自动重试:
    # error $MSG_ERROR_DOWNLOADING $DIR$FILENAME
    download $URL

四、创建桌面快捷方式

# 安装后可执行文件位于 ~/bin/ie6 或 ~/bin/ie7
cp ~/bin/ie6 ~/Desktop/
# 或创建 .desktop 文件
cat > ~/.local/share/applications/ie6.desktop <<'EOF'
[Desktop Entry]
Name=Internet Explorer 6
Exec=wine "C:\Program Files\Internet Explorer\iexplore.exe"
Icon=~/bin/ie6.ico
Type=Application
Categories=Network;WebBrowser;
EOF

五、直接命令行启动

wine "C:\Program Files\Internet Explorer\iexplore.exe" 2>&1

IEs4Linux 安装示意图

修复 wineprefixcreate 兼容性问题、替换下载镜像、启用核心字体,即可在 Ubuntu 12.04 顺利安装 IEs4Linux 运行 IE6/IE7。现代替代方案:winetricks ie8、PlayOnLinux、Browsershots 在线测试或虚拟机完整 Windows 环境。

Copyright © Windows教程網 All Rights Reserved