"Error in TUnixSystem::DynamicPathName: libPythia6[.so |.sl | .dl | .a| .dll] does not exist in .:/home/root/lib
dlopen error: No such file or directory
Load Error: Failed to load Dynamic link library /home/root/lib/libEGPythia6.dll (int) (-1)
*** Interpreter error recovered ***
However, if I go to C:\cygwin\home\root\lib, I do indeed have a file called libEGPythia6.dll and another called libEGPythia6.dll.a . These files are both 469 bytes and appear non-empty when opened in notepad.
I downloaded the pythiaExample.C code from the Internet and saved it into C:\cygwin\home\root\macros as a .C file.
I have ROOT 4.04 on Cygwin-NT-5.1 on Windows XP Pro. At the beginning when I first start Cygwin, I set the paths to
I did something like this on Linux, so I’m not sure it will work on Cygwin.
cd /usr/local
mkdir pythia6
cd pythia6
wget https://root.cern.ch/download/pythia6.tar.gz
tar zxvf pythia6.tar.gz
source Makefile.linux
export PYTHIA6=/usr/local/pythia6
Also, recompile Root after letting Root’s configure script know where it is installed. If possible, do a ldconfig also (works on Windows?). I think there’s a README in the tarball; have a look.
Note that Root 4.03 doesn’t work well with the Pythia 6.2. I strongly recommend you download the latest versions (Pythia 6.3 from the ftp place above, and Root 4.04/02b).
however, this command fails. I get the following warnings:
f771warning: -fPIC ignored for target (all code is position independent)
pythia6319.f: In bock-data unit ‘pydata’"
pythia6319.f:315:warning:
COMMON/(^)PYDAT3/MDCY(500,3), MDME(8000,2), BRAT(8000), KFDP(8000,5)
Initialization of large (294000-unit) aggregate area pydat3 at (^) slow and takes lots of memory during g77 complie
(that thing two more times for different locations)
g77: Installation problem, cannot exec 'as": no such file or directory
g77:Installation problem, cannot exec ‘cc1’ : no such file or directory
bash: gcc: command not found
bash: gcc: command not found
g77: main.o: no such file or directory
g77: tpythia6_called_from_cc.o: no such file or directory
g77: pythia*.o : no such file or directory
then it dies.
I have g77 and I’m pretty sure that I also pulled down g++ when I got cigwin. I checked earlier today and it said I had it. Now what?
Okay, so I tried run ./makePythia6.wingcc and got the following error:
In a Windows Popup Window: Error: Could not start C:\cygwin\home\pythia6\pythia6\makePythia6.wingcc
Then I tried just typing makePythia6.wingcc and got the same errors as before, where it takes too much memory and then gives the same g77 and gcc errors.
Now what?
Thanks for your help. I apologize for my delayed response but I was in Berlin visiting family.
Hi,
You must start ./makePythia6.wingcc from a bash shell or an xterm. I cannot reproduce what you see - do you have cygwin’s g77 and gcc (non-mingw) installed? You can ignore g77’s warnings about mem usage.
Axel.
Hi,
you can use the attached file; just save it to /home/root/build/unix/wingcc_ld.sh. You can ignore ln’s “file exists” warning.
Axel. wingcc_ld.sh.txt (624 Bytes)
I put that file in that directory, though I had to create all of the directories starting with /build/. There was no build directory.
Then the makePythia6.wingcc ran successfully.
However, when I started root and tried the two commands from the beginning of the tutorial (.L pythiaExample.C and makeEventSample(1000)), it still said that the pythia6 library did not exist.
Hi,
as far as I know you need libPythia6.dll (the lib you just built) to build root’s own libEGPythia6.dll. You need the root source distrib, and you need to ./configure --enable-pythia6 --with-pythia6-libdir=/wherever/you/built/the/pythia6-dll
Or you can just use the attached libEGPythia6.dll. Run
cd $ROOTSYS
mv some_dir/root_pythia6_win32gcc.tar.txt some_dir/root_pythia6_win32gcc.tar.bz2
tar xjf some_dir/root_pythia6_win32gcc.tar.bz2 where some_dir is the dir you’ve downloaded the attached root_pythia6_win32gcc.tar.bz2 to.
I’m using root 5.03/01 from June 29; as you are using a different version the attached dlls might or might not work. If they don’t work, you’ll have to build root from sources.
Hi,
here’s a tar.gz, which you extract using tar xzf, instead of tar xjf. Probably renaming it to .txt (to get around the phpBB2 attachment filter) wasn’t such a good idea…
Axel. root_pythia6_win32gcc.tar.gz (441 KB)
Downloaded the new file. Saved it in the home directory. Used gunzip and tar to extract it. It created a new directory bin which contains libEG.dll and libEGPythia6.dll. Then I opened root and tried to run the commands again. The error returned is
dlopen error: No such process
Load Error: Failed to load Dynamic link library /home/bin/./libEG.dll
(int) (-1)
I have a libEG.dll, and a libEGPythia6.dll. Where is this libPythia6.dll?
I checked /home/root/bin and home/root/lib and both libEG.dll and libEGPythia6.dll are there. However when i try the gSystem->Load(“libEG.dll”) it says
dlopen error: no such process
Load Error: Failed to load dynamic link library /home/root/lib/libEG.dll