No wine command

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
CheatCat
Level 2
Level 2
Posts: 16
Joined: Wed Jul 01, 2009 3:06 pm

No wine command

Post by CheatCat »

I installed wine, but when I type wine in the console the command are not found! Please help me.
jordan johnston

No wine command

Post by jordan johnston »

On Wed, Aug 18, 2010 at 9:57 AM, CheatCat <[email protected]> wrote:
I installed wine, but when I type wine in the console the command are not found! Please help me.
do you mean to say, that you just installed wine, and then you
literally opened a console and typed "wine",
alone by itself???

if so,

instead run winecfg, if that loads up, then you will first see it
update your wine folder, followed by a panel for
winecfg on the screen. <---if this happens wine is installed.

You should also have a "wine section" in your applications menu.

Now, you are ready to install wine apps. You need to do that to
actually use wine.

jordan
CheatCat
Level 2
Level 2
Posts: 16
Joined: Wed Jul 01, 2009 3:06 pm

Post by CheatCat »

I runned ~/Program/wine/wine winecfg and get the config dialog, but I dont see any wine section it the applications menu, every program I installed with wine goes on Lost & Found.

What I want to do is to start a program by just typing wine myprogram.exe rather than have to tell where wine are like ~/Program/wine/wine.
CheatCat
Level 2
Level 2
Posts: 16
Joined: Wed Jul 01, 2009 3:06 pm

Post by CheatCat »

CheatCat wrote:I runned ~/Program/wine/wine winecfg and get the config dialog, but I dont see any wine section it the applications menu, every program I installed with wine goes on Lost & Found. Also, the wine command still not work, just in the wine dir.

What I want to do is to start a program by just typing wine myprogram.exe rather than have to tell where wine are like ~/Program/wine/wine.
CheatCat
Level 2
Level 2
Posts: 16
Joined: Wed Jul 01, 2009 3:06 pm

Post by CheatCat »

