|
From: David H. <li...@co...> - 2016-03-17 13:51:08
|
Have you tried setting enable_dl to on? http://php.net/manual/en/info.configuration.php#ini.enable-dl Or adding it as an extension that is loaded when PHP starts? http://php.net/manual/en/ini.core.php#ini.extension Note, with either options, you probably need to restart the web server after each change. -David > On Mar 17, 2016, at 6:21 AM, Muriel Keribin <mur...@gm...> wrote: > > Hello, > > I have a problem with the PHP script of Openbabel (I must use it for a project). > > I downloaded it from the git repository and I compile with php binding > ($ cmake -DBUILD_GUI=FALSE -DCMAKE_INSTALL_PREFIX=/usr/local/openbabel -DRUN_SWIG=ON -DPHP_BINDINGS=ON .. ) > The installation seems to work (two test of the 155 failed, without php all tests works but I do not think it is a big issue). But I cannot launch the php script. > I am obtaining the following error : > > PHP Warning: dl(): Dynamically loaded extensions aren't enabled in /usr/local/openbabel/lib/openbabel.php on line 22 > PHP Fatal error: Call to undefined function new_OBMol() in /usr/local/openbabel/lib/openbabel.php on line 7466 > > I tried to preload the libray, (LD_PRELOAD=...) but then it tells me it cannot read the library file. > I changed the new_OBMol() in new OBMol() in the openbabel.php, and then I obtain a error of memory allocation. > > So I am wondering what I am doing wrong, and if I should change some options in the "swig" > > I am using a virtual machine linux (x86_64-linux-gnu), gcc version 4.8.4, php 5.5.9 and swig 2.0.11 > > Thank you and kinds regards, > Muriel > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140_______________________________________________ > OpenBabel-discuss mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss |