I have ROOT 4.04 with --enable-python turned on. But, I have this problem:
root  gSystem->Load( “
dlopen error: /usr/local/src/root/lib/libPyROOT.so: undefined symbol: openpty
Load Error: Failed to load Dynamic link library /usr/local/src/root/lib/libPyROOT.so
*** Interpreter error recovered ***
The pathes are set, the .so file is there.
What can be the problem?
April 12, 2006, 5:48pm
please provide the platform and python version that you are using. openpty is part of your standard c libraries (
libutil.so on linux) that libpythonx.y.so is linked with.
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) with
Python 2.4.1 and with ROOT 4.04/02b
Although I have another pc on which everything works fine:
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
g++ (GCC) 3.4.5 20050809 (prerelease) (Ubuntu 3.4.4-6ubuntu8.1)
Python 2.4.2 and with 5.08/00b
April 14, 2006, 6:24pm
python2.4 should have a shared library build by default, so can you load that one before loading PyROOT? That will drag in libutil, or at least a dummy openpty if your system doesn’t have it:
root gSystem->Load( "libpython2.4.so");
root gSystem->Load( "libPyROOT.so");