在 macOS 上的 MAMP 或 XAMPP 上安装 phalcon 时出现错误

2024-02-13

我正在尝试在 macOS 上的 xampp 或 MAMP 上安装 phalcon

请告诉我如何在 MAMP 上正确安装 phalcon(我在 XAMPP 上安装时遇到相同的错误)

我用这个教程https://madebyextreme.com/insights/how-to-install-phalcon-php-framework-with-mamp-on-osx https://madebyextreme.com/insights/how-to-install-phalcon-php-framework-with-mamp-on-osx

请帮我!我使用 php 7.3.7

errors:

./install: line 133: aclocal: command not found
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
appending configuration tag "CXX" to libtool
mkdir .libs
 gcc -I. -I/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits -DPHP_ATOM_INC -I/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/include -I/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/main -I/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits -I/Applications/XAMPP/xamppfiles/include/php -I/Applications/XAMPP/xamppfiles/include/php/main -I/Applications/XAMPP/xamppfiles/include/php/TSRM -I/Applications/XAMPP/xamppfiles/include/php/Zend -I/Applications/XAMPP/xamppfiles/include/php/ext -I/Applications/XAMPP/xamppfiles/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -mtune=native -O2 -fomit-frame-pointer -c /Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c  -fno-common -DPIC -o .libs/phalcon.o
In file included from /Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:52:
./phalcon.zep.h:5760:47: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
        ZEND_ARG_OBJ_INFO(0, uri, Psr\\Http\\Message\\UriInterface, 0)
                                                     ^
./phalcon.zep.h:10328:47: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
        ZEND_ARG_OBJ_INFO(0, uri, Psr\\Http\\Message\\UriInterface, 0)
                                                     ^
./phalcon.zep.h:10341:122: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
  ...0, 1, Psr\\Http\\Message\\UriInterface, 0)
                              ^
./phalcon.zep.h:19544:100: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_urlinterface_setbasepath, 0, 1, Phalcon\\Url\\UrlInterface, 0)
                                                                                                   ^
./phalcon.zep.h:19544:105: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_urlinterface_setbasepath, 0, 1, Phalcon\\Url\\UrlInterface, 0)
                                                                                                        ^
./phalcon.zep.h:19556:99: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_urlinterface_setbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
                                                                                                  ^
./phalcon.zep.h:19556:104: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_urlinterface_setbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
                                                                                                       ^
./phalcon.zep.h:30753:139: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
  ...0, 1, Phalcon\\Http\\Message\\UploadedFile, 0)
                                  ^
./phalcon.zep.h:30815:129: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
  ...0, 2, Phalcon\\Http\\Message\\Uri, 0)
                                  ^
./phalcon.zep.h:31150:134: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
  ...0, 1, Psr\\Http\\Message\\UploadedFileInterface, 0)
                              ^
./phalcon.zep.h:31241:116: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withfragment, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
                                                                                                                   ^
./phalcon.zep.h:31249:112: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withpath, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
                                                                                                               ^
./phalcon.zep.h:31257:112: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withport, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
                                                                                                               ^
./phalcon.zep.h:31265:113: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withquery, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
                                                                                                                ^
./phalcon.zep.h:31273:114: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withscheme, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
                                                                                                                 ^
./phalcon.zep.h:31281:116: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withuserinfo, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
                                                                                                                   ^
./phalcon.zep.h:31290:112: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withhost, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
                                                                                                               ^
./phalcon.zep.h:31422:116: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_urifactory_createuri, 0, 0, Psr\\Http\\Message\\UriIn...
                                                                                                                   ^
./phalcon.zep.h:45839:89: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_tag_geturlservice, 0, 0, Phalcon\\Url\\UrlInterface, 0)
                                                                                        ^
./phalcon.zep.h:45839:94: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_tag_geturlservice, 0, 0, Phalcon\\Url\\UrlInterface, 0)
                                                                                             ^
./phalcon.zep.h:47203:87: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setbasepath, 0, 1, Phalcon\\Url\\UrlInterface, 0)
                                                                                      ^
./phalcon.zep.h:47203:92: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setbasepath, 0, 1, Phalcon\\Url\\UrlInterface, 0)
                                                                                           ^
./phalcon.zep.h:47215:86: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
                                                                                     ^
./phalcon.zep.h:47215:91: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
                                                                                          ^
./phalcon.zep.h:47227:92: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setstaticbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
                                                                                           ^
