LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Wine Problem! (https://www.linuxquestions.org/questions/linux-software-2/wine-problem-795394/)

t3st 03-14-2010 06:34 PM

Wine Problem!
 
Hey everyone,

I installed Slackware 13.0 64bit on my system and wine comes as default.

All files are there but wine stil does not work.

bash-3.1$ winecfg
/usr/bin/winecfg: line 29: /usr/bin/wine: No such file or directory
/usr/bin/winecfg: line 29: /usr/bin/wine: Success

I looked around and this problem has been reported by other people as well but none are solved.

Any suggestions ?

raju.mopidevi 03-14-2010 06:57 PM

Quote:

no file or directory ?
checkout whether it has proper path or not !
Code:

$whereis wine

raju.mopidevi 03-14-2010 06:59 PM

Similar problem was found in LQ, seems to be solved . see this thread

t3st 03-14-2010 07:39 PM

bash-3.1# whereis wine
wine: /usr/bin/wine /usr/lib/wine /usr/X11R6/bin/wine /usr/bin/X11/wine /usr/X11/bin/wine /usr/include/wine /usr/share/wine /usr/man/man1/wine.1.gz /usr/share/man/man1/wine.1.gz /usr/X11/man/man1/wine.1.gz

I read that post and it is not solved.

nimnull22 03-14-2010 07:48 PM

May be just uninstall it and install again?

t3st 03-15-2010 08:38 AM

WHat do you mean by uninstall ? remove all wine related stuff ? I do not see where this can come handy since installing official tgz for package just extracts the necessary files to various locations.

pixellany 03-15-2010 09:02 AM

Quote:

Originally Posted by nimnull22 (Post 3898319)
May be just uninstall it and install again?

That sounds like a Windows solution....Have you had experience fixing WINE (or any Linux) issues in this way?

t3st 03-15-2010 01:15 PM

since everything in Linux is a file, we can not talk about an installation process here. In windows there is is registry and other etc but there is no such crap in linux.Only file copy oeprations to locations.

raju.mopidevi 03-15-2010 01:20 PM

manually set your wine path.
go to your home folder
$vi .bashrc
WINE=/usr/lib/wine
export PATH=$WINE:$PATH

t3st 03-15-2010 02:11 PM

bash-3.1$ WINE=/usr/lib/wine
bash-3.1$ export PATH=$WINE:$PATH
bash-3.1$ wine
bash: /usr/bin/wine: No such file or directory
bash-3.1$ winecfg
/usr/bin/winecfg: line 29: /usr/bin/wine: No such file or directory
/usr/bin/winecfg: line 29: /usr/bin/wine: Success


No luck :/

pixellany 03-15-2010 02:15 PM

So---where IS wine installed?

If it is on your computer, this will find it:

Code:

find / -name "wine*"
run this as root--or with sudo

raju.mopidevi 03-15-2010 02:44 PM

@t3st ; you are relaying on default installation. If it has problems then
Make a fresh installation of latest wine.

t3st 03-15-2010 02:46 PM

bash-3.1$ find / -name "wine*"
/usr/share/wine
/usr/share/wine/wine.inf
/usr/share/texmf/doc/help/Catalogue/entries/winedt.html
/usr/share/texmf/doc/help/Catalogue/entries/winemtex.html
/usr/share/pixmaps/wine.xpm
/usr/share/apps/katepart/syntax/winehq.xml
/usr/share/apps/kappfinder/apps/System/wine.desktop
/usr/share/applications/winecfg.desktop
/usr/share/applications/wine.desktop
/usr/share/icons/oxygen/48x48/apps/wine.png
/usr/share/icons/oxygen/scalable/apps/wine.svgz
/usr/share/icons/oxygen/64x64/apps/wine.png
/usr/share/icons/oxygen/128x128/apps/wine.png
/usr/share/icons/oxygen/16x16/apps/wine.png
/usr/share/icons/oxygen/32x32/apps/wine.png
/usr/share/icons/oxygen/22x22/apps/wine.png
/usr/share/icons/mono/scalable/apps/wine.svgz
/usr/doc/wine-1.1.39
/usr/doc/wine-1.1.39/wine.SlackBuild
/usr/bin/wineprefixcreate
/usr/bin/winemine
/usr/bin/wine
/usr/bin/winefile
/usr/bin/wineg++
/usr/bin/winepath
/usr/bin/winegcc
/usr/bin/winemaker
/usr/bin/wineboot
/usr/bin/winecfg
/usr/bin/winedump
/usr/bin/wineserver
/usr/bin/winedbg
/usr/bin/wine-preloader
/usr/bin/wineconsole
/usr/bin/winebuild
/usr/bin/winecpp
/usr/lib/wine
/usr/lib/wine/wineps.drv.so
/usr/lib/wine/winealsa.drv.so
/usr/lib/wine/wineoss.drv.so
/usr/lib/wine/winemine.exe.so
/usr/lib/wine/wineps16.drv16.so
/usr/lib/wine/winecfg.exe.so
/usr/lib/wine/winejack.drv.so
/usr/lib/wine/winepath.exe.so
/usr/lib/wine/winefile.exe.so
/usr/lib/wine/winevdm.exe.so
/usr/lib/wine/wined3d.dll.so
/usr/lib/wine/winejoystick.drv.so
/usr/lib/wine/winemapi.dll.so
/usr/lib/wine/winenas.drv.so
/usr/lib/wine/winebrowser.exe.so
/usr/lib/wine/winedbg.exe.so
/usr/lib/wine/winex11.drv.so
/usr/lib/wine/winedevice.exe.so
/usr/lib/wine/wineesd.drv.so
/usr/lib/wine/wineboot.exe.so
/usr/lib/wine/winemenubuilder.exe.so
/usr/lib/wine/winecoreaudio.drv.so
/usr/lib/wine/wineaudioio.drv.so
/usr/lib/wine/wineconsole.exe.so
/usr/lib/wine/fakedlls/wineesd.drv
/usr/lib/wine/fakedlls/wineconsole.exe
/usr/lib/wine/fakedlls/winenas.drv
/usr/lib/wine/fakedlls/winedbg.exe
/usr/lib/wine/fakedlls/winejoystick.drv
/usr/lib/wine/fakedlls/wined3d.dll
/usr/lib/wine/fakedlls/winevdm.exe
/usr/lib/wine/fakedlls/wineps16.drv16
/usr/lib/wine/fakedlls/winedevice.exe
/usr/lib/wine/fakedlls/winemenubuilder.exe
/usr/lib/wine/fakedlls/winebrowser.exe
/usr/lib/wine/fakedlls/wineps.drv
/usr/lib/wine/fakedlls/winex11.drv
/usr/lib/wine/fakedlls/winepath.exe
/usr/lib/wine/fakedlls/wineoss.drv
/usr/lib/wine/fakedlls/winecfg.exe
/usr/lib/wine/fakedlls/winejack.drv
/usr/lib/wine/fakedlls/winealsa.drv
/usr/lib/wine/fakedlls/winefile.exe
/usr/lib/wine/fakedlls/winemine.exe
/usr/lib/wine/fakedlls/winecoreaudio.drv
/usr/lib/wine/fakedlls/wineaudioio.drv
/usr/lib/wine/fakedlls/winemapi.dll
/usr/lib/wine/fakedlls/wineboot.exe


files are there with necessary permissions and they are copied from the latest release.

cov 03-15-2010 03:17 PM

/usr/bin/wine seems to be there.

Is it executable? what do you get when you type 'ls -l /usr/bin/wine'?

t3st 03-15-2010 03:25 PM

bash-3.1# ls -l /usr/bin/wine
-rwxr-xr-x 1 root root 6900 2010-03-15 01:33 /usr/bin/wine
bash-3.1# whoami
root
bash-3.1# wine
bash: /usr/bin/wine: No such file or directory

This is crazy :)

