mac thinks wine is in opt/local/bin

Questions about Wine on macOS.
Locked
basketcase3
Level 2
Level 2
Posts: 11
Joined: Tue Aug 09, 2011 12:55 pm

mac thinks wine is in opt/local/bin

Post by basketcase3 »

even though the command which wine returns usr/local/bin/wine

I have already deleted all the wine related files from opt/local/bin so there must be a file somewhere else telling the computer to look there when i type wine. Where is it?
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

mac thinks wine is in opt/local/bin

Post by jjmckenzie »

On Tue, Aug 9, 2011 at 1:24 PM, basketcase3 <[email protected]> wrote:
even though the command which wine returns usr/local/bin/wine

I have already deleted all the wine related files from opt/local/bin so there must be a file somewhere else telling the computer to
look there when i type wine.  Where is it?
What does the command:

ls -l /usr/local/bin/wine

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

Post by doh123 »

more info would help...

why it is in /usr/local ... did you do a build by hand? /opt/local is where Macports puts everything. How exactly did you get Wine and how are oyu changing things? Its not going to run somewhere differently than the "which" command shows, because that pulls from the same path... unless your running in different terminal sessions that have different $PATH.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

mac thinks wine is in opt/local/bin

Post by jjmckenzie »

On Tue, Aug 9, 2011 at 1:56 PM, doh123 <[email protected]> wrote:
more info would help...

why it is in /usr/local ... did you do a build by hand?  /opt/local is where Macports puts everything.  How exactly did you get
Wine and how are oyu changing things?  Its not going to run somewhere differently than the "which" command shows,
because that pulls from the same path... unless your running in different terminal sessions that have different $PATH.
doh123:

It is possible what is in /usr/local/bin is only a symlink to /opt/local/bin

Also, if /opt/local/bin is not in the PATH and before /usr/local/inb
then which wine will not find wine installed there.

You do have a valid point though, how did Wine get in /usr/local/bin
and is there? Is it a symbolic-link to wine somewhere else or is this
an actual executible program.

Questions that need to answered have been asked:

What is at /usr/local/bin/wine (ls -l wine and file wine are two
commands that you can use)?
What is at /opt/local ?

We can provide help if needed, but if your MacPorts installation is
broken you may have to go to them for help.

Thank you.

James
basketcase3
Level 2
Level 2
Posts: 11
Joined: Tue Aug 09, 2011 12:55 pm

Post by basketcase3 »

I did have a macports installation that I uninstalled. I'm not sure what makes the computer think it's still there.
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

basketcase3 wrote:I did have a macports installation that I uninstalled. I'm not sure what makes the computer think it's still there.
how did you uninstall it? You have to trash the whole /opt/local folder.

What OS version are you running? older versions get the path messed up easily. Have you tried removing /opt/local and rebooting?
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

mac thinks wine is in opt/local/bin

Post by jjmckenzie »

On 8/9/11 2:43 PM, basketcase3 wrote:
I did have a macports installation that I uninstalled. I'm not sure what makes the computer think it's still there.
How did you uninstall it?

The 'proper' way is to use the purge function of MacPorts.

James
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

mac thinks wine is in opt/local/bin

Post by jjmckenzie »

On 8/9/11 8:10 PM, doh123 wrote:
basketcase3 wrote:
I did have a macports installation that I uninstalled. I'm not sure what makes the computer think it's still there.
how did you uninstall it? You have to trash the whole /opt/local folder.
Not just to remove Wine. MacPorts uses the purge function to do that.
However, if the only 'port' you installed is Wine, then removing
/opt/local/ and then logging out and back in should remove whatever
MacPorts added to the login shell scripts.

If that does not work, reboot.

James
Locked