See what has been installed via Homebrew - osx-mountain-lion

(I asked a similar question regarding MacPorts some time ago)
Is there a way I can see what all I have installed via Homebrew? I'm currently running OS X 10.8 but I don't think that matters...

To see what has been installed simply enter
brew list
If you need more help you can type man brew and brew in the command-line interface. This will tell you more about the commands and options.

Related

uninstalled macports, and cannot use homebrew softwares anymore

I'm trying to remove duplicate opencv versions on my mac. It seems that I have installed using both homebrew and mac port, so I decided to uninstall mac port completely, following this guide
But when I uninstalled mac-port and softwares installed with port, I couldn't use softwares installed by brew anymore
$ brew install pkg-config
$ pkg-config
-bash: /opt/local/bin/pkg-config: No such file or directory
I guess it's because the system still believes that pkg-config is in mac-port location. But how to fix it? I haven't find solutions with google.
Thanks in advance!
problem solved by editing PATH setting in ~/.bash_profile (or bashrc).

updating octave: linking the installation

I have OSX 10.10.5 with Octave 3.4.0 running (installed, who knows how, I did it a million different ways through port, file extraction, ftp, homebrew…). I tried to update my Programme (brew install octave or sudo port install octave) and Terminal spits out:
Warning: octave-3.8.2 already installed, it's just not linked
Okay, great. So I have a better programme somewhere installed. What now? How on earth am I supposed to “just link” the newer installation?
If you install octave with Homebrew and it doesn't link it it should tell you why. You can force Homebrew to link octave with
$ brew link --overwrite octave
You can also add the --dry-run option to check and see what Homebrew will do to link octave
$ brew link --overwrite --dry-run octave
A possible reason for Homebrew not linking octave is that you've installed it by another method, MacPorts for instance. It is not recommended that you use both Homebrew and MacPorts on the same system.

How to install MIT Scheme on Mac?

I want to install MIT Scheme on my Mac, I have downloaded the MacOS X binary(x86-64).
However, I could not make it work using Mac Terminal.
I have tried to follow these articles:
Installing MIT/GNU Scheme on Mac OS X Leopard
Installing MIT Scheme on Mac OS X
but it seems out of date and does not work.
So, I'm looking for a simple method which allows me to write Scheme code using Mac Terminal.
I have struggled for hours to try to install it.
UPDATED FOR EL CAPITAN:
The best way that I've found was from here:
Download either the 32-bit or 64-bit dmg file for Scheme.
Double click the .dmg file, and you'll get this window, in which you should drag the "MIT/GNU Scheme" file into the Applications folder.
For the 32-bit version, run this command:
sudo ln -s /Applications/MIT\:GNU\ Scheme.app/Contents/Resources /usr/local/lib/mit-scheme-i386
Then enter your administrator password, and run this command:
sudo ln -s /usr/local/lib/mit-scheme-i386/mit-scheme /usr/local/bin/scheme
For the 64-bit version, first run this command:
sudo ln -s /Applications/MIT\:GNU\ Scheme.app/Contents/Resources /usr/local/lib/mit-scheme-x86-64
Then enter your administrator password and run this command:
sudo ln -s /usr/local/lib/mit-scheme-x86-64/mit-scheme /usr/local/bin/scheme
And that's it! Now you should be able to use MIT Scheme in your terminal by typing "scheme" into the command line:
Homebrew makes it easy for you. On Terminal, type:
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) ; brew install mit-scheme
Done!
Edit
The install script has been moved:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ; brew install mit-scheme
For Yosemite 10.10.3:
After installing X11.app and homebrew,
$ brew tap homebrew/x11
$ brew install mit-scheme
I found it easier when a maintained package manager such as homebrew covers all the dependency and build stuff.
Edit: simply
$ brew install mit-scheme
would do. X11 is now optional instead of dependence. There is still an --with-x11 option which requires whole Xcode.
You can install scheme using homebrew using the following command
brew install mit-scheme
If you have the latest version of Mac system, El Capitan 10.11.2, You might need to do something different than above.
The first command will be same.
For the 64-bit version, first run this command:
sudo ln -s /Applications/MIT\:GNU\ Scheme.app/Contents/Resources /usr/local/lib/mit-scheme-x86-64
Then enter your administrator password and run this command:
sudo ln -s /usr/local/lib/mit-scheme-x86-64/mit-scheme /usr/local/bin/scheme
Note: The difference is you need to put local between /usr/ and /bin/
Type scheme in the terminal to see if it works. If you get the following screenshot, that means you succeed it.
Success Result
You definitely need to put local there.
The reason is this, Apple improved OS security in OSX 10.10 (rootless), and changes to the general system-wide binaries (such as /usr/bin) is not permitted.
If you are having trouble with the accepted answer from #virgil-ming, try this:
$ brew install Caskroom/cask/xquartz
$ brew install mit-scheme
Same idea, of course, but this got me up and running when brew tap homebrew/x11 responded with multiple conflicts.
As always, remember to brew update then try again when you are having problems, a la Homebrew's troubleshooting guide.
If you are using docker, and I recommend you do:
docker run -it inikolaev/alpine-scheme
will drop you right into a scheme REPL.
UPDATE FOR MAC OS HIGH SIERRA:
Worked for me just by executing (if you are using Homebrew):
brew install mit-scheme
If you are using MacPorts, the command is similar to what others have posted for homebrew -
sudo port install mit-scheme
That set me up pretty well on OS X 10.8.5
I came across a problem that the 10.x versions of the MIT/GNU Scheme do not support Mac OS X 10.11 El Capitan. In fact, it requires Mac OS X 10.13 or higher.
The topmost version supporting older Mac OS X versions is MIT/GNU Scheme 9.2.