cov 03-15-2010 03:37 PM

Hmm.

Are you having trouble with your hard drive?

What file system are you using on your root partition?

Is you hard drive full?

t3st 03-15-2010 03:52 PM

no it has 240+GB of free space and file system on is ext3.

everything except wine works perfectly.

cov 03-16-2010 12:25 AM

Well, the file would appear to be there.

The permissions would appear to be correct.

The file size looks just about correct, so it doesn't appear to be corrupted. My own wine executable is below:
Quote:

root@SNNECCI:/home/dave# ls -l /usr/bin/wine
-rwxr-xr-x 1 root root 5548 2009-10-26 11:50 /usr/bin/wine
root@SNNECCI:/home/dave#
Obviously your file size is bigger than mine, but that's to be expected as yours is a more recent installation of wine.

I'm not sure what to suggest apart from reinstalling.

jbs1136 03-16-2010 09:45 PM

I am having the same problem with wine and have installed several times today and it doesn't help.

john

nimnull22 03-16-2010 10:45 PM

Have you try to start it like:
/usr/bin/wine
/usr/bin/winecfg

jbs1136 03-16-2010 11:05 PM

Here is the result:

Code:

bash-3.1$ /usr/bin/wine
bash: /usr/bin/wine: No such file or directory
bash-3.1$ /usr/bin/winecfg
/usr/bin/winecfg: line 29: /usr/bin/wine: No such file or directory
/usr/bin/winecfg: line 29: /usr/bin/wine: Success

