How do I install Wine on redhat 7.2? I downlaoded the RPM file, tried opening it with the package manager, and double clickign on it (takes me to the same place), but when I click install I get errors saying ti can't install it.
What are the other windows emulator things similar to Wine?
MacDaddy
12-23-2001, 06:27 AM
Try installing it like this:
Go to a terminal.
type 'su' and type in your root password.
type 'rpm -ivh <package name>'
See what kind of errors it gives you.
Post them back here. If they are dependencies, then go to www.rpmfind.com (http://www.rpmfind.com) and get the package you need and install it.
[root@h24-66-18-49 root]# rpm -ivh wine-20011222-1.i386.rpm
error: open of wine-20011222-1.i386.rpm failed: No such file or directory
[root@h24-66-18-49 root]#
This is what I get when I try to install in the Konsole.
this is what I get when i try to install using the package manager. ::
Found 0 source and 1 binary packages
rpmdepCheck() failed.
Jomboni
12-24-2001, 03:15 AM
rpm -ivh wine-20011222-1.i386.rpmAll that means is that you are either typing the filename wrong, or you are not in the directory where the rpm is saved.
-chaos-
12-26-2001, 12:16 AM
Ok, I got this far and heres what Happened.
[root@h24-66-18-49 filez]# rpm -ivh wine-20011222-1.i386.rpm
Preparing... ########################################### [100%]
file /usr/bin/dosmod from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/bin/fnt2bdf from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/bin/wine from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/bin/winebuild from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/bin/wineclipsrv from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/bin/winedbg.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/bin/winelauncher from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/bin/winemaker from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/bin/wineserver from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/bin/wineshelllink from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/bin/wmc from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/bin/wrc from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libadvapi32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libavifil32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libcomctl32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libcomdlg32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libcrtdll.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libdciman32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libddraw.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libdinput.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libdplay.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libdplayx.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libdsound.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libgdi32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libglu32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libicmp.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libimagehlp.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libimm32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libjoystick.drv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libkernel32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/liblz32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmcianim.drv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmciavi.drv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmcicda.drv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmciseq.drv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmciwave.drv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmidimap.drv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmpr.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmsacm.drv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmsacm32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmsnet32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmsvcrt.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libmsvfw32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libntdll.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libodbc32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libole32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/liboleaut32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libolecli32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/liboledlg.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libolepro32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libolesvr32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libopengl32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libpsapi.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libquartz.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/librasapi32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libriched32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/librpcrt4.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libserialui.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libsetupapi.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libshdocvw.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libshell32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libshfolder.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libshlwapi.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libtapi32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libttydrv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/liburlmon.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libuser32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libversion.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libw32skrnl.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwine.so.1.0 from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwine_tsx11.so.1.0 from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwine_unicode.so.1.0 from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwinedos.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwineoss.drv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwineps.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwininet.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwinmm.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwinnls32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwinspool.drv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwintrust.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwnaspi32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwow32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libws2_32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libwsock32.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/lib/wine/libx11drv.so from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/share/man/man1/wine.1.gz from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/share/man/man1/winemaker.1.gz from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/share/man/man1/wmc.1.gz from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/share/man/man1/wrc.1.gz from install of wine-20011222-1 conflicts with file from package wine-20010822-1
file /usr/share/man/man5/wine.conf.5.gz from install of wine-20011222-1 conflicts with file from package wine-20010822-1
[root@h24-66-18-49 filez]# dir
What other windows compatablility layers or "emulators" are there? I dont understand how this Linux installation thing works..uhg.
I Love NY
12-26-2001, 01:16 AM
See, the problem is that you can't just install it because you already have wine on your system. If you want to upgrade wine, you should be able to type
rpm -Uvh [wine rpm filename]
If that doesn't work (for example, if you have the wine-dependent library lib-wine installed - and you probably do) you will need to first uninstall the old wine package like this:rpm -e wine
You'll also need to run
rpm -e lib-wine if lib-wine is installed. Then you'll be able to use the rpm -ivh [filename] to install the package. I had a problem similar to yours this morning, but wine's running great now on my RH7.2.
-chaos-
12-26-2001, 03:35 AM
Ok, I have installed wine, now what? Do I have to somehow start wine before I can run windows programs?
I Love NY
12-26-2001, 09:04 AM
You run stuff with wine from the command line. I'll tell you about that in a minute, but first you need a config file. The config file goes in a folder in your home directory called .wine You'll have to create the folder yourself, like this:
mkdir ~/.wine
Then create the config file. You can do this by copying the file /usr/share/doc/wine-[8 digit number, same as the one in the rpm filename you installed with]/samples/config
Copy it to your home directory like this:
cp [path shown above]/config ~/.wine/config
Then you need to edit it. Open the file (the one you created in your home directory and edit it. If you have questions let me know). Once you've done all that you're ready to run some stuff with wine. To run a program (notepad, for example) type this:
wine [folder notepad is in] notepad.exe
The console will spit out some stuff like
"fixme:jsdlfjsldkfjad;fjkasdfla;seuifcvnxxe"
and then you should see notepad (or whatever program) appear. Just remember when typing file and folder names that linux is case sensitive. Let me know if you have any more problems.
-chaos-
12-26-2001, 07:42 PM
Ok, I made the folder ".wine" in my home directory, which would be /home/anton/ or similar, right? I did that fine, but why am I not able to see this folder in a konsole or in a konqueror file browser?
I can't find the file /usr/share/doc/wine-(8 digit number)/samples/config. I can get up to /usr/share/doc/ and thats it, I don't see anything wine related.
I Love NY
12-26-2001, 07:56 PM
Ok... first, the .wine folder isn't visible in your filemanager because it is a hidden folder. In Linux/Unix, any folder or file beginning with a '.' is normally hidden. There should be an option somewhere in your file browser to see hidden folders. Enable it and you'll be able to see it. In the console, instead of typing 'ls', try 'ls -a' to see hidden files and folders as well.
As to that sample config file, I'll just post it for you here. But if you wanted to try to find it still try doing 'locate wine | less' and that will give you a list of folders/files containing the word wine, and you should find a wine related directory in /usr/share/doc or somewhere that contains a directory called 'samples'.. dunno, maybe for some reason yours doesn't have it. Thought it should. Here's the file anyway...
WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config
;;
;; MS-DOS drives configuration
;;
;; Each section has the following format:
;; [Drive X]
;; "Path"="xxx" (Unix path for drive root)
;; "Type"="xxx" (supported types are 'floppy', 'hd', 'cdrom' and 'network')
;; "Label"="xxx" (drive label, at most 11 characters)
;; "Serial"="xxx" (serial number, 8 characters hexadecimal number)
;; "Filesystem"="xxx" (supported types are 'msdos'/'dos'/'fat', 'win95'/'vfat', 'unix')
;; This is the FS Wine is supposed to emulate on a certain
;; directory structure.
;; Recommended:
;; - "win95" for ext2fs, VFAT and FAT32
;; - "msdos" for FAT16 (ugly, upgrading to VFAT driver strongly recommended)
;; DON'T use "unix" unless you intend to port programs using Winelib !
;; "Device"="/dev/xx" (only if you want to allow raw device access)
;;
[Drive A]
"Path" = "/mnt/fd0"
"Type" = "floppy"
"Label" = "Floppy"
"Serial" = "87654321"
"Device" = "/dev/fd0"
[wine]
"Windows" = "c:\\windows"
"System" = "c:\\windows\\system"
"Temp" = "e:\\"
"Path" = "c:\\windows;c:\\windows\\system;e:\\;e:\\test;f:\\ "
"Profile" = "c:\\windows\\Profiles\\Administrator"
"GraphicsDriver" = "x11drv"
; Wine doesn't pass directory symlinks to Windows programs by default.
; Enabling this may crash some programs that do recursive lookups of a whole
; subdir tree in case of a symlink pointing back to itself.
;"ShowDirSymlinks" = "1"
"ShellLinker" = "wineshelllink"
[x11drv]
; Number of colors to allocate from the system palette
"AllocSystemColors" = "100"
; Use a private color map
"PrivateColorMap" = "N"
; Favor correctness over speed in some graphics operations
"PerfectGraphics" = "N"
; Color depth to use on multi-depth screens
;;"ScreenDepth" = "16"
; Name of X11 display to use
;;"Display" = ":0.0"
; Allow the window manager to manage created windows
"Managed" = "N"
; Use a desktop window of 640x480 for Wine
;"Desktop" = "640x480"
; Use XFree86 DGA extension if present
; (make sure /dev/mem is accessible by you !)
"UseDGA" = "Y"
; Use XShm extension if present
"UseXShm" = "Y"
; Use XVidMode extension if present
"UseXVidMode" = "Y"
; Enable DirectX mouse grab
"DXGrab" = "N"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "N"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
"TextCP" = "0"
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it finds).
;; "XVideoPort" = "43"
; Run in synchronous mode (useful for debugging X11 problems)
;;"Synchronous" = "Y"
[fonts]
;Read documentation/fonts before adding aliases
;See a couple of examples for russian users below
"Resolution" = "96"
"Default" = "-adobe-helvetica-"
"DefaultFixed" = "fixed"
"DefaultSerif" = "-adobe-times-"
"DefaultSansSerif" = "-adobe-helvetica-"
[ppdev]
;; key: io-base of the emulated port
;; value : parport-device{,timeout}
;; timeout for auto closing an open device ( not yet implemented)
;"378" = "/dev/parport0"
;"278" = "/dev/parport1"
;"3bc" = "/dev/parport2"
[registry]
;These are all booleans. Y/y/T/t/1 are true, N/n/F/f/0 are false.
;Defaults are read all, write to Home
; Global registries (stored in /etc)
"LoadGlobalRegistryFiles" = "Y"
; Home registries (stored in ~user/.wine/)
"LoadHomeRegistryFiles" = "Y"
; Load Windows registries from the Windows directory
"LoadWindowsRegistryFiles" = "Y"
; TRY to write all changes to home registries
"WritetoHomeRegistryFiles" = "Y"
; Registry periodic save timeout in seconds
; "PeriodicSave" = "600"
; Save only modified keys
"SaveOnlyUpdatedKeys" = "Y"
[Tweak.Layout]
;; supported styles are 'Win31'(default), 'Win95', 'Win98'
;; this has *nothing* to do with the windows version Wine returns:
;; use cmdline option --winver if you want that.
"WineLook" = "Win95"
Okay, I made the config files in both my root user and other user's /home/[whatever user]/.wine/ directory. I copyed and pasted the contents of what you put. I get this when I attempt to start notepad.exe
[root@h24-66-18-49 root]# cd /mnt/windows/windows
[root@h24-66-18-49 windows]# wine notepad.exe
Could not stat /mnt/fd0 (No such file or directory), ignoring drive A:
Could not stat /c (No such file or directory), ignoring drive C:
Could not stat /cdrom (No such file or directory), ignoring drive D:
Warning: could not find wine config [Drive x] entry for current working directory /mnt/windows/windows; starting in windows directory.
Invalid path 'c:\windows' for windows directory: does not exist
Perhaps you have not properly edited or created your Wine configuration file.
This is (supposed to be) '/root/.wine/config'
[root@h24-66-18-49 windows]#
[root@h24-66-18-49 windows]#
[root@h24-66-18-49 windows]# wine /mnt/windows/windows/notepad.exe
Could not stat /mnt/fd0 (No such file or directory), ignoring drive A:
Could not stat /c (No such file or directory), ignoring drive C:
Could not stat /cdrom (No such file or directory), ignoring drive D:
Warning: could not find wine config [Drive x] entry for current working directory /mnt/windows/windows; starting in windows directory.
Invalid path 'c:\windows' for windows directory: does not exist
Perhaps you have not properly edited or created your Wine configuration file.
This is (supposed to be) '/root/.wine/config'
[root@h24-66-18-49 windows]#
I Love NY
12-27-2001, 04:28 AM
Ok, we're getting closer here. Apparantly you didn't edit the config file. Do you have a windows partition? If you do you should make sure it is mounted. Can you access it from linux? I'm assuming you can if you have one, since (if I remember right), RH7.2 does it automatically. I will assume from here on that you do, indeed, have a windows partition. You need to change this: [Drive C]"Path" = "/c"
to something like this (depending on where your windows partition is mounted - mine is at /mnt/win):
[Drive C]"Path" = "/mnt/win"
Once you've done that, just save the file and you should be able to run wine without problems. If you were wondering, the messages Could not stat /mnt/fd0 (No such file or directory), ignoring drive A:Could not stat /c (No such file or directory), ignoring drive C:Could not stat /cdrom (No such file or directory), ignoring drive D:
are nothing to worry about.. well, the fd0 and the cdrom ones are - that just means you don't have a cd or floppy mounted. You don't have to worry about the "cannot find drive C" either because we just changed that in the config file..
Now, just incase you do need to mount your windows partition, here are the instructions: first, create the folder /mnt/win
Then add the following line in your /etc/fstab file:
/dev/hda[a number - probably 1, if you had windows before you had linux] /mnt/win vfat auto 0 0
This will mean that your windows c drive will be available at /mnt/win every time your computer starts. However, since this change will not take effect until you restart your computer, and you probably dont want to bother, type
mount /dev/hda1 /mnt/win
Once you've done everything written above, wine _should_ work. Keep the questions coming if you have more
[ 27 December 2001: Message edited by: I Love NY ]
-chaos-
12-27-2001, 10:59 PM
I changed the file, this is what I get.
Could not stat /mnt/fd0 (No such file or directory), ignoring drive A:
Could not stat /cdrom (No such file or directory), ignoring drive D:
err:reg:_nt_dump_lf unknown node id 0x686c, please report!
err:reg:_nt_dump_lf unknown node id 0x686c, please report!
err:reg:_nt_dump_lf unknown node id 0x686c, please report!
fixme:reg:RegFlushKey (50): stub
fixme:reg:RegFlushKey (48): stub
I Love NY
12-28-2001, 09:37 PM
Hmm.. Interesting. As to the first two error messages (about floppy and cdrom), don't worry about em. The
err:reg:_nt_dump_lf unknown node id 0x686c, please report!err:reg:_nt_dump_lf unknown node id 0x686c, please report!err:reg:_nt_dump_lf unknown node id 0x686c, please report!
stuff has me stumped. Are you running windows nt? If so you'll need to go into your config and change the places that say c:\\windows\\system to c:\\winnt\\system or whatever your windows directory is.. other than that, I don't know. By the way, aFTER it started doing the "fixme" stuff did you close it or did it just crap out by it self? If you closed it, it might be that it was working but you didn't know it. Try running it again and just letting it sit for a while. It often takes wine quite a while to run a program.
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.