Error in execution of program

Hello
I have recently installed the latest root version on my PC. I was trying to execute one root macro but the program breaks. I have attached the erros. When I try to execute the same program in an older version of root , it executes properly. Kindly Help.

root [0] .L histograms.C
root [1] histograms()
dlopen error: libungif.so.4: cannot open shared object file: No such file or directory
Load Error: Failed to load Dynamic link library /home/mansi/Download/root/lib/libASImage.so
Error in TGHScrollBar::TGHScrollBar: arrow_.xpm not found
Error in TGVScrollBar::TGVScrollBar: arrow_
.xpm not found

*** Break *** segmentation violation

===========================================================
There was a crash (#7 0xf722048d in SigHandler(ESignals) ()).
This is the entire stack trace of all threads:

#0 0xffffe430 in __kernel_vsyscall ()
#1 0xf65aa643 in waitpid () from /lib/libc.so.6
#2 0xf6548403 in ?? () from /lib/libc.so.6
#3 0xf667e14b in system () from /lib/libpthread.so.0
#4 0xf7219c8d in TUnixSystem::Exec(char const*) ()
from /home/mansi/Download/root/lib/libCore.so
#5 0xf721f6c6 in TUnixSystem::StackTrace() ()
from /home/mansi/Download/root/lib/libCore.so
#6 0xf722038d in TUnixSystem::DispatchSignals(ESignals) ()
from /home/mansi/Download/root/lib/libCore.so
#7 0xf722048d in SigHandler(ESignals) ()
from /home/mansi/Download/root/lib/libCore.so
#8 0xf7216752 in sighandler(int) ()
from /home/mansi/Download/root/lib/libCore.so
#9
#10 0xe97a88f5 in TGHScrollBar::SetPosition(int) ()
from /home/mansi/Download/root/lib/libGui.so
#11 0xe96ec2cc in TGCanvas::Layout() ()
from /home/mansi/Download/root/lib/libGui.so
#12 0xe96ebe9d in TGCanvas::MapSubwindows() ()
from /home/mansi/Download/root/lib/libGui.so
#13 0xe97368b7 in TGCompositeFrame::MapSubwindows() ()
from /home/mansi/Download/root/lib/libGui.so
#14 0xe97368b7 in TGCompositeFrame::MapSubwindows() ()
from /home/mansi/Download/root/lib/libGui.so
#15 0xe981b16d in TRootCanvas::CreateCanvas(char const*) ()
from /home/mansi/Download/root/lib/libGui.so
#16 0xe981b730 in TRootCanvas::TRootCanvas(TCanvas*, char const*, int, int, unsigned int, unsigned int) () from /home/mansi/Download/root/lib/libGui.so
#17 0xe982681a in TRootGuiFactory::CreateCanvasImp(TCanvas*, char const*, int, int, unsigned int, unsigned int) () from /home/mansi/Download/root/lib/libGui.so
#18 0xe9efc31e in TCanvas::Constructor(char const*, char const*, int, int, int, int) () from /home/mansi/Download/root/lib/libGpad.so
#19 0xe9efcc08 in TCanvas::TCanvas(char const*, char const*, int, int, int, int) () from /home/mansi/Download/root/lib/libGpad.so
#20 0xe9f75b45 in G__G__GPad_147_0_13(G__value*, char const*, G__param*, int)
() from /home/mansi/Download/root/lib/libGpad.so
#21 0xf6a48496 in Cint::G__ExceptionWrapper(int ()(G__value, char const*, G__param*, int), G__value*, char*, G__param*, int) ()
from /home/mansi/Download/root/lib/libCint.so
#22 0xf6aff4dc in G__execute_call ()
from /home/mansi/Download/root/lib/libCint.so
#23 0xf6b00e9f in G__call_cppfunc ()
from /home/mansi/Download/root/lib/libCint.so
#24 0xf6add56f in G__interpret_func ()
from /home/mansi/Download/root/lib/libCint.so
#25 0xf6ac8ce2 in G__getfunction ()
from /home/mansi/Download/root/lib/libCint.so
#26 0xf6afaab3 in G__new_operator ()
from /home/mansi/Download/root/lib/libCint.so
#27 0xf6aa19dc in G__getexpr () from /home/mansi/Download/root/lib/libCint.so
#28 0xf6a8c829 in G__define_var ()
from /home/mansi/Download/root/lib/libCint.so
#29 0xf6b2d35f in G__exec_statement ()
from /home/mansi/Download/root/lib/libCint.so
#30 0xf6adb637 in G__interpret_func ()
from /home/mansi/Download/root/lib/libCint.so
#31 0xf6ac8dbb in G__getfunction ()
from /home/mansi/Download/root/lib/libCint.so
#32 0xf6a9a7a8 in G__getitem () from /home/mansi/Download/root/lib/libCint.so
#33 0xf6a9f092 in G__getexpr () from /home/mansi/Download/root/lib/libCint.so
#34 0xf6b2f247 in G__exec_statement ()
from /home/mansi/Download/root/lib/libCint.so
#35 0xf6a84db5 in G__exec_tempfile_core ()
from /home/mansi/Download/root/lib/libCint.so
#36 0xf6a850e9 in G__exec_tempfile_fp ()
from /home/mansi/Download/root/lib/libCint.so
#37 0xf6b3cba2 in G__process_cmd ()
from /home/mansi/Download/root/lib/libCint.so
#38 0xf71de58c in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) ()
from /home/mansi/Download/root/lib/libCore.so
#39 0xf7127b37 in TApplication::ProcessLine(char const*, bool, int*) ()
from /home/mansi/Download/root/lib/libCore.so
#40 0xf67f48be in TRint::HandleTermInput() ()
from /home/mansi/Download/root/lib/libRint.so
#41 0xf67f4375 in TTermInputHandler::Notify() ()
from /home/mansi/Download/root/lib/libRint.so
#42 0xf67f70e4 in TTermInputHandler::ReadNotify() ()
from /home/mansi/Download/root/lib/libRint.so
#43 0xf721d3d3 in TUnixSystem::CheckDescriptors() ()
from /home/mansi/Download/root/lib/libCore.so
#44 0xf721da26 in TUnixSystem::DispatchOneEvent(bool) ()
from /home/mansi/Download/root/lib/libCore.so
#45 0xf718ef11 in TSystem::InnerLoop() ()
from /home/mansi/Download/root/lib/libCore.so
#46 0xf7191e1b in TSystem::Run() ()
from /home/mansi/Download/root/lib/libCore.so
#47 0xf7125327 in TApplication::Run(bool) ()
from /home/mansi/Download/root/lib/libCore.so
#48 0xf67f6bc4 in TRint::Run(bool) ()
from /home/mansi/Download/root/lib/libRint.so
#49 0x08048db5 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.

#10 0xe97a88f5 in TGHScrollBar::SetPosition(int) ()
from /home/mansi/Download/root/lib/libGui.so
#11 0xe96ec2cc in TGCanvas::Layout() ()
from /home/mansi/Download/root/lib/libGui.so
#12 0xe96ebe9d in TGCanvas::MapSubwindows() ()
from /home/mansi/Download/root/lib/libGui.so
#13 0xe97368b7 in TGCompositeFrame::MapSubwindows() ()
from /home/mansi/Download/root/lib/libGui.so
#14 0xe97368b7 in TGCompositeFrame::MapSubwindows() ()
from /home/mansi/Download/root/lib/libGui.so
#15 0xe981b16d in TRootCanvas::CreateCanvas(char const*) ()
from /home/mansi/Download/root/lib/libGui.so
#16 0xe981b730 in TRootCanvas::TRootCanvas(TCanvas*, char const*, int, int, unsigned int, unsigned int) () from /home/mansi/Download/root/lib/libGui.so
#17 0xe982681a in TRootGuiFactory::CreateCanvasImp(TCanvas*, char const*, int, int, unsigned int, unsigned int) () from /home/mansi/Download/root/lib/libGui.so
#18 0xe9efc31e in TCanvas::Constructor(char const*, char const*, int, int, int, int) () from /home/mansi/Download/root/lib/libGpad.so
#19 0xe9efcc08 in TCanvas::TCanvas(char const*, char const*, int, int, int, int) () from /home/mansi/Download/root/lib/libGpad.so

Root > Function histograms() busy flag cleared

Have you checked if the library libungif.so.4 is present on your system? It should be in /usr/lib/ or in a similar directory. If it is not present try installing libgif4 or equivalent library of your linux distribution.

Cheers

EDIT: check for the library in /home/mansi/Download/root/lib/ also if it was shipped together with root.

Hello

Yes i have checked . I have that particular library in my /usr/lib directory.

Is there any other library that i should install ???

Kindly Help.

Thanks

ROOT doesn’t seem to find libungif.so.4 so maybe it’s some problem with ROOT’s library path? I’m no expert but my guess is that libASImage.so fails to load since ROOT can’t find libungif.so.4.

Maybe you could try playing around with LD_LIBRARY_PATH, but /usr/lib/ should definitely be searched by default. Anyway it doesn’t hurt to try to start root with LD_LIBRARY_PATH="/usr/lib" root You could also run ldconfig -p | grep libungif to see if the library is listed, might give you some clue. Otherwise I don’t think I can help. There is no libungif.so present on my system at all so maybe compiling root yourself is an option (and thereby remove support for that library).

Hope you can solve it