I get this result both as user and root.

john

nimnull22 03-16-2010 11:12 PM

Ok, can open console and "cd" directory to /usr/bin/.
and then to be in /usr/bin/ type winecfg.
Send please output of:
ls -la |grep wine
when you are in /usr/bin directory.

Thanks

jbs1136 03-16-2010 11:17 PM

Code:

bash-3.1# cd /usr/bin
bash-3.1# winecfg
/usr/bin/winecfg: line 29: /usr/bin/wine: No such file or directory
/usr/bin/winecfg: line 29: /usr/bin/wine: Success
bash-3.1# ls -la |grep wine
-rwxr-xr-x  1 root  root        7268 2009-09-14 14:43 wine
-rwxr-xr-x  1 root  root      12872 2009-09-14 14:43 wine-preloader
-rwxr-xr-x 11 root  root        1582 2009-09-14 14:43 wineboot
-rwxr-xr-x  1 root  root      112616 2009-09-14 14:43 winebuild
-rwxr-xr-x 11 root  root        1582 2009-09-14 14:43 winecfg
-rwxr-xr-x 11 root  root        1582 2009-09-14 14:43 wineconsole
lrwxrwxrwx  1 root  root          7 2010-03-16 19:59 winecpp -> winegcc
-rwxr-xr-x 11 root  root        1582 2009-09-14 14:43 winedbg
-rwxr-xr-x  1 root  root      148240 2009-09-14 14:43 winedump
-rwxr-xr-x 11 root  root        1582 2009-09-14 14:43 winefile
lrwxrwxrwx  1 root  root          7 2010-03-16 19:59 wineg++ -> winegcc
-rwxr-xr-x  1 root  root      28776 2009-09-14 14:43 winegcc
-rwxr-xr-x  1 root  root      88772 2009-09-14 14:43 winemaker
-rwxr-xr-x 11 root  root        1582 2009-09-14 14:43 winemine
-rwxr-xr-x 11 root  root        1582 2009-09-14 14:43 winepath
-rwxr-xr-x  1 root  root        3384 2009-09-14 14:43 wineprefixcreate
-rwxr-xr-x  1 root  root      352312 2009-09-14 14:43 wineserver

this was done as root and the results are the same when done as user

john

nimnull22 03-16-2010 11:24 PM

Ok, Open file /usr/bin/winecfg with any text editor, find there line 29, and send here please everything from line 20 to 31

Thanks

jbs1136 03-16-2010 11:33 PM

Quote:

#

# determine the app Winelib library name
appname=`basename "$0" .exe`.exe

# first try explicit WINELOADER
if [ -x "$WINELOADER" ]; then exec "$WINELOADER" "$appname" "$@"; fi

# then default bin directory
if [ -x "/usr/bin/wine" ]; then exec "/usr/bin/wine" "$appname" "$@"; fi

# now try the directory containing $0
The top # is line 20

john

nimnull22 03-16-2010 11:45 PM

Can you please execute next command:

find / name -samefile wine

Or may be:

find / -samefile wine

jbs1136 03-17-2010 12:01 AM

Quote:

bash-3.1$ find / name -samefile wine
find: `wine': No such file or directory
bash-3.1$ find / -samefile wine
find: `wine': No such file or directory
john

nimnull22 03-17-2010 12:09 AM

I thought may be "wine" in /usr/bin/ could be a hard link to other file.
Tell what kind security Slackware 13.0 uses - apparmor or selinux. May be one of them prevent execute it.
Check logs.

jbs1136 03-17-2010 12:47 AM

Not for sure what logs I should check, I checked everything under /var/log and /home/john and couldn't find anything that referred to wine. I am pretty sure I don't have selinux installed and I have never heard of apparmor. How would I check?

I will check back tomorrow for your reply, it is late here and I have to report for jury duty tomorrow.

