I think I may have some similar experience with the straight forward instructions working, as I am trying to load PHP4 on my little Raq2.
The first compiler issue I've come across is that the system is missing a dependant program called "lex" so I am off to find it.
Just keep watching the errors on the compile and you will find what's missing. I compiled webalizer on Friday and that took about 4 dependant libraries to be loaded before it would compile. Now, off to find "lex"...