加拿大30秒

Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
您的位置: Linux安全网 > Linux培训 > » 正文

centos下安装ie

来源: home198979 分享至:
安装ies4linux前需要安装wine 和 cabextract

1、安装wine

http://blog.zjol.com.cn/210629/viewspace-234630

我用的是源码安装,可以用root用户,如果是简单安装需要用普通用户

tar jxvf wine-1.3.11.tar.bz2

cd wine-1.3.11

./configure

make depend && make && make install

make clean

2、cabextract的安装

tar zxvf cabextract-1.1.tar.gz

cd cabextract-1.1

./configure

make && make install

make clean


3、进入ies4linux的安装

tar zxvf ies4linux-2.99.0.tar.gz

cd ies4linux-2.99.0

./ies4linux

跳出界面选择安装ie6

其中会报错

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安装即可。
可能会卡住,你到~/bin/里看有没有ie6。
有就运行 ~/bin/ie6。

然后就会进行联网下载安装  Wine Gecko


还是不行

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).

You are root! This is very discouraged! IE is too insecure for you to give him root access.
Want a tip from a friend? Run ies4linux as your normal user or, what's better, if you can, create a separate user just do handle your IEs.


卸载掉wine1.3    安装wine0.9
卸载参考http://wyzxzws.javaeye.com/blog/832711
手动卸载
安装0.9的步骤和以前一样

然后运行./ies4linux 运行 可以正确安装

http://blog.csdn.net/yexianyi/archive/2009/03/08/3968720.aspx
如在安装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即可)。

Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史