cmake: command not found on macOS
Asked Answered
J

4

34

After adding this line in my Podfile:

pod 'PiwikTracker', :git => 'https://github.com/manuroe/matomo-sdk-ios.git', :branch => 'feature/CustomVariables'  

The below error is occuring:

[!] /bin/bash -c 
set -e
echo `pwd`
sed -i '' 's/include <\(cmark.*\)>/include "\1"/' src/cmark.h
mkdir -p build; cd build && cmake -G Xcode ..

/Users/mac1/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-ec027
/bin/bash: line 4: cmake: command not found

Can anyone help me with this issue?

Jarrett answered 27/9, 2018 at 7:16 Comment(0)
D
87

Use Brew to install cmake

brew install cmake
Discursion answered 14/6, 2020 at 17:35 Comment(0)
I
9

Install Brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Use Brew to install cmake

brew install cmake 
Ics answered 10/6, 2021 at 13:8 Comment(0)
G
1

To use above library you can try as mention below :

You want to add pod 'PiwikTracker', '~> 4.4' similar to the following to your Podfile:

target 'MyApp' do
  pod 'PiwikTracker', '~> 4.4'
end

Then run a pod install inside your terminal, or from CocoaPods.app.

Alternatively to give it a test run, run the command:

pod try PiwikTracker

for more detail try this link : PiwikTracker

Hope this will helps!

Grappling answered 27/9, 2018 at 9:3 Comment(0)
E
0

as others mention here, you should write

brew install cmake

but in my case it was not enough to skip this error so after installing, you may need to link it:

brew link libpq --force
Explode answered 14/7 at 12:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.