Installing ROOT 6 on Mac Pro

I am installing a new version of ROOT 6.06 on my recently upgraded Mac Pro.
I downloaded Xcode and CMake.

Now when try to run . /bootstrap in the CMake 3.8.1 directory, I get the following errors. I am not an expert and somehow can not figure out what to do next!. So need help.


CMake 3.8.1, Copyright 2000-2017 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++
Makefile processor on this system is: make
g++ is GNU compiler
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has stl wstring
g++ does not have <ext/stdio_filebuf.h>

make: `cmake’ is up to date.
loading initial cache file /Users/manjit/cmake-3.8.1/Bootstrap.cmk/InitialCacheFlags.cmake
– The C compiler identification is unknown
– The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:11 (project):
The CMAKE_C_COMPILER:

Error: /usr/bin/xcode-select returned unexpected error.

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable “CC” or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:11 (project):
The CMAKE_CXX_COMPILER:

Error: /usr/bin/xcode-select returned unexpected error.

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

– Configuring incomplete, errors occurred!
See also “/Users/manjit/cmake-3.8.1/CMakeFiles/CMakeError.log”.

Error when bootstrapping CMake:
Problem while running initial CMake

Hello,

I am not sure this is the right forum for this, being most likely an issue with CMake and/or XCode rather then ROOT.
Did you try by googling?

G Ganis

I am trying. Yes, you are right.

This looks like an issue with Xcode. Can you post the path from:

xcode-select --print-path

Most likely the command line tools are not installed and you need to do the following

xcode-select --install

Hello

xcode-select --print-path gives
/Applications/Xcode.app/Contents/Developer

and

xcode-select --install
xcode-select: error: command line tools are already installed, use “Software Update” to install updates.

which I did.

Then I tried to build root from
cmake build

It took almost 4 hours and with several warnings, it ended with following error message;

[ 77%] Linking CXX shared library …/…/lib/libHbook.so
Undefined symbols for architecture x86_64:
hbnam”, referenced from:
THbookFile::SetBranchAddress(int, char const*, void*) in THbookFile.cxx.o
THbookFile::ConvertCWN(int) in THbookFile.cxx.o
"hcdir", referenced from:
THbookFile::cd(char const*) in THbookFile.cxx.o
"hdcofl", referenced from:
THbookFile::Get(int) in THbookFile.cxx.o
"hdelet", referenced from:
THbookFile::Close(char const*) in THbookFile.cxx.o
THbookFile::DeleteID(int) in THbookFile.cxx.o
THbookFile::Get(int) in THbookFile.cxx.o
"hgive", referenced from:
THbookFile::ConvertProfile(int) in THbookFile.cxx.o
THbookFile::Convert1D(int) in THbookFile.cxx.o
THbookFile::Convert2D(int) in THbookFile.cxx.o
"hgiven", referenced from:
THbookFile::ConvertCWN(int) in THbookFile.cxx.o
THbookFile::ConvertRWN(int) in THbookFile.cxx.o
"hgnf", referenced from:
THbookFile::GetEntry(int, int, int, float*) in THbookFile.cxx.o
"hgnpar", referenced from:
THbookFile::ConvertRWN(int) in THbookFile.cxx.o
"hgnt", referenced from:
THbookFile::GetEntry(int, int, int, float*) in THbookFile.cxx.o
"hgntf", referenced from:
THbookFile::GetEntryBranch(int, int) in THbookFile.cxx.o
"hi", referenced from:
THbookFile::Convert1D(int) in THbookFile.cxx.o
"hie", referenced from:
THbookFile::Convert1D(int) in THbookFile.cxx.o
"hif", referenced from:
THbookFile::Convert1D(int) in THbookFile.cxx.o
"hij", referenced from:
THbookFile::Convert2D(int) in THbookFile.cxx.o
"hije", referenced from:
THbookFile::Convert2D(int) in THbookFile.cxx.o
"hijxy", referenced from:
THbookFile::Convert2D(int) in THbookFile.cxx.o
"hix", referenced from:
THbookFile::ConvertProfile(int) in THbookFile.cxx.o
"hldir", referenced from:
THbookFile::ls(char const*) const in THbookFile.cxx.o
"hlimit", referenced from:
THbookFile::THbookFile(char const*, int) in THbookFile.cxx.o
"hnoent", referenced from:
THbookFile::ConvertCWN(int) in THbookFile.cxx.o
THbookFile::ConvertRWN(int) in THbookFile.cxx.o
THbookFile::ConvertProfile(int) in THbookFile.cxx.o
THbookFile::Convert1D(int) in THbookFile.cxx.o
THbookFile::Convert2D(int) in THbookFile.cxx.o
"hntvar2", referenced from:
THbookFile::ConvertCWN(int) in THbookFile.cxx.o
"hntvar3", referenced from:
THbookFile::InitLeaves(int, int, TTreeFormula*) in THbookFile.cxx.o
"hrend", referenced from:
THbookFile::Close(char const*) in THbookFile.cxx.o
"hrin", referenced from:
THbookFile::Get(int) in THbookFile.cxx.o
"hropen", referenced from:
THbookFile::THbookFile(char const*, int) in THbookFile.cxx.o
"rzink", referenced from:
THbookFile::THbookFile(char const*, int) in THbookFile.cxx.o
THbookFile::Get(int) in THbookFile.cxx.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libHbook.so] Error 1
make[1]: *** [hist/hbook/CMakeFiles/Hbook.dir/all] Error 2
make: *** [all] Error 2

waiting to hear for some solution.
Thanks

What do you mean here? Are you followiing these directions?

Did you make fresh build directory after updating xcode?

Yes, I downloaded a version of ROOT 6.04 and made a fresh build directory.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.