Macos – Adding wine to bash profile

bashmacoswine

I have installed wine 1.7.50 from source. There weren’t any .dmg or .app installers available on version 1.7.50 which supports DirectX11. So, I had to install it via terminal from source via the below command. Install showed me some warning but no errors were thrown.

./configure 
make depend 
make 
make install

I typed command which wine as it shows me path where wine got installed(I guess).

/usr/local/bin/wine

However, when I type wine install.exe command or any other --version wine is not found. How would I add wine to .bash_profile?

Last login: Sat Sep  5 10:42:22 on console
$ echo $PATH
/usr/local/sbin:/usr/local/mysql/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/CrossPack-AVR/bin:/Users/abhimanyuaryan/AndroidStudioProjects/adt-bundle/sdk/platform-tools
$ ls -la ~/.bash_profile
-rw-r--r--  1 abhimanyuaryan  staff  554 Aug 23 19:27 /Users/abhimanyuaryan/.bash_profile
$ 

Best Answer

You can add Wine as symbolic link in /usr/local/bin on a Mac. This directory usually already is included in the path variable and the procedure works seamlessly with the app install of Wine.

sudo ln -s /Applications/Wine.app/Contents/Resources/bin/wine /usr/local/bin/wine
Related Question