简体   繁体   English

XAMPP 1.7.3上的Mailaparse

[英]Mailaparse on XAMPP 1.7.3

I'm needing mailparse installed on my xampp. 我需要在我的xampp上安装mailparse。 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. 我已经完成了pecl install mailparse安装,但是却收到未安装mbstring的错误,但实际上是这样。.至少这就是phpinfo()所说的。

So I'm doing /Applications/XAMPP/xamppfiles: sudo ./bin/pecl install --nodeps mailparse 所以我正在做/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? 但是..当启动make时,它会失败,并带有大量错误...如何在xampp安装上安装mailparse? Or maybe I could compile it? 或者也许我可以编译它? but not sure how, not in osx... 但不确定如何,不在osx中​​...

Any ideas? 有任何想法吗?

Here you can see the complete trace done with sudo ./bin/pecl install --nodeps mailparse > dump 在这里,您可以看到使用sudo ./bin/pecl install --nodeps mailparse > dump 完成的完整跟踪 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. 如果有人对该解决方案感兴趣,则必须已安装XAMPP的devel-package ,并牢记i386 arch必须使用的pecl脚本。

sudo su -

export CFLAGS="-arch i386"

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

Try this is if you have installed Php 5.X 如果您已安装Php 5.X,请尝试此操作

If you got error like 如果您遇到类似的错误

Cannot find autoconf. 找不到自动配置。 Please check your autoconf installation and the $PHP_AUTOCONF environment variable. 请检查您的autoconf安装和$ PHP_AUTOCONF环境变量。 Then, rerun this script. 然后,重新运行此脚本。

and then retry. 然后重试。

brew install autoconf

and run the command 并运行命令

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM