Mailaparse on XAMPP 1.7.3

主宰稳场 提交于 2019-12-13 05:40:03

问题


I'm needing mailparse installed on my xampp. I've done pecl install mailparse but I get an error that mbstring is not installed, but it is.. Or at least that is what phpinfo() says.

So I'm doing /Applications/XAMPP/xamppfiles: sudo ./bin/pecl install --nodeps mailparse

BUT.. when the make starts it fails with a big load of errors... How can I install mailparse on a xampp installation? Or maybe I could compile it? but not sure how, not in osx...

Any ideas?

Here you can see the complete trace done with sudo ./bin/pecl install --nodeps mailparse > dump


FIXED! if someone is interested on the solution, you must have installed devel-package of XAMPP, and run the pecl script having in mind that must be comipled for i386 arch.

sudo su -

export CFLAGS="-arch i386"

/Applications/XAMPP/xamppfiles/bin/pecl install --nodeps mailparse

回答1:


sudo /Applications/XAMPP/xamppfiles/bin/pear install pecl/mailparse

From: http://wiki.cerb4.com/wiki/Installing_PHP_Mailparse#Mac_OS_X_.28XAMPP.29




回答2:


sudo /Applications/XAMPP/xamppfiles/bin/pear install pecl/mailparse-2.1.6

Try this is if you have installed Php 5.X

If you got error like

Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.

and then retry.

brew install autoconf

and run the command



来源:https://stackoverflow.com/questions/5666245/mailaparse-on-xampp-1-7-3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!