I am new to Root, and trying to set it up on my Windows machine using Cygwin and gcc. I have set the paths, and when I type the "root" command in my X-terminal it gives me the welcome-to-Root with the following error:
*** Interpreter error recovered ***
dlopen error: Permission denied
Load Error: Failed to load Dynamic link library /home/Emily/root/lib/libMinuit.dll
dlopen error: Permission denied
Load Error: Failed to load Dynamic link library /home/Emily/root/lib/libPostscript.dll
dlopen error: Permission denied
Load Error: Failed to load Dynamic link library /home/Emily/root/lib/libHtml.dll
I have checked that these three libraries exist, but cannot find any information on why I am getting a link error. Has anyone encountered this before, or have any suggestions? Thanks!
~ Emily
these files are probably not marked as executables (you can change that by running “chmod a+x %ROOTSYS/lib/*.dll”) or there is something else that’s wrong - maybe the links in $ROOTSYS/lib point to nowhere. Could you send the output of “ls -l $ROOTSYS/{lib,bin}; echo $ROOTSYS”? (All commands I stated here are to be issued in a bash window or xterm.)
in principle Philippe is right - but the cygwin build is not really windows It really looks in lib first. I can reproduce what Emily sees by “touch $ROOTSYS/lib/libMinuit.dll”.
Emily, you should have links in your $ROOTSYS/lib dir, instead of empty files. I don’t understand where they come from. Did you run out of disk space? What root, what windows, and what cygwin (“uname -a”) version are you using? Did you build root yourself ("./configure win32gcc; make"), or did you install a binary release?
I am running Windows XP Pro; Root version 4.04 for Windows with Cygwin and gcc; and Cygwin_NT-5.1 (at least that’s what “uname -a” in the bash shell gives). I downloaded the Root binaries and unpacked them into Cygwin’s home folder.
I’ve been experimenting a bit, and if I download the binaries for an older version of Root (4.02 and 4.00) then fewer of the *.dll files show up as empty. I’ve also tried unpacking to a different folder, but that doesn’t seem to change anything. I have plenty of drivespace, so I’m not sure what the issue is.
copy&paste the following into an xterm or bash window:
cd $ROOTSYS/lib
for f in ../bin/*.dll; do ln -fs $f; ln -fs $f $(basename $f).a; done That should fix it. I’ll try to figure out why the links didn’t make it onto your disk…