Hey peeps.
Complete linux command line noob here......
Working on clients site - they have dedicated host with 1and1 and I am trying to install the json extension because the server has php 5.1.6 and client does not want to updgrade in case it kills his other sites (assured him it won't but he is the boss).
server is running centos (i think v5)
pear was not installed so I ran:
yum install pear
that was fine and 'which pear' reveals that its in usr/bin/pear... happy with that
then I tried to install json...
which pecl
/usr/bin/pecl
pecl install json
downloading json-1.2.1.tgz ...
Starting to download json-1.2.1.tgz (17,780 bytes)
......done: 17,780 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20050922
Zend Extension Api No: 220051025
building in /var/tmp/pear-build-root/json-1.2.1
running: /tmp/tmp50rtMu/json-1.2.1/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... //bin/sed
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
ERROR: `/tmp/tmp50rtMu/json-1.2.1/configure' failed
so that didn't go to well...
when I run phpinfo() on the site the configure demand has ''--without-pear' which I reckon will hurt me...
What on earth do I need to do - all the stuff I have tried i got from googling stuff and I'm now stuck.
Any help will be VERY much appreciated.