Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
0 votes

Having trouble with cmake on Mac. Don't know much about UNIX. I previously typed in git init to eliminate some other errors. Not sure if that was a mistake Here is output from Terminal.

MacCan:Cadabra james$ cmake "/Users/james 1/Cadabra" -- The C compiler identification is AppleClang 8.0.0.8000042 -- The CXX compiler identification is AppleClang 8.0.0.8000042 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done fatal: Needed a single revision fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' fatal: your current branch 'master' does not have any commits yet CMake Error at CMakeLists.txt:41 (execute): Unknown CMake command "execute".

-- Configuring incomplete, errors occurred! See also "/Users/james 1/Cadabra/CMakeFiles/CMakeOutput.log".

in Installation trouble by

1 Answer

0 votes

Instead of downloading the .zip file from github, clone the repository by using

git clone https://github.com/kpeeters/cadabra2

The zip file does not contain all the info which the build process needs.

Thanks for letting me know, I will add this to the OS X instructions.

by (80.3k points)
...