Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/122.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 安装geos吊舱的问题,这是GEOSwift的一个依赖项_Ios_Cocoapods_Geos - Fatal编程技术网

Ios 安装geos吊舱的问题,这是GEOSwift的一个依赖项

Ios 安装geos吊舱的问题,这是GEOSwift的一个依赖项,ios,cocoapods,geos,Ios,Cocoapods,Geos,我试图在我正在进行的一个项目中安装GEOSwiftpod。 该pod的一个依赖项是geospod。每次运行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 autocon

我试图在我正在进行的一个项目中安装GEOSwiftpod。 该pod的一个依赖项是geospod。每次运行
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
更新本地规范存储库
分析依赖关系
下载依赖项
安装GEOSwift(0.3.0)
安装geos(3.4.2)
[!]/bin/bash-c
set-e
键入-P autoconf&>/dev/null | |别名autoconf'xcrun autoconf'
键入-P autoheader&>/dev/null | |别名autoheader'xcrun autoheader'
键入-P aclocal&>/dev/null | |别名aclocal'xcrun aclocal'
键入-P automake&>/dev/null | |别名automake'xcrun automake'
键入-P glibtool&>/dev/null | |别名glibtool'xcrun glibtool'
键入-P glibtoolize&>/dev/null | |别名glibtoolize'xcrun glibtoolize'
sh autogen.sh
/配置
/工具/svn_repo_revision.sh
sed-i““s/\/\*\\\\\\\\*\\/\\\\\/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\定义HAVE\\\\\\\\\\
sed-i““s/#define HAVE_LONG_INT_64 1/\/\*.\35; unde HAVE_LONG_INT_64\*./”include/geos/platform.h
cat include/geos/platform.h
#艾斯南酒店
#定义ISNAN(x)(标准::ISNAN(x))
EOT
/bin/bash:第5行:别名:aclocal:未找到
/bin/bash:第5行:别名:xcrun aclocal:未找到

问题是我缺少了几个工具

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

  • brew安装autoconf
  • brew安装automake
您可能必须以超级用户身份运行它们,方法是在它们前面添加
sudo
,然后输入密码


注意:如果您尚未安装自制,您可以按照此处的说明操作:

问题在于我缺少一些工具

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

  • brew安装autoconf
  • brew安装automake
您可能必须以超级用户身份运行它们,方法是在它们前面添加
sudo
,然后输入密码


注意:如果您尚未安装自制,您可以按照此处的说明操作:

尝试
sudo-brew安装
,您会遇到以下错误:怯懦地拒绝
sudo-brew安装
您可以将brew与sudo一起使用,但前提是brew可执行文件归root所有。但是,不建议这样做,也完全不支持这样做,风险自负。尝试
sudo-brew安装
,您会遇到以下错误:胆怯地拒绝
sudo-brew安装
您可以将brew与sudo一起使用,但前提是brew可执行文件归root所有。但是,不建议这样做,也完全不支持这样做,因此风险自负。