I'm following the instructions to install PECL Extensions on a Media Temple DV 4 based on these instructions: http://wiki.mediatemple.net/w/(dv):Install_PECL_extensions.
pecl install uploadprogress
pecl install uploadprogress downloading uploadprogress-126.96.36.199.tgz ... Starting to download uploadprogress-188.8.131.52.tgz (9,040 bytes) .....done: 9,040 bytes 4 source files, building running: phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 building in /var/tmp/pear-build-root/uploadprogress-184.108.40.206 running: /root/tmp/pear/temp/uploadprogress/configure checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. ERROR: `/root/tmp/pear/temp/uploadprogress/configure' failed
Does anyone have an idea why it's not working and how to resolve it? Thanks!
PS I tried the compile from source option but that also fails and says:
phpize && ./configure -with-php-config=/usr/bin/php-config Cannot find config.m4. Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
To note, I don't know where config.log is located to be able to look in there for more information yet.
[Resolved] White the PECL install never worked and no one here could find the answer, I was able to compile from source eventually once I realized I hadn't cd into the right directory before configuring.