LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   installing Wine (http://www.linuxquestions.org/questions/debian-26/installing-wine-292313/)

crapper 02-19-2005 12:10 PM

installing Wine
 
Newbie having trouble installing wine ?

Keep getting this error:

make[1]: *** [winetest/__install__] Error 2
make[1]: Leaving directory `/home/fat/wine/programs'
make: *** [programs/__install__] Error 2
root@fatboy:/home/fat/wine # wine
wine: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory
root@fatboy:/home/fat/wine #

How do I fix this, what am I doing wrong !

darkleaf 02-19-2005 01:13 PM

Why don't you use apt to install it, that's much easier.
"apt-get update"
"apt-get install wine winesetuptk"
Run winesetuptk and then you can use wine.

darkleaf 02-19-2005 01:14 PM

And the error you're getting is because you don't have libwine installed. If you use apt all dependencies will be installed.

crapper 02-19-2005 01:59 PM

Thanks for the reply, just for to give you some more info im using Ubunto "Debian based"

Anyway i ran the update command and the wine one and i got the below.

root@fatboy:/home/fat # apt-get update
Reading Package Lists... Done
root@fatboy:/home/fat # apt-get install wine winesetuptk
Reading Package Lists... Done
Building Dependency Tree... Done
Package wine is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package wine has no installation candidate

Im guessing its not using the web to search the Debian package lists and is just reading from a index the system put on the HDD from install ??

darkleaf 02-19-2005 02:03 PM

You can check if it's searching the web by viewing your /etc/apt/sources.list file. Could also be because ubuntu uses different names. Try "apt-cache search wine" and see if that helps.

crapper 02-19-2005 02:36 PM

Thanks for the reply i checked the sources in the apt file and uncommented

deb http://archive.ubuntu.com/ubuntu warty main restricted
deb-src http://archive.ubuntu.com/ubuntu warty main restricted

as it said within the file then ran update but it still wont show wine via the cache command or just apt-get install wine, do i need to add the official debian archive servers in there and if so what are the addresses.

darkleaf 02-19-2005 03:08 PM

Be careful with that since it might break your system. Maybe if you run "apt-setup" it will have a list of those servers.
Quote:

#deb http://http.us.debian.org/debian stable main contrib non-free
deb http://http.us.debian.org/debian testing main contrib non-free deb http://http.us.debian.org/debian unstable main contrib non-free

deb http://security.debian.org/ woody/updates main contrib non-free
This are the debian servers I use most often.

Dead Parrot 02-19-2005 04:01 PM

Try this instead:
Code:

deb http://archive.ubuntu.com/ubuntu warty main restricted universe multiverse
You can get lots of Debian packages for Ubuntu from "universe" and they mainly work OK, although they are not officially supported by Ubuntu developers. The bug reports for "universe" packages are sent straight to Debian maintainers from Ubuntu.

crapper 02-19-2005 04:21 PM

Those worked and now i have wine/winesetuptk installed, i ran the "wine" from a root console and it said i needed to do it from a normal user one but when i do i get the below.

wine: creating configuration directory '/home/fat/.wine'...
wine: could not exec wineserver
wine: wineprefixcreate failed while creating '/home/fat/.wine'.

Dead Parrot 02-19-2005 04:37 PM

I don't have much experience on running wine but I think wine-utils is very much part of the wine package, so perhaps you should install that also. Then run "winesetup" as normal user to set up wine.

crapper 02-19-2005 04:43 PM

That worked i got wine to setup finaly but one error still exists when i type wine from a console

wine: could not exec wineserver

Dead Parrot 02-19-2005 05:33 PM

As I said, I'm not very familiar with wine but, just out of the general interest, I installed wine to my Ubuntu (hoary, not warty) partition and there seems to be a file called "wineserver" in /usr/lib/wine/. It may be a bug that wine cannot find this file although it should. Well, you can try to fix this by symlinking "wineserver" to some directory in your path. For instance, you can try something this:
Code:

sudo ln -s /usr/lib/wine/wineserver /usr/bin
I haven't really tested this -- I first need to find some simple windows program I could install on Linux in order to test if my wine installation works.

crapper 02-19-2005 06:06 PM

Im planning to try it on WIn32 irc myself and i have used it though wine in the past just for a laugh, i will give the command you posted a try and let you know if it works or not.

crapper 02-19-2005 06:09 PM

Yes! it worked, thank you!

ps, you know anything about scanners lol

Dead Parrot 02-19-2005 06:52 PM

Heh, heh. I downloaded some small Windows programs from this address: http://keir.net/software.html and they seem to work just fine on the Ubuntu & Wine setup. I managed to break my scanner about two years ago (that is, before I seriously switched from Windows to Linux) so I cannot help you there, pal.


All times are GMT -5. The time now is 04:18 PM.