Issue running a program that links to root

I am brand new to using root - only installed it yesterday and am still feeling things out. I am using Ubuntu 12.04, and I know I have seen some similar issues online, but I was hoping for some clarification. As far as my issue, I am pasting the output below. Essentially compiled readGeom with a Makefile provided to me using the command “make -f M.readGeom”, and then try to run it. From what I have read, this is a library linking issue but I’m not quite sure how to fix it. Any imput would be appreciated.

environmental variables:

root@josh-Z68XP-UD3:/usr/local/AraSim# echo $ROOTSYS /usr/local/root root@josh-Z68XP-UD3:/usr/local/AraSim# echo $LD_LIBRARY_PATH /usr/local/root/lib:/lib: root@josh-Z68XP-UD3:/usr/local/AraSim# echo $PATH /usr/local/root/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

output from running the program:

[code]root@josh-Z68XP-UD3:/usr/local/AraSim# ./readGeom
construct detector
Warning in TClass::TClass: no dictionary for class TTree is available
Warning in TClass::TClass: no dictionary for class TBranchElement is available
Warning in TClass::TClass: no dictionary for class TBranch is available
Warning in TClass::TClass: no dictionary for class TLeafElement is available
Warning in TClass::TClass: no dictionary for class TLeaf is available
Warning in TClass::TClass: no dictionary for class TBranchRef is available
AraFile
Error in TBufferFile::ReadClassBuffer: class: TNamed, attempting to access a wrong version: 19, object skipped at offset 54
Error in TBufferFile::CheckByteCount: object of class TNamed read too few bytes: 2 instead of 206455
Error in TBufferFile::ReadClassBuffer: class: TNamed, attempting to access a wrong version: 19, object skipped at offset 56
Error in TBufferFile::CheckByteCount: object of class TNamed read too few bytes: 2 instead of 85101
AraTree
Error in TNamed::detector:
Error in TNamed::settings:
Error in TNamed::spectra:
Error in TNamed::icemodel:
Error in TNamed::trigger:
Error in TNamed::event:
Error in TNamed::report:
branch detector
Error in TFile::WriteTObject: Directory outputs/AraOut.root is not writable
getevent
I’m here.

*** Break *** segmentation violation

===========================================================
There was a crash (#7 0xb713b61b in SigHandler(ESignals) () from /usr/local/root/lib/libCore.so).
This is the entire stack trace of all threads:

#0 0xb76e2424 in __kernel_vsyscall ()
#1 0xb58c99e3 in waitpid () from /lib/i386-linux-gnu/libc.so.6
#2 0xb5850ff3 in ?? () from /lib/i386-linux-gnu/libc.so.6
#3 0xb59c9e2b in system () from /lib/i386-linux-gnu/libpthread.so.0
#4 0xb713400b in TUnixSystem::Exec(char const*) () from /usr/local/root/lib/libCore.so
#5 0xb71389e0 in TUnixSystem::StackTrace() () from /usr/local/root/lib/libCore.so
#6 0xb713b507 in TUnixSystem::DispatchSignals(ESignals) () from /usr/local/root/lib/libCore.so
#7 0xb713b61b in SigHandler(ESignals) () from /usr/local/root/lib/libCore.so
#8 0xb71320e2 in sighandler(int) () from /usr/local/root/lib/libCore.so
#9
#10 0x08099810 in Detector::GetGain(double, double, double, int) ()
#11 0x08076211 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
http://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.

#10 0x08099810 in Detector::GetGain(double, double, double, int) ()
#11 0x08076211 in main ()

[/code]