How to manually install zenity in homebrew? - macos

Zenity is required for some apps like winetrick-gtk and its not installed automatically when you install winetricks. The problem is brew install zenity does not work, as such a package does not exist. The question is how can I install it manually in Homebrew?
I have installed zenity using Macports. However, every time I use Homebrew I get a warning complaining that Macports is installed. So if I can install it using Homebrew I will be able to get rid of Macports as I don't use it at all.

For anyone arriving now, the x11 tap has been merged upstream, so you can simply brew install zenity and everything should work.

The homebrew-x11 tap provides a formula for zenity, so just brew install homebrew/x11/zenity.

If anyone wants a (largely compatible) "port" that doesn't require X:
brew install ncruces/tap/zenity
Source code: https://github.com/ncruces/zenity

Related

How to install ImageMagick in Mac for simple task (R)

I have a simple task I want to carry out and after exhausting all resources on google I'm stumped. I think whats hindering me most is installing ImageMagick. When I used my terminal I get errors. All I want to do is make some plots on R and make a GIF out of them. Is there anyone way to confirm ImageMagick is installed?
In general you will need either MacPorts or Homebrew installed first to install ImageMagick. As you stated above it sounds like you don't have Macports installed.
If you don't have either installed, I'm a big fan of homebrew, and so I'll walk your through install with homebrew.
Step 1. First install homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
as per the homebrew website here.
Once that's done installing you'll then be able to use commands like brew install foo where foo is something you'd like to install. In your example you see port install imagemagick which is the Macports way of installing image magick.
Step 2. Install imagemagick. As per ImageMagick Mountain Lion instructions here:
brew install imagemagick
That command should install imagemagick. A super handy tool with homebrew is brew doctor which analyses all the installs you've done with homebrew to make sure they'll properly setup.

Installing GLFW on OSX

I've been all over the internet and I simply cannot find a way to install GLFW for OSX and use it with Xcode. A lot of articles use cmake for this, which I tried to install but I still can't access it from the terminal.
I just need a simple step-by-step guide for installing it because I'm going to lose my mind.
Thanks
I use homebrew to install GLFW. Once brew has been configured, use the commands
brew tap homebrew/versions
brew install --build-bottle --static glfw2
If you are still running into trouble with this and want to use homebrew, change the install command to reflect the newer GLFW version (3 as of this writing)
brew tap homebrew/versions
brew install --build-bottle --static glfw3

Missing formulas in broken homebrew

After doing a Ctrol+C on a 'brew update' command, can't see all available formulas (searching with brew search command, E.g any php package)
I've tried with brew doctor and cleanup commands without any luck.
How can I fix this without uninstalling brew and all its programs?
I'm wondering about this as well. I switched to an older version of scala, now the formula is missing and I can't install the latest version. I'm going to uninstall and reinstall homebrew for a quickfix for now.

How can I install GNU Octave on Mac with Fink ?

I tried to install GNU Octave on my Mac using Fink by this instruction
http://wiki.octave.org/Octave_for_MacOS_X
I think I have followed all the instructions but I can't run Octave.
How can I check if it is installed correctly?
I tried typing 'octave' in the terminal but it says 'command not found'
Or, is there any easy instruction for Octave installation?
I've found many install guides but they are all different and assumes some knowledge.
Incidentally, I have installed Octave GNU today twice on two different machines (both running Lion).
I needed the latest version of Octave (3.6.4), and used Homebrew.
I already had XCode installed, so the rest:
Install Homebrew
Based on the instructions in this page, I ran:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Install Octave
Following this guide, I ran:
brew tap homebrew/science
brew update && brew upgrade
brew install gfortran
brew install octave
Install AquaTerm
Notice that you need this before you install gnuplot (or gnuplot won't see aqua as a valid terminal and you may get 'unknown or ambiguous terminal type' error).
Simply downloaded the latest version (1.1.0) dmg from SourceForge.
Install gnuplot
brew install gnuplot
You could try installing it with Home Brew. Once you download and install Home Brew, use this guide to get Octave installed.
Easiest option would be using the precompilled .app
I've tried the precompiled .app, but had issues with certain functions (like sound),
whereas the macports version always worked.
I usually install it using macports:
sudo port install octave
for the basics.
You might need other port variants/octave modules installed:
sudo port install octave octave-signal octave-plot octave-image octave-signal
Need to have XCode with Command Line Tools first and Macports with this route though
How to know if a Fink package is installed
By default (and this should be your case too if you didn't changed it), Fink installs everything under /sw, i.e. the binaries you are looking for should be in /sw/bin/.
Run ls /sw/bin/octave*and, depending on the output, you then have two choices :
Either the Octave binary is inside /sw/bin, in that case run echo $PATH and learn more about PATH Variable to fix your problem.
Otherwise, if there is nothing inside, there might have been a problem with the install. Try running fink install octave once more, look closely at the output and update your post if necessary.
This is simply an update on the instruction provided by Izhaki (that I ran on Mac OSX 10.8.4).
You may be required to update XCode to 4.6.3. This can be done through the AppStore.
If you encounter the error:
Error: Download failed: http://threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb41_20130613oss_src.tgz
during
brew install octave
Then invoke:
brew update
brew install octave
and the install will pick up where it left off. Other than that, the instruction worked seamlessly.

CMake GUI on Mac

I can't find where I can get the GUI tool for CMake on MacOSX. I see references to it online but nothing else. I got CMake using MacPorts but on Windows I am used to using the GUI.
Does it exist on Mac and where/how do I get it?
you need to install the gui variant:
sudo port install cmake +gui
you may need to run sudo port uninstall cmake first.
Cask is outdated now. You can install cmake using:
brew install --cask cmake
Try installing the cmake GUI using brew cask
brew cask install cmake
how to install brew cask
Install Homebrew first How to install homebrew
Add the brew cask to using the command brew tap caskroom/cask
here it is:
http://www.cmake.org/cmake/resources/software.html
extra plugins will imported by their own extensions so no OS compatibility is needed ;)

Resources