Wine no such file or directory

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
William_S
Level 1
Level 1
Posts: 6
Joined: Tue Dec 27, 2011 3:43 pm

Wine no such file or directory

Post by William_S »

I keep getting this error message when trying to run wine:
bash: /usr/bin/wine: No such file or directory.

Output from which wine gives

which wine
/usr/bin/wine

so it should find it. I installed using sudo apt-get install wine, also tried to remove it with --purge flag and reinstall, but not any success. What could be the problem here?
seppalta
Level 4
Level 4
Posts: 386
Joined: Wed Jun 08, 2011 12:08 pm

Re: Wine no such file or directory

Post by seppalta »

The virtual C-drive is in the .wine hidden directory in your home directory. From there it is like windoze. Click on the .exe for the application in the Programs Directory in C-drive to launch it, first making sure permission to execute is granted (right click .exe and check appropriate box). Wine generally does not show up in the Main Menu until a Wine application has been launched.
William_S
Level 1
Level 1
Posts: 6
Joined: Tue Dec 27, 2011 3:43 pm

Re: Wine no such file or directory

Post by William_S »

No there is no such .wine directory in my home (yes I show them with ls -a) but this is a very strange problem. I removed the default Wine and added the PPA for Wine 1.3 and tried to install that instead, but still no luck getting it to work. The strange thing is there is a wine file inside /usr/bin, but I can't get it to run or something like that, seems like it is chronically corrupt or something which is probably why I get the error message.
seppalta
Level 4
Level 4
Posts: 386
Joined: Wed Jun 08, 2011 12:08 pm

Re: Wine no such file or directory

Post by seppalta »

There should be many Wine files - wine, winetricks, ... - in /usr/bin. To install Wine, first I run sudo add-apt-repository ppa:ubuntu-wine/ppa in the terminal. Then I go to Synaptic, click reload, and find Wine 1.3 and install it. This has always worked.
http://douwil7.100webspace.net/linux/Tuning.html#10
William_S
Level 1
Level 1
Posts: 6
Joined: Tue Dec 27, 2011 3:43 pm

Re: Wine no such file or directory

Post by William_S »

seppalta wrote:There should be many Wine files - wine, winetricks, ... - in /usr/bin. To install Wine, first I run sudo add-apt-repository ppa:ubuntu-wine/ppa in the terminal. Then I go to Synaptic, click reload, and find Wine 1.3 and install it. This has always worked.
http://douwil7.100webspace.net/linux/Tuning.html#10

That is excatly what I did except for I used the command line with apt-get. I can also see the files mentioned. It seems like a bug in some Wine installs according to Google, but that seems to be with wine 1.2. Shouldn't be the same issue with Wine 1.3...
seppalta
Level 4
Level 4
Posts: 386
Joined: Wed Jun 08, 2011 12:08 pm

Re: Wine no such file or directory

Post by seppalta »

What do you mean: "I can't get it to work"? It won't launch Wine programs? I have never launched wine per se. It will configure itself and appear in the main menu after you launch your first Wine program.
William_S
Level 1
Level 1
Posts: 6
Joined: Tue Dec 27, 2011 3:43 pm

Re: Wine no such file or directory

Post by William_S »

seppalta wrote:What do you mean: "I can't get it to work"? It won't launch Wine programs? I have never launched wine per se. It will configure itself and appear in the main menu after you launch your first Wine program.
You are right, it woun't launch any Wine programs. You are supposed to launch Wine programs with wine 'installme.exe' from the shell, but I get an error message when I attempt to do that. Wine appears in the main menu, but the options there don't work. Nothing happens when I click them.
kwisher
Level 5
Level 5
Posts: 780
Joined: Wed Mar 05, 2008 12:54 pm
Location: Greentown, Indiana USA

Re: Wine no such file or directory

Post by kwisher »

You might try opening your home folder with hidden files showing and delete the .wine folder. It will be recreated the next time Wine runs. I have had some success with this method.
The instructions suggested Windows XP or better, so I installed Linux :)
AlbertP
Level 16
Level 16
Posts: 6714
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: Wine no such file or directory

Post by AlbertP »

You don't have to run /usr/bin/wine to run a Wine program. Just wine filename.exe is sufficient.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
conslie
Level 4
Level 4
Posts: 366
Joined: Sun Oct 11, 2009 2:03 am

Re: Wine no such file or directory

Post by conslie »

Normally, just clicking on an .exe file should cause that file to be executed by wine. No need to "run" wine at all, although it can be used as a command within a terminal. but even then it needs some target to act on, just as with other Linux commands.

I may be misreading your situation, but if you are expecting to "run" wine alone and get a virtual Windows desktop, then you can accomplish that objective using VirtualBox, not Wine.
William_S
Level 1
Level 1
Posts: 6
Joined: Tue Dec 27, 2011 3:43 pm

Re: Wine no such file or directory

Post by William_S »

AlbertP wrote:You don't have to run /usr/bin/wine to run a Wine program. Just wine filename.exe is sufficient.
I know that, but I get an error message when doing wine installme.exe

Output from terminal: /usr/bin/wine no such file or directory....
log2g
Level 1
Level 1
Posts: 1
Joined: Thu Jan 26, 2012 12:25 pm

Re: Wine no such file or directory

Post by log2g »

A

Code: Select all

sudo apt-get install --reinstall libc6-i386
in a terminal should resolve your problem.
Post Reply

Return to “Newbie Questions”