當前系統環境:centos 6.3 64位
因為博主要在linux系統執行apk工具aapt.exe所以就安裝了wine
此次安裝過程同時編譯了32和64版本的wine。
wine32和wine64共存編譯過程如下:
安裝所需要的依賴包(這些依賴包安裝時間跟自己的當前網路和機器配置有關,博主不喜歡在yum的時候加-y選項,所以yum後請手動y確認安裝。)
yum groupinstall 'development tools'
yum install libx11-devel freetype-devel zlib-devel libxcb-devel
yum install alsa-lib-devel.i686 libsndfile-devel.i686 readline-devel.i686 glib2.i686 glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 pulseaudio-libs-devel.i686 cmake audiofile-devel.i686 freeglut-devel.i686 lcms-devel.i686 libieee1284-devel.i686 openldap-devel.i686 unixodbc-devel.i686 sane-backends-devel.i686 fontforge libgphoto2-devel.i686 isdn4k-utils-devel.i686 mesa-libgl-devel.i686 mesa-libglu-devel.i686 libxxf86dga-devel.i686 libxxf86vm-devel.i686 giflib-devel.i686 cups-devel.i686 gsm-devel.i686 libv4l-devel.i686 fontpackages-devel imagemagick-devel.i686 libx11-devel.i686 docbook-utils-pdf libtextcat tex-cm-lgc
yum install alsa-lib-devel audiofile-devel.i686 audiofile-devel cups-devel.i686 cups-devel dbus-devel.i686 dbus-devel fontconfig-devel.i686 fontconfig-devel freetype.i686 freetype-devel.i686 freetype-devel giflib-devel.i686 giflib-devel lcms-devel.i686 lcms-devel libice-devel.i686 libice-devel libjpeg-turbo-devel.i686 libjpeg-turbo-devel libpng-devel.i686 libpng-devel libsm-devel.i686 libsm-devel libusb-devel.i686 libusb-devel libx11-devel.i686 libx11-devel libxau-devel.i686 libxau-devel libxcomposite-devel.i686 libxcomposite-devel libxcursor-devel.i686 libxcursor-devel libxext-devel.i686 libxext-devel libxi-devel.i686 libxi-devel libxinerama-devel.i686 libxinerama-devel libxml2-devel.i686 libxml2-devel libxrandr-devel.i686 libxrandr-devel libxrender-devel.i686 libxrender-devel libxslt-devel.i686 libxslt-devel libxt-devel.i686 libxt-devel libxv-devel.i686 libxv-devel libxxf86vm-devel.i686 libxxf86vm-devel mesa-libgl-devel.i686 mesa-libgl-devel mesa-libglu-devel.i686 mesa-libglu-devel ncurses-devel.i686 ncurses-devel openldap-devel.i686 openldap-devel openssl-devel.i686 openssl-devel zlib-devel.i686 pkgconfig sane-backends-devel.i686 sane-backends-devel xorg-x11-proto-devel glibc-devel.i686 prelink fontforge flex bison libstdc++-devel.i686 pulseaudio-libs-devel.i686 gnutls-devel.i686 libgphoto2-devel.i686 isdn4k-utils-devel.i686 gsm-devel.i686 samba-winbind libv4l-devel.i686 cups-devel.i686 libtiff-devel.i686 gstreamer-devel.i686 gstreamer-plugins-base-devel.i686 gettext-devel.i686
mkdir winecd wine
wget
tar -xf wine-1.8.4.tar.bz2
這裡使用原始碼編譯,根據電腦配置不同,編譯時間也不同
mkdir -p /root/wine/wine64 (我這裡故意寫了個絕對路徑)cd /root/wine/wine64
../wine-1.8.4/configure --enable-win64
make -j 4 (-j 4根據cpu數量填寫,要是不懂就直接make)
cd ..
mkdir wine32
cd wine32
../wine-1.8.4/configure --enable-win32
make -j 4
make install
cd ../wine64
make install
至此wine安裝完成,可以直接使用wine,winecfg,winefile命令
如果需要執行windows軟體的話,需要完善軟體所需的環境。
附:檢視cpu方法:
直接使用命令lscpu顯示cpu簡要資訊
也可以用cat /proc/cpuinfo
centos7 編譯安裝wine32和64
wine32只能執行32位.exe應用程式,wine64只能執行64位.exe應用程式,否則會提示exe檔案無效 安裝依賴前執行 yum groups mark install development tools yum groups mark convert development tools y...
Ubuntu 安裝wine 和 騰訊TIM
一 環境 系統 16.04 lts xenial xerus arch x86 64 tim tim1.2.0 wine wine 2.0.2 二 安裝步驟 1.安裝wine sudo dpkg add architecture i386 wget nc sudo apt key add relea...
解決Wine和IEs4Linux的亂碼問題
1.初始設定 執行 winecfg,把模擬的 windows 系統設定為 windows xp 或者 windows 2000。2.準備字型 為了讓 windows 應用程式看上去更美觀,所以需要 windows 下面的字型。先把windows fonts目錄裡的simsun.ttc字型檔案複製到w...