Gcenx / macOS_Wine_builds

Official Winehq macOS Packages
501 stars 23 forks source link

gcenx-wine-stable gives wine-4.0.2 #9

Closed KenjutsuGH closed 4 years ago

KenjutsuGH commented 4 years ago

I installed gcenx-wine-stable via homebrew:

brew cask install --no-quarantine gcenx-wine-stable
Updating Homebrew...
==> Caveats
gcenx-wine-stable supports both 32-bit and 64-bit now. It is compatible with your
existing 32-bit wine prefix, but it will now default to 64-bit when you
create a new wine prefix. The architecture can be selected using the
  WINEARCH environment variable which can be set to either win32 or
win64.

To create a new pure 32-bit prefix, you can run:
    $ WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg
See the Wine FAQ for details: https://wiki.winehq.org/FAQ#Wineprefixes

==> Downloading https://github.com/Gcenx/macOS_Wine_builds/releases/download/5.0.2-1/wine-stable-5.0.2-1-osx64.tar.gz
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/0f5f650aeb03ad04d0a17b797a2fafbf9ce0e39f984ee113d1b34806a9a04662--wine-stable-5.0.2-1-osx64.tar.gz
==> No SHA-256 checksum defined for Cask 'gcenx-wine-stable', skipping verification.
==> Installing Cask gcenx-wine-stable
Warning: macOS's Gatekeeper has been disabled for this Cask
==> Moving App 'Wine Stable.app' to '/Applications/Wine Stable.app'.
==> Linking Binary 'appdb' to '/usr/local/bin/appdb'.
==> Linking Binary 'winehelp' to '/usr/local/bin/winehelp'.
==> Linking Binary 'msiexec' to '/usr/local/bin/msiexec'.
==> Linking Binary 'notepad' to '/usr/local/bin/notepad'.
==> Linking Binary 'regedit' to '/usr/local/bin/regedit'.
==> Linking Binary 'regsvr32' to '/usr/local/bin/regsvr32'.
==> Linking Binary 'wine' to '/usr/local/bin/wine'.
==> Linking Binary 'wine64' to '/usr/local/bin/wine64'.
==> Linking Binary 'wineboot' to '/usr/local/bin/wineboot'.
==> Linking Binary 'winecfg' to '/usr/local/bin/winecfg'.
==> Linking Binary 'wineconsole' to '/usr/local/bin/wineconsole'.
==> Linking Binary 'winedbg' to '/usr/local/bin/winedbg'.
==> Linking Binary 'winefile' to '/usr/local/bin/winefile'.
==> Linking Binary 'winemine' to '/usr/local/bin/winemine'.
==> Linking Binary 'winepath' to '/usr/local/bin/winepath'.
==> Linking Binary 'wineserver' to '/usr/local/bin/wineserver'.
🍺  gcenx-wine-stable was successfully installed!

However, running wine --version gives:

/usr/local/bin/wine --version
wine-4.0.2
Gcenx commented 4 years ago

Check the actual binary it’s version is indeed 5.0.2, but it does indeed have an issue the libwine within /lib is 64Bit and not 32Bit so I’m getting an error on my end.

For you it seems you have a 32Bit libwine possibly within /usr/local/lib, or within /opt/local/lib and that’s being picked up due to the above error

KenjutsuGH commented 4 years ago

I uninstalled gcenx-wine-stable and removed all occurrences of wine related files in /usr/local/lib, and reinstalled gcenx-wine-stable. but now get the error:

dyld: Library not loaded: @rpath/libwine.1.dylib
  Referenced from: /usr/local/bin/wine
  Reason: no suitable image found.  Did find:
    /Applications/Wine Stable.app/Contents/Resources/wine/bin/../lib/libwine.1.dylib: mach-o, but wrong architecture
    /Applications/Wine Stable.app/Contents/Resources/wine/bin/../lib/libwine.1.dylib: stat() failed with errno=1
Abort trap: 6
Gcenx commented 4 years ago

@KenjutsuGH exactly.

I just uploaded a fixed version that does have a 32Bit libwine.1.dylib within /lib

KenjutsuGH commented 4 years ago

@Gcenx thank you so much, it now works