Git 正在安装OsmAnd ios,路径中缺少perl

Git 正在安装OsmAnd ios,路径中缺少perl,git,perl,cmake,Git,Perl,Cmake,我正在尝试从Github页面安装OsmAnd ios项目 我是这样做的: git克隆https://github.com/osmandapp/OsmAnd-ios.git repo init-uhttps://github.com/osmandapp/OsmAnd-manifest -m readonly.xml cd-OsmAnd-ios git克隆https://github.com/osmandapp/OsmAnd-core.git 将文件夹OsmAnd core重命名为core git

我正在尝试从Github页面安装OsmAnd ios项目

我是这样做的:

  • git克隆https://github.com/osmandapp/OsmAnd-ios.git
  • repo init-uhttps://github.com/osmandapp/OsmAnd-manifest -m readonly.xml
  • cd-OsmAnd-ios
  • git克隆https://github.com/osmandapp/OsmAnd-core.git
  • 将文件夹
    OsmAnd core
    重命名为
    core
  • git克隆https://github.com/osmandapp/OsmAnd-build.git
  • 将文件夹
    OsmAnd build
    重命名为
    build
  • 打开
    /prepare.sh
    并将行
    ROOT=“$SRCLOC/。/”
    更新为
    ROOT=“$SRCLOC/”
  • 运行命令
    /prepare.sh
在我的情况下,这会导致以下错误:

DEFAULT_LIBDIRS="/lib
/usr/lib"

You need perl in your PATH to make a build from GIT.
Cannot proceed.
Failed to configure 'qtbase-ios' for 'ios.simulator.clang.static', aborting...
CMake Error at utils/common.cmake:58 (message):
  Failed to build upstream "/Users/alessandro/Desktop/XCodeProjects/OsmAnd-ios/build/../core/externals/qtbase-ios" for ios/clang/fat: 1
Call Stack (most recent call first):
  qt.cmake:34 (build_upstream_ex)
  CMakeLists.txt:240 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/alessandro/Desktop/XCodeProjects/OsmAnd-ios/baked/fat-ios-clang.xcode/CMakeFiles/CMakeOutput.log".
Failed to bake project files 'fat-ios-clang.xcode' (1)
Failed to generate project for XCode, aborting...

我认为我的perl安装正确,我使用命令将它添加到
$PATH

export PATH=“/usr/bin:$PATH”
,这是因为命令
whereis perl
返回
/usr/bin/perl

更新#1

这是
/prepare.sh
命令的完整日志:

cli-10-105-4-243:OsmAnd-ios alessandro$ ./prepare.sh 
Updating dependencies via CocoaPods
Update all pods
Updating local specs repositories
  $ /usr/bin/git -C /Users/alessandro/.cocoapods/repos/master fetch origin
  --progress
  remote: Enumerating objects: 3121, done.        
  remote: Counting objects: 100% (3121/3121), done.        
  remote: Compressing objects: 100% (2513/2513), done.        
  remote: Total 2605 (delta 1785), reused 0 (delta 0), pack-reused 0        
  Receiving objects: 100% (2605/2605), 272.25 KiB | 1.51 MiB/s, done.
  Resolving deltas: 100% (1785/1785), completed with 461 local objects.
  From https://github.com/CocoaPods/Specs
     d46887f228d..eecdebc1214  master     -> origin/master
  $ /usr/bin/git -C /Users/alessandro/.cocoapods/repos/master rev-parse --abbrev-ref
  HEAD
  master
  $ /usr/bin/git -C /Users/alessandro/.cocoapods/repos/master reset --hard
  origin/master
  HEAD is now at eecdebc1214 [Add] DryKline 0.1.3

CocoaPods 1.8.0.beta.2 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.8.0.beta.2

Analyzing dependencies
Pre-downloading: `QuickDialog` from `https://github.com/escoz/QuickDialog.git`
Downloading dependencies
Using AFDownloadRequestOperation (2.0.1)
Using AFNetworking (2.5.4)
Using BRCybertron (1.1.1)
Using CocoaSecurity (1.2.4)
Using DACircularProgress (2.2.0)
Using FFCircularProgressView (0.5)
Using Firebase (4.0.4)
Using FirebaseAnalytics (4.0.2)
Using FirebaseCore (4.0.4)
Using FirebaseInstanceID (2.0.10)
Using FormatterKit (1.8.2)
Using GoogleToolboxForMac (2.2.1)
Using HTAutocompleteTextField (1.3.2)
Using JASidePanels (1.3.2)
Using MBProgressHUD (0.9.2)
Using MDFInternationalization (2.0.0)
Using MaterialComponents (84.0.0)
Installing QuickDialog 1.0.2
Using Reachability (3.1.1)
Using RegexKitLite (4.0)
Using SWTableViewCell (0.3.7)
Using TPKeyboardAvoiding (1.2.11)
Using UIActionSheet-Blocks (1.0.1)
Using UIAlertView-Blocks (1.0)
Using nanopb (0.3.901)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 20 dependencies from the Podfile and 25 total pods installed.

[!] `xcodeproj` was renamed to `project`. Please update your Podfile accordingly.
Baking project files for cross-platform target 'fat-ios-clang'
Baking project files 'fat-ios-clang.xcode'
Possibly baked dir /Users/alessandro/Desktop/XCodeProjects/OsmAnd-ios/build/utils/../../baked/fat-ios-clang.xcode needs to be deleted.
CMake Deprecation Warning at /usr/local/share/cmake-3.6/Modules/CMakeForceCompiler.cmake:79 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  targets/fat-ios-clang.cmake:11 (CMAKE_FORCE_C_COMPILER)
  /Users/alessandro/Desktop/XCodeProjects/OsmAnd-ios/baked/fat-ios-clang.xcode/CMakeFiles/3.6.2/CMakeSystem.cmake:6 (include)
  CMakeLists.txt:4 (project)


