What are the steps needed to compile in support for syck into php 5.2.x on a 64 bit centos 5.3 system?
I haven't seen this another good FAQ on this, so I figured I would drop both the question and answer here since it took me a good while to figure out. If anyone appreciates, please upvote both Q & A so I know to keep posting things like this here.
Notes: This was a 64 bit centos 5.3 box
So first I had to download source for both syck and php. I extracted them to ~/syck and ~/php5 respectively .
if you just try to configure php5 further adding in syck, you will see there is no configure option to add it in:
next, I set up some compiling options
export CFLAGS="-fPIC -O3" this gives me level 3 optimization and a processor independent compile.
then build syck
now I copy the php extension dir for syck over into php's ext area
Then I changedir back over to php (~/php5)
Now that syck is in php's ext dir, i can run buildconf and it will pick it up and put it into the configure options for php5
If you are interested to see what happens, you can run the buildconf without the --force, it won't hurt anything, but will fail to run
Now I get
So php will now let me add syck as a statically compiled module.. w000t!!
Finally:
Then it's make time!!!
Done!! woot
To check my work:
yup php -m sees it as a module!