資訊

在LMDE中安裝wine最新版(原始碼)

Building -1.3.23 for Debian from Source:

Since there isn’t a good version of Wine in the repositories, I decided to build my own from source. Here it is. Please read everything. I DID NOT have Wine previously installed. If you do, you’ll have to remove it FIRST.

###Note: I use ‘sudo -i‘, you may have to use ‘su’.###

Download Wine-1.3.23 Source file from here:

http://www.winehq.org/announce/1.3.23

Extract Wine Source to your desktop

Build Dependencies (cut & paste to terminal):

> sudo apt-get install build-essential checkinstall gcc libncurses5-dev libc6-dev g++ make dpkg-dev

Wine dependencies (cut & paste to terminal):

> sudo apt-get install bison comerr-dev flex gir1.2-gst-plugins-base-0.10 krb5-multidev libc6-dev libcapi20-3 libcapi20-dev libcups2-dev libdbus-1-dev libexif-dev libfontconfig1-dev libgcrypt11-dev libgnutls-dev libgpg-error-dev libgphoto2-2-dev libgsm1-dev libhal-dev libice-dev libjpeg62-dev libkrb5-dev liblcms1-dev libldap2-dev libmpg123-0 libmpg123-dev libopenal1 libopenal-dev libpng12-dev libsane-extras-dev libsm-dev libssl-dev libtasn1-3-dev libfreetype6-dev libtiffxx0c2 libusb-dev libv4l-dev libxslt1-dev libxxf86vm-dev x11proto-xf86vidmode-dev flex bison

X11 dependencies (cut & paste to terminal):

Note: These are probably already installed.

> sudo apt-get install libx11-dev libxcomposite-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxml2-dev libxrandr-dev libxrender-dev libxslt1-dev libxt-dev libxxf86vm-dev

With all the dependencies installed you can begin building Wine. From the terminal:

> cd wine-1.3.23

> ./configure (如果有錯誤,缺什麼補安裝什麼)

> make

> sudo checkinstall make install

Note: checkinstall will make a deb file for easy removal. You can remove it using Synaptic Package Manager.

Configure Wine by entering this in termial:

> winecfg

Test Wine by entering this in termial:

> wine notepad

(Note: it may want you to download Gecko font–allow it)

Enjoy. I have been using my Wine. Please let me know that it worked for you you by posting back here. Thanks. Ken

###

Note: No openssl-dev in build. I couldn’t find it in Squeeze’s repositories. And No libgl-dev (libgl1-mesa-dev or xlibmesa-gl-dev) or libglu-dev (libglu1-mesa-dev or xlibmesa-glu-dev) in build.

[原始出處]

——————————-

Building Wine on 64-bit Debian Testing

  1. apt-get the following packages:
    • ia32-libs (you need version 1.18 at least)
    • libc6-dev-i386
    • lib32z1-dev
    • ia32-libs-dev (it has the /usr/lib32/libpng.so, which seems to be required when installing TTF fonts)
    • optionally, a bunch of other libraries: libxcursor-dev libfontconfig1-dev libldap2-dev libxslt-dev libgl1-mesa-dev libglu1-xorg-dev libgnutls-dev libxi-dev lib32ncurses5-dev libxrandr-dev libxxf86vm-dev
  2. Make symlinks (see below, in the Debian SID section, for the full list of symlinks):
    cd /usr/lib32 ln -s libdbus-1.so.3 libdbus-1.so

This is required as of 2008/05/20 to prevent Wine warning that HAL cannot be found. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=473586

  1. Download the wine source and assuming gcc and all needed development packages are installed (as per http://wiki.winehq.org/Recommended_Packages) you can compile wine using (you shouldn’t need –prefix=… or –x-libraries=… with the latest Debian Unstable AMD64):
    ./configure
    make
    make install
  2. If the configure command fails with “configure: error: C compiler cannot create executables” and you use gcc-4.1, install “gcc-4.1-multilib” to solve it.
  3. Run wine by executing /emul/ia32-linux/usr/bin/wine (you can add the directory to the path or make a script). If wine complains that it can’t find libwine.so.1 make sure /emul/ia32-linux/usr/lib is part of the LD_LIBRARY_PATH or run ldconfig -v.

=====

WINE中文化設定:(資料來源

  1. sudo apt-get install msttcorefonts winetricks
  2. 以下使用一般權限即可。假設要用 Debian 系統中的預設字型 WenQuanYi Micro Hei 當作 Wine 的預設字型,先將 Wine 系統中的字型連結。
    ln
    -s /usr/share/fonts/truetype/wqy/wqy-microhei.ttc ~/.wine/drive_c/windows/Fonts/
  3. gedit ~/.wine/drive_c/windows/win.ini
    在最後加上這幾行設定字型與字型大小。

    [Desktop]
    MenuFont=WenQuanYi Micro Hei
    IconTitleFaceName=WenQuanYi Micro Hei
    MenuFontSize=12
    MessageFontSize=12
    StatusFontSize=12
    IconTitleSize=12

  4. 下載 fonts.reg (此為設定檔,文字編碼為 BIG5,段落編碼為 Unix/Linux),然後打開註冊檔 wine regedit.exe,選擇 Import Registry File 將此文件輸入。
  5. winecfg

3 thoughts on “在LMDE中安裝wine最新版(原始碼)

  1. 在Debian Testing中手動安裝wine 1.4成功編譯,中文也不用特別設定就能呈現。若安裝編譯好的1.5.x(for Debian Sid)會跟Dropbox衝突。

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *