Opened 11 years ago

Closed 11 years ago

#41427 closed defect (invalid)

wine cannot run in terminal, mac os x

Reported by: kenmux@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port:

Description

i'm a newer to macport. just before trying macport, i installed and used wine.app directly.

i found it not very well, so i uninstalled it. then, i try to use macport to run wine.

when i install it successfully, i found that, i just cannot run it in terminal by typing 'wine' and enter!!!

the hint is: '-bash: /Applications/Wine.app/Contents/Resources/bin/wine: No such file or directory'

but, i can run 'wine' in bash 3.4, in the x11, also, i can run 'winecfg' in terminal. so, what should i do? any good ideas? please help me!

Change History (4)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

This is not a MacPorts problem. (/Applications/Wine.app is not installed by MacPorts.) It's a problem with your terminal.

The first thing I'd try is to quit the Terminal application and re-open it. Does that help or change the error message at all? If not, please show me the output of:

echo $PATH

comment:2 Changed 11 years ago by kenmux@…

thanks for you to help me, the $PATH as follows:

Last login: Tue Nov 19 09:32:43 on ttys000
ivviii:~ kenmux$ echo $PATH
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/kenmux/Softwares/Eclipse/usr/android-ndk
ivviii:~ kenmux$ winecfg
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
ivviii:~ kenmux$ wine --help
-bash: /Applications/Wine.app/Contents/Resources/bin/wine: No such file or directory
ivviii:~ kenmux$

last time i forgot to clean the trash, so this time it did it, but just not work...

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 11 years ago by kenmux@…

urr, i know why...

when i check terminal alias, then....

ivviii:~ kenmux$ alias
alias wine='/Applications/Wine.app/Contents/Resources/bin/wine'
ivviii:~ kenmux$ 

just as you known, if you installed wine.app, it'll do this:

alias wine='/Applications/Wine.app/Contents/Resources/bin/wine'

so this was a simple thing: change alias!!!

ivviii:~ kenmux$ alias wine='/opt/local/bin/wine'
ivviii:~ kenmux$ wine --help
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program       
        wine --help                   Display this help and exit       
        wine --version                Output version information and exit
ivviii:~ kenmux$ 

ryandesign@…, thanks, alougth... you let me check the settings of my mac, it's correct!

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Ok, glad you got it working.

Note: See TracTickets for help on using tickets.