Chinaunix首页 | 论坛 | 博客
  • 博客访问: 575460
  • 博文数量: 836
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 4995
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 16:55
文章分类

全部博文(836)

文章存档

2008年(836)

我的朋友

分类: LINUX

2008-08-22 17:39:50

 
用wineinstall安装:用普通用户登录,解压wine-0.9.10.tar.zip,解压后的目录就是原码安装包,进入该目录。运行:./tools/wineinstall按提示回答就可以了。

即:
1。suyhcgh(以普通用户yhcgh运行)
2.。unzipwine-0.9.47.tar.zip-d/home/yhcgh/wine/(解压目录)
3。cd\home\yhcgh\wine
4。tarjxvfwine-0.9.47.tar.bz2
5。cdwine-0.9.47
6。cdtools
7。./wineinstall(安装释放文件)
8。之后它会运行./configure,然后显示:Weneedtoinstallwineasrootuser,doyouwantustobuildwine,''suroot''andinstallWine?Enter''no''tocontinuewithoutinstalling(yes/no)

  yes回车

  如果在此处出现错误,请检查此命令的输出,如果他没有找到一些需要的包,而你又希望使用那个包提供的功能时,请安装相应的devel包。

  如果你root用户设置了密码,还会提示你输入密码。

  待屏幕上出现:
  Installationcompletefornow.Goodluck(thisisstillalphasoftware).
  IfyouhaveproblemswithWINE,pleasereadthedocumentationfirst,
  asmanykindsofpotentialproblemsareexplainedthere.

  则表示安装成功了。

 在shell下运行wine,第一次运行不成功,这是正常,因为没有在/root/.wine/config文件里配置好.找到这些吧。

  [DriveC]
  "Path"="/usr/share/win_c"
  "Type"="hd"
  "Label"="MS-DOS"
  "Filesystem"="win95"

  改为:[DriveC]
  "Path"="/winc"
  "Type"="hd"
  "Label"="MS-DOS"
  "Filesystem"="win95"

  就可以了,如果你安装了simsun字体.wine默认就会找到这个字体的,下边就是我的/root/.wine/config。

  WINEREGISTRYVersion2
  ;;AllkeysrelativetoMachineSoftwareWineWineConfig
  ;;
  ;;MS-DOSdrivesconfiguration
  ;;
  ;;Eachsectionhasthefollowingformat:
  ;;[DriveX]
  ;;"Path"="xxx"(Unixpathfordriveroot)
  ;;"Type"="xxx"(supportedtypesare''floppy'',''hd'',''cdrom''and''network'')
  ;;"Label"="xxx"(drivelabel,atmost11characters)
  ;;"Serial"="xxx"(serialnumber,8charactershexadecimalnumber)
  ;;"Filesystem"="xxx"(supportedtypesare''msdos''/''dos''/''fat'',''win95''/''vfat'',''unix'')
  ;;ThisistheFSWineissupposedtoemulateonacertain
  ;;directorystructure.
  ;;Recommended:
  ;;-"win95"forext2fs,VFATandFAT32
  ;;-"msdos"forFAT16(ugly,upgradingtoVFATdriverstronglyrecommended)
  ;;DON''Tuse"unix"unlessyouintendtoportprogramsusingWinelib!
  ;;"Device"="/dev/xx"(onlyifyouwanttoallowrawdeviceaccess)
  ;;
  [DriveA]
  "Path"="/mnt/floppy"
  "Type"="floppy"
  "Label"="Floppy"
  "Serial"="87654321"
  "Device"="/dev/fd0"
  [DriveC]
  "Path"="/winc"
  "Type"="hd"
  "Label"="MS-DOS"
  "Filesystem"="win95"
  [DriveD]
  "Path"="/mnt/cdrom"
  "Type"="cdrom"
  "Label"="CD-Rom"
  "Filesystem"="win95"
  ;makesurethatdeviceiscorrectandhasproperpermissions!
  "Device"="/dev/cdrom"
  [DriveE]
  "Path"="/tmp"
  "Type"="hd"
  "Label"="TmpDrive"
  "Filesystem"="win95"
  [DriveF]
  "Path"="${HOME}"
  "Type"="network"
  "Label"="Home"
  "Filesystem"="win95"
  [DriveZ]
  "Path"="/"
  "Type"="network"
  "Label"="Root"
  "Filesystem"="win95"
  [wine]
  "Windows"="c:windows"
  "System"="c:windowssystem"
  "Temp"="e:"
  "Path"="c:windows;c:windowssystem;e:;e:est;f:"
  "Profile"="c:windowsProfilesAdministrator"
  "GraphicsDriver"="x11drv"
  ;Winedoesn''tpassdirectorysymlinkstoWindowsprogramsbydefault.
  ;Enablingthismaycrashsomeprogramsthatdorecursivelookupsofawhole
  ;subdirtreeincaseofasymlinkpointingbacktoitself.
  ;"ShowDirSymlinks"="1"
  "ShellLinker"="wineshelllink"
  #〈wineconf〉
  [DllDefaults]
  ;"EXTRA_LD_LIBRARY_PATH"="${HOME}/wine/cvs/lib"
  "DefaultLoadOrder"="native,builtin,so"
  [DllOverrides]
  "commdlg"="builtin,native"
  "comdlg32"="builtin,native"
  "ver"="builtin,native"
  "version"="builtin,native"
  "shell"="builtin,native"
  "shell32"="builtin,native"
  "lzexpand"="builtin,native"
  "lz32"="builtin,native"
  "comctl32"="builtin,native"
  "commctrl"="builtin,native"
  "wsock32"="builtin"
  "winsock"="builtin"
  "advapi32"="builtin,native"
  "crtdll"="builtin,native"
  "mpr"="builtin,native"
  "winspool.drv"="builtin,native"
  "ddraw"="builtin,native"
  "dinput"="builtin,native"
  "dsound"="builtin,native"
  "mmsystem"="builtin"
  "winmm"="builtin"
  "msvcrt"="native,builtin"
  "msvideo"="builtin,native"
  "msvfw32"="builtin,native"
  "mcicda.drv"="builtin,native"
  "mciseq.drv"="builtin,native"
  "mciwave.drv"="builtin,native"
  "mciavi.drv"="native,builtin"
  "mcianim.drv"="native,builtin"
  "msacm.drv"="builtin,native"
  "msacm"="builtin,native"
  "msacm32"="builtin,native"
  "midimap.drv"="builtin,native"
  "wnaspi32"="builtin"
  "icmp"="builtin"
  [x11drv]
  ;Numberofcolorstoallocatefromthesystempalette
  "AllocSystemColors"="100"
  ;Useaprivatecolormap
  "PrivateColorMap"="N"
  ;Favorcorrectnessoverspeedinsomegraphicsoperations
  "PerfectGraphics"="N"
  ;Colordepthtouseonmulti-depthscreens
  ;;"ScreenDepth"="16"
  ;NameofX11displaytouse
  ;;"Display"=":0.0"
  ;Allowthewindowmanagertomanagecreatedwindows
  "Managed"="N"
  ;Useadesktopwindowof640x480forWine
  ;"Desktop"="640x480"
  ;UseXFree86DGAextensionifpresent
  "UseDGA"="Y"
  ;UseXShmextensionifpresent
  "UseXShm"="Y"
  ;EnableDirectXmousegrab
  "DXGrab"="N"
  ;Createthedesktopwindowwithadouble-bufferedvisual
  ;(usefultoplayOpenGLgames)
  "DesktopDoubleBuffered"="N"
  ;Codepageusedforcaptionsinmanagedmode
  ;0meansdefaultANSIcodepage(CP_ACP==0)
  "TextCP"="0"
  ;Usethisifyouhavemorethanoneportforvideoonyoursetup
  ;(Wineusesfornowthefirst''inputimage''itfinds).
  ;;"XVideoPort"="43"
  [fonts]
  ;Readdocumentation/fontsbeforeaddingaliases
  "Resolution"="96"
  "Default"="-misc-simsun-"
  [serialports]
  "Com1"="/dev/ttyS0"
  "Com2"="/dev/ttyS1"
  "Com3"="/dev/ttyS2"
  "Com4"="/dev/modem"
  [parallelports]
  "Lpt1"="/dev/lp0"
  [spooler]
  "LPT1:"="|lpr"
  ;"LPT2:"="|gs-sDEVICE=bj200-sOutputFile=/tmp/fred-q-"
  ;"LPT3:"="/dev/lp3"
  [ports]
  ;"read"="0x779,0x379,0x280-0x2a0"
  ;"write"="0x779,0x379,0x280-0x2a0"
  [spy]
  "Exclude"="WM_SIZE;WM_TIMER;"
  [registry]
  ;Theseareallbooleans.Y/y/T/t/1aretrue,N/n/F/f/0arefalse.
  ;Defaultsarereadall,writetoHome
  ;Globalregistries(storedin/etc)
  "LoadGlobalRegistryFiles"="Y"
  ;Homeregistries(storedin~user/.wine/)
  "LoadHomeRegistryFiles"="Y"
  ;LoadWindowsregistriesfromtheWindowsdirectory
  "LoadWindowsRegistryFiles"="Y"
  ;TRYtowriteallchangestohomeregistries
  "WritetoHomeRegistryFiles"="Y"
  ;Registryperiodicsavetimeoutinseconds
  ;"PeriodicSave"="600"
  ;Saveonlymodifiedkeys
  "SaveOnlyUpdatedKeys"="Y"
  [Tweak.Layout]
  ;;supportedstylesare''Win31''(default),''Win95'',''Win98''
  "WineLook"="Win98"
  [Console]
  ;"Drivers"="tty"
  ;"XtermProg"="nxterm"
  ;"InitialRows"="25"
  ;"InitialColumns"="80"
  ;"TerminalType"="nxterm"
  [Clipboard]
  "ClearAllSelections"="0"
  "PersistentSelection"="1"
  #〈/wineconf〉

阅读(328) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~