I have been trying to do a few PECL installations, but all of them return the same type of error. Something related to timezones? Im running RedHat x86_64 es5.

Attempting to install geoip-1.0.7:

root@server [~]# pecl install geoip-1.0.7
downloading geoip-1.0.7.tgz ...
Starting to download geoip-1.0.7.tgz (9,416 bytes)
.....done: 9,416 bytes

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in PEAR/Validate.php on line 489

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /usr/local/lib/php/PEAR/Validate.php on line 489
3 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/geoip-1.0.7
running: /root/tmp/pear/geoip/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/geoip/configure' failed

What is going on? Anyone that could assist please...

link|improve this question
feedback

1 Answer

Try:

mount -o remount,exec,suid /tmp
mount -o remount,exec,suid /var/tmp
link|improve this answer
I already have it installed (Package gcc-4.1.2-50.el5.x86_64 already installed and latest version). Any other ideas? – Petrusa Jan 28 '11 at 17:23
Add output: env | grep CC – alvosu Jan 28 '11 at 17:27
Got the same type of errors when testing "CC=/usr/bin/gcc-4.1 pecl install geoip-1.0.7" – Petrusa Jan 28 '11 at 17:29
removing the noexec flag on both /tmp and /var/tmp – alvosu Jan 28 '11 at 17:37
You can get compiled package php-pecl-geoip from EPEL. Certainly, it's not the solution, but probably you haven't enough time for now to find out what causes the issue. – Denis Jan 28 '11 at 18:44
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.