Tag Info

Hot answers tagged

52

Binaries in /{,usr/}{,s}bin/ should not usually be replaced with other files. Other programs expect them to be the versions that came with OS X, and they are replaced by OS upgrades. After running brew install bash, you can change the default shell safely by: Adding /usr/local/bin/bash to /etc/shells Running chsh -s /usr/local/bin/bash. Settings in ...


52

BOOM! I found the proper way to do this: Get brew if you don't have by doing: ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" After that: brew update brew upgrade osxfuse brew upgrade ntfs-3g sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig sudo ln -s /usr/local/sbin/mount_ntfs /sbin/mount_ntfs brew info osxfuse You should ...


40

Definitely Homebrew. I started with Fink, then switched to MacPorts (happier), then Homebrew (much, much happier). These are my reasons for using each (a pro list if you will): Fink Apt-based - feel right at home if you come from a Debian-based environment Binary packages - packages are available as binaries so no long compile times. Practically though ...


35

Homebrew solution To answer my own question, homebrew-versions now has a fairly up to date formula of GCC. It can be installed using brew install [flags] https://raw.github.com/Homebrew/homebrew-versions/gcc48.rb Where [flags] should include all the required languages, e.g. (--enable-cxx --enable-fortran). This will install the executables with a ...


27

Is this considered bad? I thought one of the advantages of using /usr/local/ for your installs was that you don't need sudo. But clearly we do. Homebrew, by default, sets itself up for single-user access to /usr/local. So you need to open up the permissions on the directory tree for it to be administered by more than one person. People don't need to ...


23

Yes, create a .bash_profile file in your home directory containing PATH="/usr/local/bin:$PATH" and then do one of the following to make the change active execute . ~/.bash_profile execute PATH="/usr/local/bin:$PATH" in the current shell restart Terminal


22

Fink has been around since at least 2001. Fink and MacPorts are package managers that want to be "orthogonal" to the system, that is, they install their own version of python, perl, libraries, compilers, etc. in own trees (/sw for Fink, /opt/local for MacPorts). The reason for this is that they have no control what Apple does with its software, and it ...


20

I use HomeBrew too and can confirm it's totally safe. Quoting the Installation page on the official HomeBrew wiki: Do yourself a favour and pick /usr/local It’s easier /usr/local/bin is already in your PATH. It’s easier Tons of build scripts break if their dependencies aren’t in either /usr or /usr/local. We fix this for Homebrew formulas ...


19

Here is the procedure I recommend, for those who are comfortable with the command-line and with Homebrew: Install Homebrew. Run the following on the command line (in Terminal): brew install macvim --override-system-vim brew linkapps Edit your shell startup files to ensure that /usr/local/bin comes first in your $PATH. If you use vim as $VISUAL or ...


18

The solution provided by @Konrad Rudolph is not entirely correct anymore as the GCC formula that he mentioned was moved from homebrew/dupes to homebrew/versions. You can choose which version of GCC to install. For example, at the time of writing this answer, version 4.5, 4.7 and 4.8 are available. You may check out what versions are available here. In ...


17

brew list Running brew list will show a list of all your installed Homebrew packages.


16

The MacPort documentation advises to use your Terminal and type: sudo port -fp uninstall installed and with this command, all remaining items will be deleted: sudo rm -rf /opt/local sudo rm -rf /Applications/DarwinPorts sudo rm -rf /Applications/MacPorts sudo rm -rf /Library/LaunchDaemons/org.macports.* sudo rm -rf /Library/Receipts/DarwinPorts*.pkg sudo ...


15

Thanks everyone for helpful answers. In my case adding export PATH="/usr/local/bin:$PATH" in ~/.bash_profile solved the problem.


15

mencoder is part of the MPlayer utility, and is installed as part of the MPlayer package on most systems. Installing MPlayer via Homebrew ( brew install mplayer ) will supply the mencoder binary as well. $ brew list mplayer /usr/local/Cellar/mplayer/1.1/bin/mplayer /usr/local/Cellar/mplayer/1.1/bin/mencoder /usr/local/Cellar/mplayer/1.1/share/man/ (2 files) ...


15

