linux安装IE

来源:互联网 发布:学java好还是学ios好 编辑:程序博客网 时间:2024/04/29 17:38

为什么要在linux中安装IE呢,因为很多网站都以IE开发的,特别是网银什么的,不装的话不能淘宝,网银不能登陆,没办法,以下是安装方法
第一步当然是下载了,http://www.tatanka.com.br/ies4linux/downloads/ 去这里下载一个,大多数人会选择最新的,也就是这个 http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
然后解压 tar zxvf ies4linux-latest.tar.gz
接着进入目录 cd ies4linux-*
安装的话,不推荐直接运行./ies4linux,因为GUI版的不是很稳定,可能会在安装过程中出问题
最好运行 ./ies4linux --no-gui --beta-install-ie7 --locale CN --install-corefonts
注明 --no-gui 表示终端方式安装,--beta-install-ie7 表示安装IE7,--locale CN 表示本地语言是中文简体, --install-corefonts表示安装微软的字体(很重要)如果不装的话有些网页内容看不到,看到的是口口口口,全是方框
安装过程会显示
IEs4Linux 2 is developed to be used with recent Wine versions (0.9.x). It seems that you are using an old version. It's recommended that you update your wine to the latest version (Go to: winehq.com).

IEs4Linux will:
- Install Internet Explorers: 6.0, 7.0
- Using IE locale: CN
- Install Adobe Flash 9.0
- Install MS Core Fonts
- Install everything at: /home/djhui/.ies4linux
[ OK ]

Downloading everything we need
Downloading from microsoft.com:
DCOM98.EXE
mfc42.cab
249973USA8.exe
ADVAUTH.CAB
CRLUPD.CAB
HHUPD.CAB
IEDOM.CAB
IE_EXTRA.CAB
IE_S1.CAB
IE_S2.CAB
IE_S5.CAB
IE_S4.CAB
IE_S3.CAB
IE_S6.CAB
SETUPW95.CAB
FONTCORE.CAB
FONTSUP.CAB
VGX.CAB
SCR56EN.CAB
IE7-WindowsXP-x86-enu.exe

Downloading from macromedia.com:
swflash.cab

Downloading from sourceforge.net
andale32.exe
arial32.exe
arialb32.exe
comic32.exe
courie32.exe
georgi32.exe
impact32.exe
times32.exe
trebuc32.exe
verdan32.exe
100% wd97vwr32.exe
100% webdin32.exe
[ OK ]

Installing IE 6
Initializing
Creating Wine Prefix
Extracting CAB files
Installing IE 6
Installing DCOM98
Installing TTF Fonts
Installing Core Fonts
Installing ActiveX MFC42
Installing RICHED20
Installing registry
Finalizing
[ OK ]

Installing Flash Player 9
Extracting files
Installing flash on ie6
Finalizing
[ OK ]

Installing IE 7 (beta)
Copying ie6 installation
Extracting files
Installing registry
Finalizing
[ OK ]

IEs4Linux installations finished!

To run your IEs, type:
ie6
ie7
到这里,安装就完成了

2.
到windows下copy一个simsun.ttc放到
~/.ies4linux/ie6/drive_c/windows/fonts

代码:

kate ~/.ies4linux/ie6/system.reg

找到这两行

代码:

“MS Sans Serif”=”sserife.fon”
“MS Serif”=”serife.fon”

替换为

代码:

“MS Sans Serif”=”SIMSUN.TTC”
“MS Serif”=”SIMSUN.TTC”

另外修改
其中如下部分
代码:

[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes] 1144897563
“MS Shell Dlg”=”SimSun”
“MS Shell Dlg 2″=”SimSun”

保存退出,OK了 ,解决ie6按钮不显示中文问题。

版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
以上文章引用地址:http://www.iefans.net/linux-ie7/ 作者:iefans



不过按照上述方法,当所有的文件都下载好开始安装的时候由会出现如下问题:

Initializing
  Creating Wine Prefix
!! Your wine does not have wineprefixcreate installed. Maybe you are running an old Wine version. Try to update it to the latest version.

以下摘自网络:

由于wine 1.3使用了winepath代替wineprefixcreate,所以安装ies4linux的时候,会提示wine版本太旧,wineprefixcreate有误。可以通过修改ies4linux 2.99.0.1/lib的functions.sh、install.sh来简单解决ie6的安装问题。


不过按照上述方法,当所有的文件都下载好开始安装的时候由会出现如下问题:

Initializing
  Creating Wine Prefix
!! Your wine does not have wineprefixcreate installed. Maybe you are running an old Wine version. Try to update it to the latest version.

以下摘自网络:

由于wine 1.3使用了winepath代替wineprefixcreate,所以安装ies4linux的时候,会提示wine版本太旧,wineprefixcreate有误。可以通过修改ies4linux 2.99.0.1/lib的functions.sh、install.sh来简单解决ie6的安装问题。


在install.sh 426行左右
subsection $MSG_CREATING_PREFIX
set_wine_prefix "$BASEDIR/ie1/"
wineprefixcreate &> /dev/null
clean_tmp

改为:
subsection $MSG_CREATING_PREFIX
set_wine_prefix "$BASEDIR/ie1/"
winepath &> /dev/null
clean_tmp



在functions.sh 242行左右
function create_wine_prefix {
if which wineprefixcreate &> /dev/null; then
( wineprefixcreate 2>&1 ) | debugPipe
else
error $MSG_ERROR_NO_WINEPREFIXCREATE
fi
}


改为:
function create_wine_prefix {
if which winepath &> /dev/null; then
( winepath 2>&1 ) | debugPipe
else
error $MSG_ERROR_NO_WINEPREFIXCREATE
fi
}



保存后重新运行./ies4linux --install-corefonts --no-gui --no-color --locale EN-US --install-ie6安装就不会出项上面的问题了。


注意:

如果發生An error occured when trying to cabextract some files的錯誤的話,請进入到你的家目录底下,然後按 Ctrl + h 键,然後找到 .ies4linux 這資料夾,再進去裡面,把 downloads 裡的東西全部删除掉,然後再重新安裝一



ies4linux 错误

Installing IE 6

Initializing

Creating Wine Prefix

Extracting CAB files

/root/.ies4linux/downloads/ie6/CN/ADVAUTH.CAB: No such file or directory

/root/.ies4linux/downloads/ie6/CN/CRLUPD.CAB: No such file or directory

/root/.ies4linux/downloads/ie6/CN/HHUPD.CAB: No such file or directory

/root/.ies4linux/downloads/ie6/CN/IEDOM.CAB: No such file or directory

/root/.ies4linux/downloads/ie6/CN/IE_EXTRA.CAB: No such file or directory

/root/.ies4linux/downloads/ie6/CN/IE_S*.CAB: No such file or directory

/root/.ies4linux/downloads/ie6/CN/SETUPW95.CAB: No such file or directory

/root/.ies4linux/downloads/ie6/CN/VGX.CAB: WARNING; possible 6896 extra bytes at end of file.

An error occured when trying to cabextract some files.

可参考以下解决办法:

需要修改二个地方(在ies4linux-lastest.tar.gz展开的目录下)

1. 將lib/messages.txt中的

tw . zhtw TW

改成

zh tw zhtw TW

2. 將lib/functions.sh中的

pid=(wget ...)

改成

pid=(LANG=C wget ...)

改完后再执行 ./ies4linux 即可(下载过程种可能或有个别CAB文件下载错误,导致安装IE出问题,关闭后再次运行./ies4linux即可)。

ok,大功告成!



原创粉丝点击