macos 在 OS X v10.7 (Lion) 上安装 autoreconf?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9575989/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Install autoreconf on OS X v10.7 (Lion)?
提问by Brian
I'm attempting to re-install Ruby 1.9.3 with a patch that will allow me to use ruby-debug.
我正在尝试使用允许我使用 ruby-debug 的补丁重新安装 Ruby 1.9.3。
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.
rvm 需要 autoreconf 来安装选定的 ruby 解释器,但是在 PATH 中找不到 autoreconf。
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.
不幸的是,搜索如何在 OS X v10.7 (Lion) 上安装 autoreconf(或有关它的很多信息)似乎是一个死胡同。
回答by foz
回答by patr1ck
回答by kenorb
If you're using brew
, then the autoreconf
utility is part of the autoconf
package, so install it via:
如果您使用的是brew
,则该autoreconf
实用程序是autoconf
软件包的一部分,因此请通过以下方式安装它:
brew install autoconf
If the problem persists, consider either reinstall
or link
it again. Use locate autoreconf
to find out where it is.
如果问题仍然存在,考虑要么reinstall
或link
重新它。使用locate autoreconf
找出它在哪里。
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.
还要检查是否/usr/local/bin/autoreconf
存在(并链接到正确的位置),并且您已/usr/local/bin
在/etc/paths
文件中添加了路径。
回答by Inder Kumar Rathore
By downloading the .pkg file from MacPorts
and installing it, it does the trick for me.
通过下载.pkg file from MacPorts
并安装它,它对我有用。
回答by Jara Schnyder
I solved my autoreconf problem adding the path to my shell:
我解决了我的 autoreconf 问题,将路径添加到我的 shell:
sudo pico /etc/paths
then I added the line
然后我添加了这一行
/sw/bin
where I found the autoreconf
and autoconf files and saved everything.
在那里我找到了autoreconf
autoconf 文件并保存了所有内容。
Since then I can use autoreconf without any problems.
从那时起,我可以毫无问题地使用 autoreconf。
回答by Tom
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.
我有一个类似的问题,但是因为 Homebrew 已经离开了 Cellar 目录,但由于某些原因,这个包的二进制文件仍然存在。
I reinstalled autoconf with the following command and autoreconf is in the right PATH now: brew reinstall autoconf
我使用以下命令重新安装了 autoconf,并且 autoreconf 现在位于正确的 PATH 中:brew reinstall autoconf