This bash command (taken from there) it will unlink all installed formulas and link them again: brew list -1 | while read line; do brew unlink $line; brew link $line; done I guess that all formulas needed to be linked, otherwise whichever tool is depended on them would have troubles finding them.


15

/usr/local/Library/LinkedKegs seems to contain a list of, well, linked kegs, so this should do the trick: ls -1 /usr/local/Library/LinkedKegs | while read line; do echo $line brew unlink $line brew link --force $line done I'd recommend ensuring you have write permissions to /usr/local/lib again before trying this.


14

You might be better off just installing the standalone Developer Command Line Tools (which includes gcc and other standard developer toolchain items). You can get it from Apple's Developer Downloads (which requires a free developer account). Unfortunately there's no direct link, but just search for command line tools and you'll find it (note that there are ...


13

MacPorts It is more independent of Mac OS X, this means MacPorts will just ignore many of the system libraries and softwares that already available in Mac OS X and pull its own one instead, which could be slower when the utility you install requires some set of large libraries and softwares. But this kind of choice is safer because the packages you ...


13

In addition to the homebrew suggestion, you can just download the binary from http://www.r-project.org/ Go to http://www.r-project.org/ Click CRAN Select a mirror Click "download R for (Mac) OS X" Download and install the latest pkg binary See also the R for Mac OSX FAQ that includes information on installation.


12

Install Homebrew (if needed) ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" Install R brew tap homebrew/science brew install r


11

the command line tools aren't offered via Xcode 5.0.1, but was able to install them via the terminal command... xcode-select --install It will prompt you that it needs the command line tools and will offer you an avenue to install them. Worked like a charm for me.


10

That's kinda the problem; Homebrew doesn't know what they are either, and randomly sourced libraries tend to break builds. (MacPorts makes the same recommendation. In fact, I was under the impression that was one of the things Homebrew relaxed.) If you don't know what they are or if they're used, the simplest solution is $ sudo mv /usr/local ...


10

~/Library/Logs/Homebrew/ Homebrew creates log files in your Library folder at: ~/Library/Logs/Homebrew/ You can view the log files by holding down Option and using the Finder menu item: Go > Library, then navigating to Logs > Homebrew. Alternatively, you can use the Console.app application to browse to the log files. Homebrew History The default ...


9

It is usually better to keep permissions as strict as possible. Keeping /usr/local owned by root means that only processes that run as root/sudo (or ask for admin user via the Apple authorization dialog box) can write to this area. Thus, a process download has to ask you for a password before corrupting files there. But as you say, it makes adding new ...


9

You need to amend /etc/paths so that /usr/local/bin is listed before /usr/bin. You'll need to sudo your editor in order to do that. One of the ways to open editor is sudo open -t /etc/paths


9

Use the command brew upgrade in the terminal to update all of the packages. As for rebuilding all of your programs for the new OS build, there is no reason to do this as the compiled binary should result as the same. If you are noticing any issues, I would just uninstall and reinstall the packages that you are having issues with.


8

As one comment left on your OP mentioned: I'd be concerned that MD5 sums weren't matching. It could mean the tarball you're downloading is corrupt, in which case doing the above to override the match will actually cause you trouble because you'll be installing broken tools. Or it could be that the tarball you're downloading can't be trusted, that you're ...


8

Mine had the same problem. $ tmux dyld: Library not loaded: /usr/local/lib/libevent-2.0.5.dylib Referenced from: /usr/local/Cellar/tmux/1.9a/bin/tmux Reason: image not found Trace/BPT trap: 5 Tried to install libevent but it was already there, not linked yet: $ brew install libevent Warning: libevent-2.0.21 already installed $ brew link libevent Warning: ...


7

If you have the exact archive that Homebrew's expecting (i.e. same file name and same contents, as determined by SHA1 or whatever hash type the formula uses), you can put it in ~/Library/Caches/Homebrew and then try brew install.


7

For what it's worth, "/usr/local" is not considered a "system" folder by OS X, and on a brand new Snow Leopard install that folder is empty. Any root-owned stuff in that folder is a result of "sudo make install" on other software, or giving your password after double-clicking on a .pkg that wants to dump stuff into /usr/local. Owning /usr/local has "worked ...



Only top voted, non community-wiki answers of a minimum length are eligible