./phalcon.zep.h:47227:97: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setstaticbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
                                                                                                ^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:8282:9: warning: nonnull parameter 'ce' will
      evaluate to 'true' on first encounter [-Wpointer-bool-conversion]
        while (ce) {
        ~~~~~  ^~
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:3061:83: note: declared 'nonnull' here
static int zephir_has_constructor_ce(const zend_class_entry *ce) ZEPHIR_ATTR_PURE ZEPHIR_ATTR_NONNULL;
                                                                                  ^
./php_phalcon.h:73:45: note: expanded from macro 'ZEPHIR_ATTR_NONNULL'
# define ZEPHIR_ATTR_NONNULL __attribute__((nonnull))
                                            ^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:12759:74: warning: format specifies type 'long'
      but the argument has type 'zend_long' (aka 'long long') [-Wformat]
                php_error_docref(NULL, E_WARNING, "max(%ld) is smaller than min(%ld)", max, min);
                                                       ~~~                             ^~~
                                                       %lld
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:12759:79: warning: format specifies type 'long'
      but the argument has type 'zend_long' (aka 'long long') [-Wformat]
                php_error_docref(NULL, E_WARNING, "max(%ld) is smaller than min(%ld)", max, min);
                                                                                ~~~         ^~~
                                                                                %lld
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140546:35: warning: \U used with no following hex
      digits; treating as '\' followed by identifier [-Wunicode]
        ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Url, Exception, phalcon, url_exception, phalcon_exception_ce, NULL, 0);
                                         ^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140564:36: warning: \U used with no following hex
      digits; treating as '\' followed by identifier [-Wunicode]
        ZEPHIR_REGISTER_INTERFACE(Phalcon\\Url, UrlInterface, phalcon, url_urlinterface, phalcon_url_urlinterface_method_entry);
                                          ^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140757:65: warning: incompatible pointer types
      passing 'zend_ulong *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
  ...replace = phalcon_replace_marker(1, paths, replacements, &position, cursor, marker);
                                                              ^~~~~~~~~
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140625:89: note: passing argument to parameter
      'position' here
zval *phalcon_replace_marker(int named, zval *paths, zval *replacements, unsigned long *position, char *cursor, char *marker)
                                                                                        ^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140791:65: warning: incompatible pointer types
      passing 'zend_ulong *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
  ...replace = phalcon_replace_marker(0, paths, replacements, &position, cursor, marker);
                                                              ^~~~~~~~~
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140625:89: note: passing argument to parameter
      'position' here
