Opened 10 years ago

Closed 10 years ago

#29044 closed defect (fixed)

winetricks: zenity.sh: line 1: -n: command not found

Reported by: pennsuaccount@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: winetricks

Description (last modified by jmroot (Joshua Root))

after I install winetricks (sudo port install winetricks), I can't run winetricks with gui, I would get the messages:

/tmp/w.pencilcheck.339/zenity.sh: line 1: -n: command not found
/tmp/w.pencilcheck.339/zenity.sh: line 2: -n: command not found
/tmp/w.pencilcheck.339/zenity.sh: line 3: -n: command not found

I am 100% sure zenity is installed but I have no idea why it is not found.

Change History (13)

comment:1 Changed 10 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: winetricks added

Please remember to fill in the Port field and cc the maintainer.

comment:2 Changed 10 years ago by pennsuaccount@…

oh, ok. thanks.

comment:3 Changed 10 years ago by ryandesign (Ryan Schmidt)

I just committed an update to zenity 2.32.1. See if that helps.

sudo port selfupdate
sudo port upgrade outdated

comment:4 Changed 10 years ago by pennsuaccount@…

still the same....

comment:5 Changed 10 years ago by ryandesign (Ryan Schmidt)

This looks like upstream bug 3 which is supposed to have been fixed in winetricks already. Are you sure you have winetricks 20110402?

comment:6 Changed 10 years ago by pennsuaccount@…

i'm sure it is 20110402 because that's the only version I can find in port search

comment:7 Changed 10 years ago by ryandesign (Ryan Schmidt)

And port installed winetricks shows 20110402 is the version that is installed?

Do you get these error messages immediately after running winetricks or do you need to select some option from the zenity menu before you see it? (Or do you not even see the first zenity menu?)

What version of Mac OS X are you running?

comment:8 Changed 10 years ago by pennsuaccount@…

interesting. seems like it is not 20110402, it is 20110318.

But how is that possible? I remember when I search for winetricks it showed up as 20110402 and I proceed to install assuming it installs the latest version.

comment:9 Changed 10 years ago by ryandesign (Ryan Schmidt)

You're right, whatever you see with "port search" should be what ends up getting installed.

Whatever the reason, upgrading winetricks should fix the problem. If you wait 30 minutes and selfupdate again before upgrading, you'll get a small additional fix I just committed.

sudo port selfupdate
sudo port upgrade winetricks

comment:10 Changed 10 years ago by pennsuaccount@…

oh god, how I hate the selfupdate then upgrade, macports usually just upgrade and build everything.... literally everything....

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

Well, selfupdate should download all the new port definitions, and upgrade MacPorts base itself if necessary. And then you should upgrade all your outdated ports. Yes, if you haven't updated in awhile, there may be lots of ports to rebuild; ports are updated constantly, as new versions of the software are released by their developers. You really should upgrade them all to avoid any problems.

comment:12 Changed 10 years ago by pennsuaccount@…

anyway, thanks for the help.

comment:13 Changed 10 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed
Summary: winetricks 20110402 (x11) couldn't run guiwinetricks: zenity.sh: line 1: -n: command not found

Ok, let me know if updating winetricks to 20110402 does not solve it.

Note: See TracTickets for help on using tickets.