问题安装geos pod,GEOSwift的依赖

时间:2015-12-10 05:29:55

标签: ios cocoapods geos

我正在尝试在我正在处理的项目中安装 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

1 个答案:

答案 0 :(得分:0)

问题是我缺少的一些工具。

通过在终端中运行以下命令来解决此问题:

  • brew install autoconf
  • brew install automake

您可能需要在超级用户面前添加sudo并输入密码来运行它们。

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

相关问题