CMake Deprecation Warning at /usr/local/share/cmake-3.6/Modules/CMakeForceCompiler.cmake:93 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  targets/fat-ios-clang.cmake:12 (CMAKE_FORCE_CXX_COMPILER)
  /Users/alessandro/Desktop/XCodeProjects/OsmAnd-ios/baked/fat-ios-clang.xcode/CMakeFiles/3.6.2/CMakeSystem.cmake:6 (include)
  CMakeLists.txt:4 (project)


System is unknown to cmake, create:
Platform/iOS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that file to cmake@www.cmake.org.
Using cross-platform target settings from toolchain file 'targets/fat-ios-clang.cmake'
CMAKE_TARGET_OS = ios
CMAKE_TARGET_CPU_ARCH = fat
CMAKE_TARGET_CPU_ARCH_FAMILY = fat
CMAKE_SHARED_LIBS_ALLOWED_ON_TARGET = FALSE
CMAKE_STATIC_LIBS_ALLOWED_ON_TARGET = TRUE
CMAKE_COMPILER_FAMILY = clang
OSMAND_OUTPUT_ROOT = /Users/alessandro/Desktop/XCodeProjects/OsmAnd-ios/build/../binaries/ios.clang$(EFFECTIVE_PLATFORM_NAME)
CMAKE_ASM_FLAGS =  -fvisibility=hidden
CMAKE_C_FLAGS =  -fvisibility=hidden
CMAKE_CXX_FLAGS =  -std=c++11 -fvisibility=hidden -fvisibility-inlines-hidden
Going to build embedded Qt for ios/clang

This is the Qt Open Source Edition.

You are licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) versions 3.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 2.

You have already accepted the terms of the Open Source license.

./configure: line 3323: [: too many arguments
./configure: line 3323: [: too many arguments
DEFAULT_INCDIRS="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include
"
DEFAULT_LIBDIRS="/lib
/usr/lib"

You need perl in your PATH to make a build from GIT.
Cannot proceed.
Failed to configure 'qtbase-ios' for 'ios.simulator.clang.static', aborting...
CMake Error at utils/common.cmake:58 (message):
  Failed to build upstream "/Users/alessandro/Desktop/XCodeProjects/OsmAnd-ios/build/../core/externals/qtbase-ios" for ios/clang/fat: 1
Call Stack (most recent call first):
  qt.cmake:34 (build_upstream_ex)
  CMakeLists.txt:240 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/alessandro/Desktop/XCodeProjects/OsmAnd-ios/baked/fat-ios-clang.xcode/CMakeFiles/CMakeOutput.log".
Failed to bake project files 'fat-ios-clang.xcode' (1)
Failed to generate project for XCode, aborting...
命令
perl-V:'(site)?bin'
的输出是:

bin='/usr/bin';
sitebin='/usr/local/bin';
我已找到导致错误的文件,该文件位于: ⁨⁨核心⁩ ▸ ⁨外部⁩ ▸ ⁨qtbase-ios⁩ ▸ ⁨补缀⁩ 它的名字叫配置

我添加了以下几行:

echo "PATH variable: $PATH"
echo "Perl error path: $relpath/.git"
echo "if [ -z PERL ] -> $PERL"
得到这个输出

PATH variable: /usr/bin:/usr/bin/perl:/usr/bin/perl:/usr/local/bin:/usr/bin:/usr/local:/usr:/usr/:/usr/bin/perl:/usr/bin/perl:/Users/alessandro/perl5/perlbrew/bin:/Users/alessandro/perl5/perlbrew/perls/perl-5.28.0/bin:/opt/local/bin:/opt/local/sbin:/usr/local/opt/node@10/bin:x/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin/perl:/opt/X11/bin

Perl error path: /Users/alessandro/Desktop/XCodeProjects/OsmAnd-ios/core/externals/qtbase-ios/upstream.patched.ios.simulator.clang.static/.git

if [ -z PERL ] -> 

所以$PERL是空的。

hmmm,在您提到的三个回购协议中,都没有出现路径中需要PERL的短语。你能把消息的来源缩小一点吗?如果不知道是什么检查导致了该消息,我们就无法真正帮助您满足它。这可能有助于确保
perl-V:'(site)?bin'
输出的两个dir都在路径中。
DEFAULT\u LIBDIRS=“/lib/usr/lib”
中的换行可疑可能来自Qt的安装程序,该安装程序有一个名为include的脚本。您可能希望修改该文件以添加调试信息。它为
$PATH
看到了什么?
$哪个perl
输出了什么?它的错误代码是什么?我可以添加整个过程的完整日志。为了回答您的问题,我将更新帖子。嗯,在您提到的三次回购中,没有任何一次出现“路径中需要perl的短语”。你能把消息的来源缩小一点吗?如果不知道是什么检查导致了该消息,我们就无法真正帮助您满足它。这可能有助于确保
perl-V:'(site)?bin'
输出的两个dir都在路径中。
DEFAULT\u LIBDIRS=“/lib/usr/lib”
中的换行可疑可能来自Qt的安装程序,该安装程序有一个名为include的脚本。您可能希望修改该文件以添加调试信息。它为
$PATH
看到了什么?
$哪个perl
输出了什么?它的错误代码是什么?我可以添加整个过程的完整日志。为了回答你的问题,我会更新帖子。