Installing meld on OS X

After I got MacPorts installed and did a 'sudo port -v selfupdate', I try to install meld.
The installation just starts to Fetching all kinds of stuff
gnome-comoon
perl5.8
perl5
pkgconfig
.....
this goes on and on.
Is that normal?
You may want to install it via HomeBrew (already mentioned before):
brew install homebrew/gui/meld
Though you may face stability issues (as I did). So I'd rather recommend to use "Meld for OSX":
Go to https://yousseb.github.io/meld/
Download DMG file you prefer (e.g. "Download latest DMG" https://github.com/yousseb/meld/releases/download/osx-6/meldmerge.dmg)
Install it to your Applications folder
We are basically done, but it is not accessible via command line.
Solution:
Write a small wrapper to run from Terminal:
echo -e '#!/bin/sh
params="$#"
open -W -a Meld --args $params' | sudo tee /usr/local/bin/meld
sudo chmod +x /usr/local/bin/meld
Try (you must use absolute paths though):
meld /home/a.txt /home/b.txt
Or just run Meld from menu.
meld is now available in homebrew. The formula can be found here.
See this answer by cmedeiros on SuperUser for more information on installing and getting it to work. This is much easier than using MacPorts.
Current command with updated formula to install meld with homebrew is:
brew install caskroom/cask/meld
Yes, it is normal to pull in dependencies but it shouldn't take too long. For comparison, installing Meld with Homebrew took about 15 minutes for me.
For reference, my installation of Meld on OS X Mavericks:
Install Xcode from the app store
Install XQuartz from package (Meld will complain if you don't have it)
command line: 'brew install meld'
If you are prompted to install the Xcode command line tools at some point, do so.
Hope this helps.
Unfortunately, the is very normal with MacPorts, and is the reason that people many have switched to homebrew http://github.com/mxcl/homebrew
However, I found this post because homebrew doesn't include Meld. Sigh.
Consider downloading macOS meld version dmg https://github.com/yousseb/meld/releases/
Brew now works brew install --cask meld.
See https://formulae.brew.sh/cask/meld#default
UPDATE Jul-23-2020
Just do :
brew install homebrew/gui/meld
using the updated brew link: brew install caskroom/cask/meld
even after this its not working when I install backup and restore tool by google. I guess its messing up with the python version.

Where can I download PostgreSQL 8.2.16 installer for OSX?

I've been searching for about an hour, but could not find any installer for this version...
I have been using Homebrew for OSX, and have been really happy with it. After you install it, you can
$ brew install postgresql
and get a clean installation of postgres. However, it doesn't install any gui tools, just psql.
http://github.com/mxcl/homebrew
http://www.engineyard.com/blog/2010/homebrew-os-xs-missing-package-manager/
EDIT:
Apologies, I think the brew formula is building 8.4.3 right now, but it shouldn't be too hard to edit it to use the version you require...
EDIT #2:
You might be able to find the version you want here:
http://www.enterprisedb.com/products/postgres_plus/getinstaller.do

Resources