running problems

im trying to run to get zlib and other things installed.
having an issue lol
get command not found.
chmod 777
chown to root also
what could it be?
i run sh also tried ./

got it running but now i get line 184: /root/php5/bin/phpize: No such file or directory
where do i need to run this script? any special folder?