Oops, forget that you cannot edit! :(
Also, the wine command still not work, just in the wine dir.
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

What distro, what version of Wine, and how did you install it?
James McKenzie

No wine command

Post by James McKenzie »

CheatCat wrote:
I installed wine, but when I type wine in the console the command are not found! Please help me.

Do you mean the terminal? If so, you should see a response. If you are
not and that is what you are receiving, wine did not install properly
and you need to re-install it.

James McKenzie
jordan johnston

No wine command

Post by jordan johnston »

hi CheatCat,
I runned ~/Program/wine/wine winecfg and get the config dialog, but I dont see any wine section it the applications menu, every program I installed with wine goes on Lost & Found.

What I want to do is to start a program by just typing wine myprogram.exe rather than have to tell where wine are like ~/Program/wine/wine.
"~/Program/wine/wine"

doesn't actually exit, so if that is what you are running, that might
be the problem.

- what happens if you double-click on an .exe file?
- open a terminal type "wineserver -p", then opn a task manager, and
see if wineservfer is running... (is it???)
- do you have wine in your applications menu?
- What Distro of linux are you using?
- What version on Wine are you using?

this would all be helpful for us to know.

It is possible to have your wine program start just by typing the app
name from the console. It would involve using possibly, some shell
scripts in a directory, add that directory to your PATH. then your
scripts could execute wine/settings/and finally the app. by doing
this you could end up with being able to start a program, by any name
you gave the script.

You'll need to read up on writing shell script, though.

jordan
hero_hont
Newbie
Newbie
Posts: 1
Joined: Fri Aug 20, 2010 1:42 am

Re: No wine command

Post by hero_hont »

jordan johnston wrote:hi CheatCat,
I runned ~/Program/wine/wine winecfg and get the config dialog, but I dont see any wine section it the applications menu, every program I installed with wine goes on Lost & Found.

What I want to do is to start a program by just typing wine myprogram.exe rather than have to tell where wine are like ~/Program/wine/wine.
"~/Program/wine/wine"

doesn't actually exit, so if that is what you are running, that might
be the problem.

- what happens if you double-click on an .exe file?
- open a terminal type "wineserver -p", then opn a task manager, and
see if wineservfer is running... (is it???)
- do you have wine in your applications menu?
- What Distro of linux are you using?
- What version on Wine are you using?

this would all be helpful for us to know.

It is possible to have your wine program start just by typing the app
name from the console. It would involve using possibly, some shell
scripts in a directory, add that directory to your PATH. then your
scripts could execute wine/settings/and finally the app. by doing
this you could end up with being able to start a program, by any name
you gave the script.

You'll need to read up on writing shell script, though.

jordan
thanks about you commend..
What I want to do is to start a program by just typing wine myprogram.exe but it don't run..can i forget edit it. but after i will run the wine command still..
:( :(
CheatCat
Level 2
Level 2
Posts: 16
Joined: Wed Jul 01, 2009 3:06 pm

Post by CheatCat »

Distro: Arch Linux (Dunno what version), I have also tried Gentoo an that is same problem there.
I installed by downloading the source and compile it with wineinstall.
The version I use is 1.3.0, I have tried different versions and I doesn't work with them either.

When I said console I mean the terminal.

~/Program/wine/wine exists that is there I have install wine.
If I doubleclick on a exe file it run on wine since I tell it to open exe files with ~/Program/wine/wine.
If I type wineserver -p the command are not found. It is running when I look in System Monitor.
I don't have wine in the app menu.

So I need a shell script? I think I know how to do a shell script. Should I made a shell script for every program I wanna run?
Martin Gregorie

No wine command

Post by Martin Gregorie »

On Sat, 2010-08-21 at 06:16 -0500, CheatCat wrote:
Distro: Arch Linux (Dunno what version), I have also tried Gentoo an that is same problem there.
I installed by downloading the source and compile it with wineinstall.
The version I use is 1.3.0, I have tried different versions and I doesn't work with them either.

When I said console I mean the terminal.

~/Program/wine/wine exists that is there I have install wine.
If I doubleclick on a exe file it run on wine since I tell it to open exe files with ~/Program/wine/wine.
If I type wineserver -p the command are not found. It is running when I look in System Monitor.
I don't have wine in the app menu.

So I need a shell script? I think I know how to do a shell script.
Should I made a shell script for every program I wanna run?
I do, but then again I've been using Unices for getting on for two
decades and Linux for the last ten years, so to me writing a shell
script seems like an easy way to package a few commands. I use something
like this:

==============================script file=============================
#!/bin/bash
#
# Using the first line shown above and making the script executable
# with 'chmod u+x script_file' means you can run it by typing
# 'script_file'. I make a directory called bin in my login directory,
# put the script there and add the line:
# 'export PATH=~/bin:$PATH' as the last line in ~/.bash_profile so
# the shell will look in ~/bin for the script.
#
# Set WINEPREFIX -I use a separate prefix for each app or set of
# closely related apps:
#
export WINEPREFIX=~/.wine_myapp

#
# Change to the directory where the app lives:
#
cd $WINEPREFIX/drive_c/Program\ Files/MyApp\ folder

#
# put lines here to turn on debugging, etc or do app-specific stuff
#

#
# Run the app
#
=========================end of script file===========================

Now you have a script you can run it from the command line or use it as
the command run by a launcher - this is a lot easier than trying to put
the WINEPREFIX setting, the cd and the wine command into the launcher's
command line.

Without all my explanatory comments a typical wrapper script is only
three or four lines.


Martin
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

CheatCat wrote:Distro: Arch Linux (Dunno what version), I have also tried Gentoo an that is same problem there.
I installed by downloading the source and compile it with wineinstall.
The version I use is 1.3.0, I have tried different versions and I doesn't work with them either.

When I said console I mean the terminal.

~/Program/wine/wine exists that is there I have install wine.
If I doubleclick on a exe file it run on wine since I tell it to open exe files with ~/Program/wine/wine.
If I type wineserver -p the command are not found. It is running when I look in System Monitor.
I don't have wine in the app menu.

So I need a shell script? I think I know how to do a shell script. Should I made a shell script for every program I wanna run?
if you installed it to ~/Program/wine then you need to add that to your path for it to find the commands just typing them in... it doesn't know to look in there. you can also cd into that folder and use like ./wine and ./wineserver -p or whatever... with the ./ telling it to look for the command in the current folder.
Locked