I'm trying to install mailparse and no matter how I try to install it I always get errors:
Using PECL:
[root@x mailparse-2.1.6]# /usr/local/bin/pecl install mailparse
downloading mailparse-2.1.6.tgz ...
Starting to download mailparse-2.1.6.tgz (36,538 bytes)
..........done: 36,538 bytes
9 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
shtool at '/tmp/pear/temp/mailparse/build/shtool' does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.
ERROR: `phpize' failed
phpize exists but it's not in the default directory it would be in if you installed php from yum
[root@x mailparse-2.1.6]# ./configure /usr/local/bin/php-config configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /usr/local/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for /usr/local/bin/php-config-cc... no
checking for /usr/local/bin/php-config-gcc... no
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... /usr/local/bin/php-config
configure: error: invalid value of canonical build
No idea what this error even is...
Anyone have any ideas? I have to have this installed in order to setup my mail in my support ticket system.