Thanks for help, will be back tomorrow evening for your reply.

@ original poster, not trying to steal your thread but I am having the same problem. Hope we can both find the answer.

john

nimnull22 03-17-2010 01:21 AM

Ok, that is not all, lets do some serious job.
Execute wine like this:
strace /usr/bin/wine

If it gives a big output, then
strace /usr/bin/wine > /home/<user>/<any file>

jbs1136 03-17-2010 09:23 AM

Here is the output:

Code:

bash-3.1$ strace /usr/bin/wine
execve("/usr/bin/wine", ["/usr/bin/wine"], [/* 49 vars */]) = -1 ENOENT (No such file or directory)
dup(2)                                  = 3
fcntl(3, F_GETFL)                      = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa93aca8000
lseek(3, 0, SEEK_CUR)                  = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or dir"..., 40strace: exec: No such file or directory
) = 40
close(3)                                = 0
munmap(0x7fa93aca8000, 4096)            = 0
exit_group(1)                          = ?

john

nimnull22 03-17-2010 10:35 AM

ENOENT

No such file or directory

This error occurs when a file or directory cannot be found. Note, this can happen when creating a file if one of the parent directories doesn't exist, eg:
touch /etc/doesnotexist/foo

will complain with "No such file or directory" since /etc/doesnotexist does not exist.

This error can be returned by many system calls that work with files.

29 pages link to ENOENT:
link(2) mknod(2) fstatfs(2) creat(2) chown(2) open(2) msgget(2) bind(2) readlink(2) getdents(2) readdir(2) chmod(2) lstat(2) fchown(2) fchdir(2) delete_module(2) acct(2) access(2) chdir(2) chroot(2) lchown(2) mkdir(2) rename(2) fstat(2) execve(2) mount(2) packet(7) rmdir(2) query_module(2)

Looks like, you have to write to Slackware developers.

nimnull22 03-17-2010 10:59 AM

Another suggestion.

Put "wine" to any USER home directory, make it executable for user and then try to execute it like:
/home/directory/wine

jbs1136 03-17-2010 02:53 PM

That didn't work either.

Quote:

bash-3.1# /home/john/wine
bash: /home/john/wine: No such file or directory
bash-3.1#
At this point I think I would be better off starting from scratch. I am going to install wine and the one program I use, Quicken, on another computer that is running 32 Slack. Not my main computer but it will work for this.

Thank you for your patience and your help. It could all be that somewhere in installing multilib I messed up something. But, on the bright side I did learn something new about strace, I have never used it before. Got to get out of the gui more.

john

nimnull22 03-17-2010 03:04 PM

Last question, please.
Change directory to: cd /home/john/ or to /usr/bin and then in console type:
file wine

What will be the output.
Mine is:
wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), stripped

jbs1136 03-17-2010 11:53 PM

Code:

bash-3.1$ cd /home/john
bash-3.1$ file wine
wine: cannot open `wine' (No such file or directory)
bash-3.1$ cd /usr/bin
bash-3.1$ file wine
wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
bash-3.1$

Code you requested. Sorry, but this tells me nothing, way over my head. :)

john

nimnull22 03-18-2010 06:22 AM

You have wine 32-bit, but Slackware 64-bit x86_64. I do not know, but will this type of wine work?

jbs1136 03-18-2010 08:43 AM

It will work but not perfectly. I had it installed and everything worked well but I had problems with a hard drive and had to reinstall Slackware and then I ran into problems when I added wine. It worked after I installed it but after I rebooted the computer it quick working. That is why I decided to just put it on an older 32 bit machine running slackware 13-32. At this point it is more trouble than it is worth. I will just wait until it is improved.

Thanks again for all of your help.

john

t3st 03-19-2010 06:39 AM

since it comes with the default installition I must agree that this is an issue that needs to be reported to Slackware.

missionsix 12-10-2011 06:49 PM

This is a known bug. You can see other people are having problems too.

http://askubuntu.com/questions/76151...i-installed-it

Launchpad bug: https://bugs.launchpad.net/ubuntu/+s...bs/+bug/852101

Workaround:

reinstall libc6-i386 by running: sudo apt-get install --reinstall libc6-i386

John VV 12-10-2011 10:32 PM

missionsix
please do not post a Ubuntu bug to a Slackware post
And one that is almost two years old

the OP was using Slackware and NOT using ubuntu


All times are GMT -5. The time now is 09:22 PM.