1

我试图在我正在处理的项目中安装GEOSwift pod。该 pod 的依赖项之一是geos pod。每次运行时我都会收到以下错误pod install

Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing GEOSwift (0.3.0)
Installing geos (3.4.2)
[!] /bin/bash -c
set -e

type -P autoconf &>/dev/null || alias autoconf 'xcrun autoconf'
type -P autoheader &>/dev/null || alias autoheader 'xcrun autoheader'
type -P aclocal &>/dev/null || alias aclocal 'xcrun aclocal'
type -P automake &>/dev/null || alias automake 'xcrun automake'
type -P glibtool &>/dev/null || alias glibtool 'xcrun glibtool'
type -P glibtoolize &>/dev/null || alias glibtoolize 'xcrun glibtoolize'

sh autogen.sh
./configure
./tools/svn_repo_revision.sh

sed -i "" "s/\/\* #undef HAVE_INT64_T_64 \*\//#define HAVE_INT64_T_64 1/" include/geos/platform.h
sed -i "" "s/#define HAVE_LONG_INT_64 1/\/\* #undef HAVE_LONG_INT_64 \*\//" include/geos/platform.h

cat <<EOT >> include/geos/platform.h
  #undef ISNAN
  #define ISNAN(x) (std::isnan(x))
EOT

/bin/bash: line 5: alias: aclocal: not found
/bin/bash: line 5: alias: xcrun aclocal: not found
4

1 回答 1

0

问题是我缺少一些工具。

通过在终端中运行以下命令修复了该问题:

  • brew install autoconf
  • brew install automake

您可能必须通过sudo在它们前面添加并输入密码来以超级用户身份运行它们。

注意:如果您还没有安装Homebrew,您可以按照此处的说明进行操作:http: //brew.sh

于 2015-12-10T05:29:54.757 回答