View Full Version : Can not install mailparse
brwatters
09-18-2007, 09:42 PM
Ok .. so much banging of head against wall ..
CentOS v5 with all updates
php v5.1.6
Apache 2.2.3
In one of my many attempts at getting mailparse to install I keep getting this error ..
[root@helpdesk html]# pecl install mailparse
pecl/mailparse requires PHP extension "mbstring"
No valid packages found
install failed
Via phpinfo we are able to see mbstring enabled without issue .. Any ideas on how to proceed??
BRW
brwatters
09-18-2007, 09:53 PM
Found the solution for the above issue
rpm -Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum install php-pecl-mailparse php-mbstring
BRW
jstanden
09-18-2007, 11:39 PM
Hey Brian,
Sorry I didn't jump on this post sooner and save you some trouble.
Yeah, the recent versions of PHP5 have a bug with the mbstring headers:
http://pecl.php.net/bugs/bug.php?id=6239
There are a couple ways around it if you're compiling, but you found the best one overall -- using the package manager (yum, apt-get, rpm) for your distro.
The link above explains how to tweak the source files if you're compiling.
kblackwel
10-23-2007, 08:13 PM
Just as a side note, ubuntu or debian does not have this package avaliable. I ended up installing through the pear installer.
pear install mailparser
Hope that helps.
P.S. You'll need to install php-dev and make. You'll need other packages, but apt will take care of those.
jstanden
10-24-2007, 11:11 PM
On Debian Etch I used PECL (same as PEAR in this case):
pecl install mailparseYour other packages are still required. :)
I have problem to install the mailpare to Suse. I got the same
error informaiton:
pecl/mailparse requires PHP extension "mbstring"
No valid packages found
install failed
thanks
jstanden
11-27-2007, 12:32 AM
Hey jye!
Does your phpinfo() show the 'mbstring' extension is actually installed?
If so, and your 'mailparse' installation is giving you that error message, it's safe to edit the 'mbstring' source.
In the php/ext/mailparse/ directory, edit mailparse.c and change the lines:
/* just in case the config check doesn't enable mbstring automatically */
#if !HAVE_MBSTRING
#error The mailparse extension requires the mbstring extension!
#endif
to:
/* just in case the config check doesn't enable mbstring automatically */
#if !HAVE_MBSTRING && false
#error The mailparse extension requires the mbstring extension!
#endif
peter_mcc
01-09-2008, 03:18 AM
I'm stuck on this one as well.
phpinfo() says mbstring is installed, pecl says mbstring is installed if I try to install it. pecl says mbstring is required but not installed if I try to install mailparse!!
I'm using ClarkConnect 4.2 with PHP 5.1.6 (apparently the latest version that Red Hat enterprise 5, which CC is based on, supports).
I've tried all the options I can find, including Jeff's idea of changing the source file, but can't get it to work.
One thing I noticed - if you go
pecl install -n mailparse
it will ignore the dependancies.
That's great but... I then get stuck on the bugs in PHP 5.1.6 to do with missing mbstring header files (eg http://bugs.php.net/bug.php?id=36136 ). ie it tries to compile but fails.
Can anyone email me the mbstring header files? FRom looking at bug reports it seems that will fix it.
Regards
Peter
devilsoulblack
02-25-2008, 05:11 AM
hi a try cerberus for testing how its work
but a have this issues
[root@srv1 /]# pecl install mailparser
No releases available for package "pecl.php.net/mailparser"
Cannot initialize 'channel://pecl.php.net/mailparser', invalid or missing package file
Package "channel://pecl.php.net/mailparser" is not valid
install failed
[root@srv1 /]# pear install mailparser
No releases available for package "pear.php.net/mailparser"
Cannot initialize 'channel://pear.php.net/mailparser', invalid or missing package file
Package "channel://pear.php.net/mailparser" is not valid
install failed
[root@srv1 /]#
any idea ?
a have:
WHM 11.15.0 cPanel 11.18.1-C20683
CENTOS Enterprise 5 x86_64 on standard - WHM X v3.1.0
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.5
thanks
Hildy
02-25-2008, 07:33 PM
[root@srv1 /]# pecl install mailparser
No releases available for package "pecl.php.net/mailparser"
Cannot initialize 'channel://pecl.php.net/mailparser', invalid or missing package file
Package "channel://pecl.php.net/mailparser" is not valid
install failed
[root@srv1 /]# pear install mailparser
No releases available for package "pear.php.net/mailparser"
Cannot initialize 'channel://pear.php.net/mailparser', invalid or missing package file
Package "channel://pear.php.net/mailparser" is not valid
install failed
Try "mailparse" instead of "mailparser"...
devilsoulblack
02-25-2008, 08:03 PM
Try "mailparse" instead of "mailparser"...
happen the same
[root@srv1 ~]# pecl install mailparse
downloading mailparse-2.1.3.tgz ...
Starting to download mailparse-2.1.3.tgz (36,820 bytes)
..........done: 36,820 bytes
9 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
/usr/local/bin/phpize: /tmp/pear/temp/mailparse/build/shtool: /bin/sh: bad interpreter: Permission denied
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.
ERROR: `phpize' failed
Hildy
02-25-2008, 09:08 PM
No, it's not the same error. The first error was telling you that the package name wasn't valid, because you had misspelled it. The current error is complaining about your phpize environment variables. Unfortunately, we cannot provide detailed step-by-step instructions for setting up the necessary environment for every possible scenario out there. There is additional information available on the wiki at http://wiki.cerberusdemo.com/index.php/Installing_PHP_Mailparse You are welcome to add helpful notes there, too, if you get it working for your system.
That said, if you just want to try it out, I would recommend going to http://cerberusdemo.com/ and signing up for a free online trial, or we have hosted Cerberus 4 installs available here: http://cerberusweb.com/buy
For cPanel 11 running on CentOS, follow the instructions in the following thread and you'll be all set:
http://www.cerb4.com/forums/showthread.php?t=518&highlight=centos+cpanel
sc123
05-04-2008, 05:24 AM
I was stuck with the same error as the OP. I'm using a Fedora Core 7 box, though. If I run "yum install mbstring" it says I have 5.2.4-1 already installed. I added the two extension lines to my /etc/php.ini, but the install check still said mailparse was missing.
Finally I remembered to restart Apache - /etc/init.d/http restart. Problem solved, duh :)
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.