Fatal error: 'string' file no found in macbook

Hello,Here is a problem when starting ROOT in mac:

My clang++ version is
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

My ROOT version is 6.10/04
My mac version is Sierra10.12.6

I’m totally a rookie both in Linux coding and HEP…Thank you! :sob:

Your ROOT installation (and/or your c++ compiler installation) is somehow broken.

Can you compile a simple c++ program that uses std::string?
How did you install ROOT?

Hi,
Thank you for reminding me!
I installed at https://root.cern.ch/content/release-61004 at first,
Now I reinstalled it use brew at
https://alexpearce.me/2016/02/root-on-os-x-el-capitan/

But here comes another problem…
root [0] TF1 test1 = new TF1("","xsin(x)",0,10);
root [1] test1->Draw();
Error in TSystem::ExpandFileName: input: $ROOTSYS/icons/Root6Icon.png, output: $ROOTSYS/icons/Root6Icon.png
Info in TCanvas::MakeDefCanvas: created default TCanvas with name c1
Error in TSystem::ExpandFileName: input: $ROOTSYS/fonts/symbol.ttf, output: $ROOTSYS/fonts/symbol.ttf
Error in FontCache::SelectSymbolFont: symbol.ttf file not found
Error in TSystem::ExpandFileName: input: $ROOTSYS/fonts/symbol.ttf, output: $ROOTSYS/fonts/symbol.ttf
Error in FontCache::SelectSymbolFont: symbol.ttf file not found

But the figure can be plotted.

Anyway, thank you for reminding me …

Does $ROOTSYS point to the first or the second installation of ROOT?

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