歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> centos6.0 安裝ie6 (兼容測試用的到)

centos6.0 安裝ie6 (兼容測試用的到)

日期:2017/3/3 12:38:22   编辑:Linux技術
為了學習linux,在單位裝了centos,平常進行lamp開發之余也可以學到了些linux系統維護,網絡安全等方面的東西,可惜的是開發出來的網站兼容性極差,特別是讓人無語的IE6,沒辦法,用的人多,痛苦也得改,還得改好,所以記錄下如何在linux上安裝IE6,以備後用,同時也為戰斗在一線的lampers;虛擬機當然也行,不過比較耗資源;
1,下載三個壓縮包:
cabextract-1.4-1.i386.rpm:下載
ies4linux-latest.tar.gz:下載
wine-1.5.27.tar.bz2:下載
2.下載後直接安裝就可以了,這裡不再贅述了;
3,安裝 ies4linux-latest中遇到以下錯誤:
Your wine does not have wineprefixcreate installed. Maybe you are
running anold Wine version. Try to update it to the latest version.
解決方案:
轉自http://hi.baidu.com/shwkj/item/3eeac342bd223c9f833ae1af
由於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
}

修改後重啟就可以了;
Copyright © Linux教程網 All Rights Reserved