由于我最近写毕业设计,需要在Linux下做实验,并使用CAJViewer参考论文,并写论文记录试验结果,而使用的电脑系统是LinuxMint 13 maya (基于Ubuntu 12.04 Precise)版本的X86-64位Linux系统,之前在其上安装了WINE1.4,但是使用 winetricks 安装 IE6 / IE7浏览器的过程中,一直出现各种各样的问题:

首先遇到的是  "This installation does not support your system architecture (32/64bits)" 

也就是说我安装的 wine 是64位的,而 从 winetricks 上面下载的 IE6/IE7 却是 32位的,所以不兼容。


后来查阅网址https://bbs.archlinux.org/viewtopic.php?id=102422,看到下面一段话:


4.5.3. WINEARCH

Specifies the Windows architecture to support. It can be set either to win32 (support only 32-bit applications), or to win64 (support both 64-bit applications and 32-bit ones in WoW64 mode). The architecture supported by a given Wine prefix is set at prefix creation time and cannot be changed afterwards. When running with an existing prefix, Wine will refuse to start if WINEARCH doesn't match the prefix architecture.


就是说,要想在64位的系统里面使用 32位的WINE以及winetricks,那么需要在命令行中使用它们前中输入:   

export WINEARCH="win32"
而且又因为很多经典的Windows程序大多都是32位的,所以可以使用下面的方式,让重启系统后,不用每次输入上述命令前缀,可以直接使用wine来安装32位的软件:

In the mean time, you could add

export WINEARCH="win32"

to your .bashrc or somewhere, if you're never going to need a 64bit prefix...

后来我想将wine1.4直接升级为 wine1.5 ,使用以下语句升级即可:

sudo add-apt-repository ppa:ubuntu-wine/ppa

sudo apt-get update && sudo apt-get install wine1.5 winetricks

但是后来,可能是升级不彻底,之前的版本里面有不兼容的wine-gecko,所以就又遇到下面的问题:

wine cmd.exe /c echo '%ProgramFiles%' returned empty string


此时,按照这个网址http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=69186 中的说法:

"

如果之前wine沒裝什麼重要的東西,刪掉它, 進入終端機:
sudo rm -rf ~/.wine
然後輸入
winecfg
會重新生成一個假的Windows環境, 備份它,因為你用 winetricks很可能會把它搞壞,自己到檔案管理員多複製一份 (Control+H解除隱藏才可以看到".wine"),或是指令:
cp -R ~/.wine ~/.wine-backup
這時候你可以在終端機執行 winetricks
winetricks
注意!!! sudo 不能亂用的, 無論任何情況,都不要用sudo或管理員身份執行wine或是其相關設定工具(winetricks, winecfg) !!!
====
補充,如果你winetricks把~/.wine給搞爛了,沒關係,剛才有備份:
cp -R ~/.wine-backup ~/.wine
或是直接砍掉~/.wine, 在重新 winecfg 一份~

 "


以下是在 64位 ubuntu 上面 安装 32位 Picasa 程序的 一个实例:

https://wiki.helsinki.fi/display/~pervila@helsinki.fi/Picasa+3.9+on+64-bit+Ubuntu+12.04


sudo apt-get install wine winetricks
export WINEARCH=win32
wget https://launchpad.net/~jcollins/+archive/jaminppa/+build/1482994/+files/getlibs_2.06-0ubuntu1%7Eppa2_all.deb
sudo dpkg -i getlibs_2.06-0ubuntu1~ppa2_all.deb
getlibs -p gnome-keyring:i386
cd ~/ && wget http://dl.google.com/picasa/picasa39-setup.exe
wine ~/picasa39-setup.exe
winetricks ie6



也可以安装 IE7:  winetricks ie7

然后,使用 wine iexplore 打开IE浏览器。



GitHub 加速计划 / li / linux-dash
13
2
下载
A beautiful web dashboard for Linux
最近提交(Master分支:3 个月前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