Re: dl(): Invalid library (maybe not a PHP library)

From: Date: Thu, 04 Dec 2003 20:40:15 +0000
Subject: Re: dl(): Invalid library (maybe not a PHP library)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171891@lists.php.net to get a copy of this message
* Thus wrote Anas Mughal (am786@optonline.net): > I have followed the instructions in the PHP documentation on how to > build a custom dynamic extension. After running ext_skel, I did NOT add > any custom methods. I built the extension using the followind commands: > > Compiling cc -fpic -DCOMPILE_DL=1 -I/usr/local/include -I. -I.. > -I../Zend -c -o <your_object_file> <your_c_file> > > Linking cc -shared -L/usr/local/lib -rdynamic -o <your_module_file> > <your_object_file(s)> 1. edit the config.m4 and remove the dnl's on the lines that look somethign like: dnl PHP_ARG_ENABLE(baz, whether to enable baz support, dnl Make sure that the comment is aligned: dnl [ --enable-baz Enable baz support]) 2. ./phpize Creates the configure environment 3. ./configure --enable-baz 4. make 5. make install the make install just copies the file in the modules/ dir to your php module directory. HTH, Curt -- If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PHP

« previous php.general (#171891) next »