Winetricks won't install packages

Questions about Wine on macOS.
Locked
markintheworld
Level 1
Level 1
Posts: 5
Joined: Sun Apr 21, 2013 9:56 am

Winetricks won't install packages

Post by markintheworld »

I just installed winetricks (a seemingly successful install), and now I'm trying to use winetricks to install 3 packages (jet40, mdac28 and mono210). None of them will install. The output I receive from a verbose run of the command is:

Code: Select all

Mark-Heffernans-MacBook-Pro:~ markheffernan$ winetricks -v mono210
+ return 0
+ shift
+ winetricks_handle_option mono210
+ case "$1" in
+ return 1
+ winetricks_init
+ test ''
+ USERNAME=markheffernan
+ WINETRICKS_WORKDIR=/tmp/w.markheffernan.16986
+ test '' = 1
+ rm -rf /tmp/w.markheffernan.16986
+ WINETRICKS_METADATA=/tmp/w.markheffernan.16986/metadata
+ WINETRICKS_CATEGORIES='apps benchmarks dlls fonts games settings'
+ for _W_cat in '$WINETRICKS_CATEGORIES'
+ mkdir -p /tmp/w.markheffernan.16986/metadata/apps
+ for _W_cat in '$WINETRICKS_CATEGORIES'
+ mkdir -p /tmp/w.markheffernan.16986/metadata/benchmarks
+ for _W_cat in '$WINETRICKS_CATEGORIES'
+ mkdir -p /tmp/w.markheffernan.16986/metadata/dlls
+ for _W_cat in '$WINETRICKS_CATEGORIES'
+ mkdir -p /tmp/w.markheffernan.16986/metadata/fonts
+ for _W_cat in '$WINETRICKS_CATEGORIES'
+ mkdir -p /tmp/w.markheffernan.16986/metadata/games
+ for _W_cat in '$WINETRICKS_CATEGORIES'
+ mkdir -p /tmp/w.markheffernan.16986/metadata/settings
+ WINETRICKS_CURMENU=prefix
+ trap winetricks_cleanup EXIT HUP INT QUIT ABRT
+ WINETRICKS_OPT_KEEPISOS=0
+ WINETRICKS_OPT_DD=dd
+ WINETRICKS_OPT_SHAREDPREFIX=0
++ which sha1sum
+ '[' -x '' ']'
++ which openssl
+ '[' -x /opt/local/bin/openssl ']'
+ WINETRICKS_SHA1SUM='openssl dgst -sha1'
+ case `date +%S` in
++ date +%S
+ WINETRICKS_SOURCEFORGE=http://downloads.sourceforge.net
+ test -d /Users/markheffernan/Library/Caches
+ XDG_CACHE_HOME=/Users/markheffernan/Library/Caches
+ test ''
+ W_CACHE=/Users/markheffernan/Library/Caches/winetricks
+ WINETRICKS_POST=/Users/markheffernan/.local/share/winetricks/postinstall
+ test -d /Users/markheffernan/Library/Caches/winetricks
+ WINETRICKS_AUTH=/Users/markheffernan/.local/share/winetricks/auth
+ case "$OS" in
+ WINE=wine
++ which wineserver
++ dirname wine
+ for x in '"$WINESERVER"' '"${WINE}server"' '"`which wineserver 2> /dev/null`"' '/usr/lib*/wine-unstable/wineserver' '/usr/lib*/wine/wineserver' '/usr/lib/*/wine-unstable/wineserver' '/usr/lib/*/wine/wineserver' '"`dirname $WINE`/server/wineserver"' file-not-found
+ test -x ''
+ for x in '"$WINESERVER"' '"${WINE}server"' '"`which wineserver 2> /dev/null`"' '/usr/lib*/wine-unstable/wineserver' '/usr/lib*/wine/wineserver' '/usr/lib/*/wine-unstable/wineserver' '/usr/lib/*/wine/wineserver' '"`dirname $WINE`/server/wineserver"' file-not-found
+ test -x wineserver
+ for x in '"$WINESERVER"' '"${WINE}server"' '"`which wineserver 2> /dev/null`"' '/usr/lib*/wine-unstable/wineserver' '/usr/lib*/wine/wineserver' '/usr/lib/*/wine-unstable/wineserver' '/usr/lib/*/wine/wineserver' '"`dirname $WINE`/server/wineserver"' file-not-found
+ test -x /opt/local/bin/wineserver
+ break
+ case "$x" in
+ WINESERVER=/opt/local/bin/wineserver
+ test ''
+ WINETRICKS_ORIGINAL_WINEPREFIX=/Users/markheffernan/.wine
++ which wine
+ _abswine=/opt/local/bin/wine
+ test -x /opt/local/bin/wine
+ test -f /opt/local/bin/wine
+ case "$WINETRICKS_OPT_VERBOSE" in
+ echo -n 'Wine is '\''wine'\''; Wine version is '
-n Wine is 'wine'; Wine version is 
+ wine --version
wine-1.4.1
+ unset _abswine
+ winetricks_set_wineprefix
+ test ''
+ WINEPREFIX=/Users/markheffernan/.wine
+ export WINEPREFIX
++ dirname /Users/markheffernan/.wine
+ mkdir -p /Users/markheffernan
++ w_expand_env ProgramFiles
++ winetricks_early_wine cmd.exe /c echo %ProgramFiles%
++ WINEDEBUG=-all
++ wine cmd.exe /c echo %ProgramFiles%
++ sed 's/.*1h.=//'
++ tr -d '\r'
++ grep -v 'Module not found'

What's up??
markintheworld
Level 1
Level 1
Posts: 5
Joined: Sun Apr 21, 2013 9:56 am

Re: Winetricks won't install packages

Post by markintheworld »

Even after checking the install of winetricks, and trying all sorts of things like chmod +x winetricks and sh winetricks and ./ winetricks and winetricks mono210 and sh winetricks mono210,
still every winetricks command that I enter hangs up at grep -v 'module not found'....What am I missing?
ischou
Level 4
Level 4
Posts: 109
Joined: Sun Nov 28, 2010 7:22 pm

Re: Winetricks won't install packages

Post by ischou »

It looks like your winetricks is getting hug up here:

Code: Select all

winetricks_early_wine()
{
    # The sed works around http://bugs.winehq.org/show_bug.cgi?id=25838
    # which unfortunately got released in wine-1.3.12
    # We would like to use DISPLAY= to prevent virtual desktops from
    # popping up, but that causes autohotkey's tray icon to not show up.
    # We used to use WINEDLLOVERRIDES=mshtml= here to suppress the gecko
    # autoinstall, but that yielded wineprefixes that *never* autoinstalled
    # gecko (winezeug bug 223).
    # The tr removes carriage returns so expanded variables don't have crud on the end
    # The grep works around using new wineprefixes with old wine
    WINEDEBUG=-all $WINE "$@" 2>/dev/null | ( sed 's/.*1h.=//' | tr -d '\r' | grep -v "Module not found" || true)
}
I tried executing the command that wine is trying to run from your verbose output above:
WINEDEBUG=-all wine cmd.exe /c echo %ProgramFiles%
and indeed I got wine to "hang up" because it created a new WINEPREFIX and ran cmd.exe, but didn't correctly exit immediately after executing the "echo" command.

The problem went away after I explicitly set a WINEPREFIX to an existing wineprefix:

Code: Select all

export WINEPREFIX=~/.wine_1.5_default
Are you trying to run winetricks on a never-before-created WINEPREFIX? Have you tried creating the wineprefix first by running some default wine command, such as "wine notepad.exe" or tried setting WINEPREFIX to point at an existing wineprefix?
markintheworld
Level 1
Level 1
Posts: 5
Joined: Sun Apr 21, 2013 9:56 am

Re: Winetricks won't install packages

Post by markintheworld »

I must confess that I am confused about WINEPREFIX - not sure what exactly it is or how to use it, even after reading about it some...I gave my best shot at doing what you suggested - I tried running "wine notepad.exe" to no avail (wine_kernel_init boot event wait timed out). I would try the other suggestion of setting wineprefix to point at an existing wineprefix, but I'm not sure how to create a wineprefix....
ischou
Level 4
Level 4
Posts: 109
Joined: Sun Nov 28, 2010 7:22 pm

Re: Winetricks won't install packages

Post by ischou »

A WINEPREFIX is simply a directory where wine installs software and runs out of. Essentially you can configure a separate directory or WINEPREFIX for every application you want to install, so all the stuff you install for one application doesn't interfere with another. By default, if you do not specify a WINEPREFIX environment variable, wine will use a directory named ".wine" in your user's home directory.

If you change the value of the WINEPREFIX environment variable, then are asking wine to run from a different directory other than "/your/home/.wine".

If you tried running wine with something simple like "notepad.exe" and you're not getting an error, there is either something wrong with your wine installation or your existing WINEPREFIX (the one in your home directory named ".wine") is broken.

If you don't have anything successfully working in wine yet, you might see if you have a .wine directory in your home directory and delete it (note that directories that begin with "." are usually invisible to file managers and you need to use the command-prompt to see it: "ls -a"), then trying running wine notepad.exe again. If wine is installed correctly, you should get a fresh WINEPREFIX located in .wine in your home directory and the notepad application should appear.
markintheworld
Level 1
Level 1
Posts: 5
Joined: Sun Apr 21, 2013 9:56 am

Re: Winetricks won't install packages

Post by markintheworld »

When I try to run the command wine notepad.exe, I am presented with a time-out error:

Code: Select all

err:process:__wine_kernel_init boot event wait timed out
Does this inability to run a simple command mean that my wine installation is broken? How do I check my wine installation? What is my next step?
ischou
Level 4
Level 4
Posts: 109
Joined: Sun Nov 28, 2010 7:22 pm

Re: Winetricks won't install packages

Post by ischou »

Yes, the inability to open notepad.exe, which should be installed as part of the wine package indicates there's something really broken.

Did you manage to run anything in wine before? Do you have a ".wine" directory in your user's home directory? If so, have you tried deleting it (assuming that there's nothing important in it).

Usually "wine notepad.exe" is a perfectly good way to see if wine was installed correctly.
Locked