Well, I knew the problem was not my not knowing.
What I did:
Went into webadmin and ripped out the GD stuff that was there. Turns out there was a php rpm in there too that was dependant on it.
I never installed this php via rpm (yuk). I assume the initial tech did. So I ripped that out.
rpm -i GD.rpm
then redid it all and presto. No errors and this script that uses GD works.
Thanks for confirming that I was doing things right. It lead me to snooping which = solution 🙂
Thanks