zval *phalcon_replace_marker(int named, zval *paths, zval *replacements, unsigned long *position, char *cursor, char *marker)
                                                                                        ^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140817:64: warning: incompatible pointer types
      passing 'zend_ulong *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
                                                replace = phalcon_replace_marker(0, paths, replacements, &position, curso...
                                                                                                         ^~~~~~~~~
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140625:89: note: passing argument to parameter
      'position' here
zval *phalcon_replace_marker(int named, zval *paths, zval *replacements, unsigned long *position, char *cursor, char *marker)

从 4.0.0 版本开始,Phalcon 需要 PSR 扩展。该扩展可以从下载并编译这个 GitHub 存储库 https://github.com/jbboehr/php-psr。安装说明可在README存储库的文件。一旦扩展被编译并在您的系统中可用,您将需要将其加载到您的系统中。php.ini。您需要添加这一行:

extension=psr.so

before

extension=phalcon.so

或者,某些发行版在 ini 文件上添加数字前缀。如果是这种情况,请为 Phalcon 选择一个较高的数字(例如50-phalcon.ini and 20-psr.ini).

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 macOS 上的 MAMP 或 XAMPP 上安装 phalcon 时出现错误 的相关文章

  • CIAdditionCompositing 给出不正确的效果

    我正在尝试通过平均其他几个图像来创建图像 为了实现这一点 我首先将每个图像变暗 其系数等于我平均的图像数量 func darkenImage by multiplier CGFloat gt CIImage let divImage CII
  • 使用 mono/nunit-console/4 在 Mac OS X 控制台上运行测试

    我安装了 Max OS X 10 11 1 上面装有 Xamarin 我编写了简单的测试类 只是为了测试在 Mac OS X 和 Ubuntu 上运行 Nunit 测试 该类实际上有一个返回字符串的方法 using System names
  • 使用 WSGI 在 Windows XAMPP 中设置 Python 路径

    我正在 Webfaction 上设置实时服务器的开发版本 在本地计算机上的虚拟 Apache 服务器环境 运行没有任何错误 中运行 Django 应用程序 XP 使用 Python 2 6 运行 XAMPP Lite 我可以提交更改通过 G
  • UNIX/MacOS 上静态文件的“临时 Web 服务器”?

    是否有一个像小型网络服务器这样的东西 我可以从命令行调用它 只从本地文件系统获取文件并通过特定端口上的 HTTP 为它们提供服务 我希望能够做这样的事情 cd Sites mysite serve 10 0 1 1 8080 这应该会启动一
  • 为具有多个目标和不同平台的项目编写 Podfile

    我正在准备一个支持 OS X 和 iOS 的 Pod 我的 pod 有一些自己的依赖项 这些依赖项在 podspec 文件中定义 因此我使用 Podfile 来管理我用来开发 pod 和运行测试的项目的依赖项 我正在使用 CocoaPods
  • 无法更改 Xampp 中的 Apache 端口号

    我刚刚下载了Xampp服务器xampp win32 1 8 2 0 VC9 zip http www apachefriends org en xampp windows html 641文件 Windows 并尝试启动 apache 服务
  • 无法使 csshX 在 Mac OS Big Sur 上运行

    csshX不适用于 Mac Big Sur 未实现 POSIX tmpnam 在 System Library Perl 5 28 darwin thread multi 2level POSIX pm 第 185 行使用 File Tem
  • zsh:未找到命令:使用 Big Sur Mac 的终端上的 R

    我从官方 cran 网站安装了 R 我可以从 Rstudio 运行 R 但是当我尝试从终端使用 R 时 我得到以下结果 base ege Eges MBP R zsh command not found R base ege Eges MB
  • 如何在 swiftUI (macOS) 中检测按键按下和释放

    除了标题之外没什么可说的 我希望能够在按下按键和释放按键时 在 macOS 上 在 swiftUI 视图中执行操作 在 swiftUI 中是否有任何好的方法可以做到这一点 如果没有 有什么解决方法吗 不幸的是 键盘事件处理是其中一个令人痛苦
  • 如何在MAMP中设置环境变量?

    如何在 MAMP 版本 3 3 中设置环境变量 我可以在我的 PHP 应用程序中使用它 我已经更新了 Applications MAMP Library bin envvars and envvars std file并添加以下行 Lice
  • dyld:惰性符号绑定失败

    当我尝试运行时遇到一个奇怪的错误gatsby develop在新创建的 gatsby 项目中 这不应该与 gatsby js 静态站点生成器 有任何关系 因为我在不同的场合也遇到了相同的错误 当我跑步时gatsby develop在我的一个
  • 在 XCode 7.0.1 中设置 VTK 6.1

    所以 我遇到了问题VTK 可视化工具包 http www vtk org在 Mac OSX 上工作 特别是让它在XCode https developer apple com xcode 我让它工作并将在下面发布这个问题的答案 截至 201
  • 从 python 检测 macOS 中的暗模式

    我正在编写一个 PyQt 应用程序 我必须添加一个补丁 以便在启用暗模式的 Macos 上可以读取字体 app QApplication Fix for the font colours on macos when running dark
  • 无法连接到 macOS 上的 Docker 守护进程

    我通常更喜欢使用brew 来管理我的OSX 上的应用程序 我能够安装 docker docker compose 和 docker machine docker version Docker version 17 05 0 ce build
  • 仅第一个加载的 Django 站点有效

    我最近向 stackoverflow 提交了一个问题 标题为使用mod wsgi在apache上多次请求后Django无限加载 https stackoverflow com questions 71705909 django infini
  • Mac 上的 Qt — 如何访问帮助菜单中的“搜索”

    我正在将我的 Qt 应用程序移植到 Mac OS X 在 Windows Linux 上 我使用 QLineEdit 在帮助菜单中提供搜索功能 In Mac OS X I saw something like this is built i
  • Codesign:什么是未密封内容?

    我刚刚升级到 XCode 6 并尝试构建我的开发者 ID 签名的 Mac 应用程序 但是 我现在收到以下协同设计错误 unsealed contents present in the root directory of an embedde
  • 使用 Cocoa 获取无法安装的驱动器列表

    我想获取在 OS X 下使用 Cocoa Objective C 无法安装 弹出的驱动器列表 我希望 NSWorkspace getFileSystemInfoForPath 能帮助我 NSArray listOfMedia NSWorks
  • 当所选选项是下拉列表中已选择的选项时如何接收事件?

    动机 我想动态加载一个select使用来自 AJAX 调用的值 并允许用户select加载后列表中的第一项after它获得焦点 现在 第一项是selected项目 当您单击下拉列表并单击第一项时 什么也没有发生 我无法添加任何无效选择的占位
  • Mac 上用户“postgres”的密码身份验证失败

    我在创建新的 psql 用户时遇到问题 因为我无法以 postgres 身份登录 psql 我已尝试过 1 sudo u postgres psql 2 sudo u postgres createuser img site P s e 他

随机推荐