Author:hongbingfeng
Email:bfhong@gmail.com
Under Opensolaris ,we can run Linux program by many way,such as zone and so on .Actually Opensolaris can aslo run Windows Programs.
The article introduce wine and use wine to run Windows Programs in Opensolaris 2008.05.
Tools: OpenSolaris 2008.05
Wine 1.0-rc1
1. 1.Introduce wine
Wine is a tool.which can executive part Windows programs under Unix operating system.
It can run on mostly Unix edition ,include Solaris.,Linux,RreeBSD and Mac OS X..Wine is opensource Windows API on the top of X,OpenGL and Unix .It similar as simulator of Windows.
2. Download and Install
The new release of Wine is 1.0 and can be downloaded as binary or source files. But it so pity that it haven’t binary install package .so ,if you want to experience new characteristic of 1.0,we can only build and run source package by ourselves.
Offical download address: http://www.winehq.org/site/download
Because I have some questions are unfathomed when building the source file ,this article only install Wine 1.0-rc1.
The Package download link:
http://www.teesoft.info/wine/wine-1.0-rc1-solaris-5.11-i86pc.pkg.bz2
Decompression the package and install as follow:
#bunzip wine-1.0-rc1-solaris-5.11-i86pc.pkg.bz2
#pkgadd –d wine-1.0-rc1-solaris-5.11-i86pc.pkg
The installing path is /usr/local/wine。It will simulating part of directory, such as c:/program files,c:/windows, in the OpenSolaris 2008.05. If the login user is root, some directories will be created like windows in the path “/root/.wine/drive_c/”, such as Program Files and windows, my documents,my music etc. The details can be configued by the command “#/usr/local/wine/bin/winecfg”. How to configue the details can be seen the reference link at the end.
3. Run Windows Program by wine
It’s easy to use wine, the command to install and run Windows program is:
#/usr/local/wine/bin/wine exe file
Follow is an easy example to install Thunder 5 by using wine in OpenSolaris:
1.#/usr/local/wine/bin/wine Thunder5.exe (Thunder5.exe is the setup file)
Then the setup program like in Windows appears, and we can complete it.
2.After setuping, change to the install directory of Thunder, and open the Thunder using the follow command:
#/usr/local/wine/bin/wine Thunder.exe (Thunder.exe is the executable file)
But at this time show the message “Cann’t find the MFC42.dll”, we can solve the problem by copying the MFC42.dll from the actuall Windows system to the same directory in OpenSolaris.
The start Thunder window as follow:

4. Experience in using Wine
1. Wine can run some Windows programs, but some programs cannot be supported. The Wine 1.0-rc1 has not support .net frame, so it will show the error message ”Reinstall the .net framement” when starting the program such as Fetion.
2. Some programs will using the plugins of the Windows, for example, the Sopcast will use the camera player plugin. So it must be installing the relate player or putting the player plugin to the relate directory.
3.As problem arisen when you install thunder, we need some relevant files when we run some programs ,which wine not exclude it .we can copy relevant files to corresponding directory of OpenSolaris.
4.It is a pity that this article cannot test by Wine 1.0 .release. Wine 1.0 release should hold out more Windows programme.
Reference :
Official website : http://www.winehq.org
《wine chinese user guide》:http://blog.csdn.net/hongmy525/archive/2008/04/01/2238632.aspx
Chinese Article link :
http://developers.sun.com.cn/blog/functionalca/entry/opensolaris_2008_05_%E4%B8%8B%E8%BF%90%E8%A1%8Cwindows%E7%A8%8B%E5%BA%8F