Install autoreconf on OS X v10.7 (Lion)?

MacosOsx LionRvmRuby Debug

Macos Problem Overview


I'm attempting to re-install Ruby 1.9.3 with a patch that will allow me to use ruby-debug.

When following the instructions and running

rvm reinstall 1.9.3 --patch debug --force-autoconf

It runs through and after applying the patch spits out:

> rvm requires autoreconf to install the selected ruby interpreter however autoreconf was not found in the PATH.

Unfortunately, googling around for how to install autoreconf on OS X v10.7 (Lion) (or much information about it at all) seems to be a dead end.

Macos Solutions


Solution 1 - Macos

If you are using Homebrew, try

brew install automake

Which should also install autoconf and allow rvm to finish installing.

Solution 2 - Macos

If you want to do this using MacPorts instead of Homebrew, you can do:

sudo port install automake autoconf libtool

I had the same problem and this solved it for me.

Solution 3 - Macos

If you're using brew, then the autoreconf utility is part of the autoconf package, so install it via:

brew install autoconf

If the problem persists, consider either reinstall or link it again. Use locate autoreconf to find out where it is.

Also check if /usr/local/bin/autoreconf exists (and is linked into the right place), and you've the /usr/local/bin path added in your /etc/paths file.

Solution 4 - Macos

By downloading the .pkg file from MacPorts and installing it, it does the trick for me.

Solution 5 - Macos

I solved my autoreconf problem adding the path to my shell:

sudo pico /etc/paths

then I added the line

/sw/bin

where I found the autoreconf and autoconf files and saved everything.

Since then I can use autoreconf without any problems.

Solution 6 - Macos

I had a similar problem, but because Homebrew moved away from the Cellar directory, but for some reasons binaries of this package were still there.

I reinstalled autoconf with the following command and autoreconf is in the right PATH now: brew reinstall autoconf

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBrianView Question on Stackoverflow
Solution 1 - MacosfozView Answer on Stackoverflow
Solution 2 - Macospatr1ckView Answer on Stackoverflow
Solution 3 - MacoskenorbView Answer on Stackoverflow
Solution 4 - MacosInder Kumar RathoreView Answer on Stackoverflow
Solution 5 - MacosJara SchnyderView Answer on Stackoverflow
Solution 6 - MacosTomView Answer on Stackoverflow