Segmentation Violation after installation of ROOT (MacOS)

Hi ROOT experts,

I’m new to the forum, so I apologies if this topic is incorrectly placed.
I have recently tried installing root on a new laptop (running with mac OS X lion 10.7); the installation went fine. I downloaded the binary entitled “Mac OS X 10.7 x86-64 with clang v3, version 5.32.03”. I have set the env variables in my .bashrc to:

export ROOTSYS=/Users/Richard/root
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib/:$LD_LIBRARY_PATH

and in my .profile:

source $ROOTSYS/bin/thisroot.sh

I then open a new X terminal and type root and I can see the usual standard output. When I type, for example, “TBrowser a”, I get the following message:

dlopen error: dlopen(/Users/Richard/root/lib/libGraf.so, 9): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /Users/Richard/root/lib/libGraf.so
Reason: image not found
Load Error: Failed to load Dynamic link library /Users/Richard/root/lib/libGraf.so
Error in TCint::AutoLoad: failure loading dependent library libGraf.so for class TPad
dlopen error: dlopen(/Users/Richard/root/lib/libGpad.so, 9): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /Users/Richard/root/lib/libGraf.so
Reason: image not found
Load Error: Failed to load Dynamic link library /Users/Richard/root/lib/libGpad.so
Error in TCint::AutoLoad: failure loading library libGpad.so for class TPad
dlopen error: dlopen(/Users/Richard/root/lib/libGui.so, 9): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /Users/Richard/root/lib/libGraf.so
Reason: image not found
Load Error: Failed to load Dynamic link library /Users/Richard/root/lib/libGui.so
Error in TCint::AutoLoad: failure loading library libGui.so for class TRootGuiFactory
Error in TPluginHandler::SetupCallEnv: class TRootGuiFactory not found in plugin Gui
dlopen error: dlopen(/Users/Richard/root/lib/libGX11TTF.so, 9): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /Users/Richard/root/lib/libGX11TTF.so
Reason: image not found
Load Error: Failed to load Dynamic link library /Users/Richard/root/lib/libGX11TTF.so
Error in TCint::AutoLoad: failure loading library libGX11TTF.so for class TGX11TTF

*** Break *** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:

Thread 1 (process 19089):
#0 0x00007fff8cbb4168 in wait4 ()
#1 0x00007fff864185f5 in system ()
#2 0x000000010a52ea06 in TUnixSystem::StackTrace ()
#3 0x000000010a52c797 in TUnixSystem::DispatchSignals ()
#4
#5 0x000000010a45d599 in TApplication::InitializeGraphics ()
#6 0x000000010a466c20 in TBrowser::TBrowser ()
#7 0x000000010a64fa89 in G__G__Base1_79_0_3 ()
#8 0x000000010ad1eb3b in Cint::G__ExceptionWrapper ()
#9 0x000000010adce07a in G__execute_call ()
#10 0x000000010adce65b in G__call_cppfunc ()
#11 0x000000010ada2765 in G__interpret_func ()
#12 0x000000010ad8bcb0 in G__getfunction ()
#13 0x000000010ad68173 in G__define_var ()
#14 0x000000010adfcfe8 in G__exec_statement ()
#15 0x000000010ad62818 in G__exec_tempfile_core ()
#16 0x000000010ad623c9 in G__exec_tempfile_fp ()
#17 0x000000010ae0c117 in G__process_cmd ()
#18 0x000000010a4f4b82 in TCint::ProcessLine ()
#19 0x000000010a45fe87 in TApplication::ProcessLine ()
#20 0x000000010b449f9c in TRint::HandleTermInput ()
#21 0x000000010b448647 in TTermInputHandler::Notify ()
#22 0x000000010b44a80d in TTermInputHandler::ReadNotify ()
#23 0x000000010a52bc4e in TUnixSystem::CheckDescriptors ()
#24 0x000000010a52b4a5 in TUnixSystem::DispatchOneEvent ()
#25 0x000000010a4b5add in TSystem::InnerLoop ()
#26 0x000000010a4b590e in TSystem::Run ()
#27 0x000000010a460984 in TApplication::Run ()
#28 0x000000010b44994a in TRint::Run ()
#29 0x000000010a450a3f in main ()

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

#5 0x000000010a45d599 in TApplication::InitializeGraphics ()
#6 0x000000010a466c20 in TBrowser::TBrowser ()

Root >

And when running tutorial macros such as benchmarks.C, I get the following:

dlopen error: dlopen(/Users/Richard/root/lib/libGraf.so, 9): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /Users/Richard/root/lib/libGraf.so
Reason: image not found
Load Error: Failed to load Dynamic link library /Users/Richard/root/lib/libGraf.so
Error in TCint::AutoLoadCallback: failure loading dependent library libGraf.so for class TCanvas
dlopen error: dlopen(/Users/Richard/root/lib/libGpad.so, 9): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /Users/Richard/root/lib/libGraf.so
Reason: image not found
Load Error: Failed to load Dynamic link library /Users/Richard/root/lib/libGpad.so
Error in TCint::AutoLoadCallback: failure loading library libGpad.so for class TCanvas
Error: Can’t call TCanvas::TCanvas(“bench”,“Benchmarks Summary”,-1000,50,200,500) in current scope benchmarks.C:21:
Possible candidates are…
(in TCanvas)
(const class TCanvas*)0x7f85f12435f0
*** Interpreter error recovered ***

NOTE: I have the current Xcode command line tools package.

Can anyone help with my problem?

Regards
Richard