Click to See Complete Forum and Search --> : can't run configure after adding first_module to ext dir [example in doc]


bbaassiri
10-19-2002, 02:22 AM
1. I have successfully ran

./buildconf ; ./configure ; make

after extracting the source

then for fun, i tried adding the first_module example (http://www.php.net/manual/en/zend.creating.php) to see if i could get my first module/extension to work and configure just barfs on me

please find the attached config.log

any ideas would be greatly appreciated

bbaassiri
10-19-2002, 02:24 AM
heres the file

and the end i get the following error message


checking BOOK: whether to enable the first module... no
: command not found
: command not found
./configure: line 56607: syntax error: unexpected end of file

bbaassiri
10-19-2002, 03:59 PM
ok so i kinda figure it out

this is what you need to do to compile into php your own extension


./buildconf
./configure [--enable|--with]-your_module
make all
make install

but before you do these steps which i ommited that cause the problem was

in the ext directory

you have to run

./ext_kel --extname-your_module

and the files must be in the current directory

what this does it creates a makefile,etc

Hope this helps those that are/had problems compiling their own modules