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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 08:56:51  来源:igfitidea点击:

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

macososx-lionrvmruby-debug

提问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

If you are using Homebrew, try

如果您使用的是Homebrew,请尝试

brew install automake

Which should also install autoconfand allow rvmto finish installing.

还应该安装autoconf并允许rvm完成安装。

回答by patr1ck

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

如果您想使用MacPorts而不是Homebrew来执行此操作,您可以执行以下操作:

sudo port install automake autoconf libtool

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

我遇到了同样的问题,这为我解决了。

回答by kenorb

If you're using brew, then the autoreconfutility is part of the autoconfpackage, so install it via:

如果您使用的是brew,则该autoreconf实用程序是autoconf软件包的一部分,因此请通过以下方式安装它:

brew install autoconf

If the problem persists, consider either reinstallor linkit again. Use locate autoreconfto find out where it is.

如果问题仍然存在,考虑要么reinstalllink重新它。使用locate autoreconf找出它在哪里。

Also check if /usr/local/bin/autoreconfexists (and is linked into the right place), and you've the /usr/local/binpath added in your /etc/pathsfile.

还要检查是否/usr/local/bin/autoreconf存在(并链接到正确的位置),并且您已/usr/local/bin/etc/paths文件中添加了路径。

回答by Inder Kumar Rathore

By downloading the .pkg file from MacPortsand 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 autoreconfand autoconf files and saved everything.

在那里我找到了autoreconfautoconf 文件并保存了所有内容。

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