Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacbookPro16(Intel) macOs Monterey 安装php7.4.26后报错 #165

Closed
lujihong opened this issue Feb 22, 2022 · 3 comments
Closed

MacbookPro16(Intel) macOs Monterey 安装php7.4.26后报错 #165

lujihong opened this issue Feb 22, 2022 · 3 comments

Comments

@lujihong
Copy link

bash-5.0# php -v
PHP Warning: Failed loading Zend extension 'yasd' (tried: /usr/lib/php7/modules/yasd (Error loading shared library /usr/lib/php7/modules/yasd: No such file or directory), /usr/lib/php7/modules/yasd.so (Error loading shared library libboost_filesystem.so.1.72.0: No such file or directory (needed by /usr/lib/php7/modules/yasd.so))) in Unknown on line 0
PHP 7.4.26 (cli) (built: Jan 18 2022 21:29:34) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

php 版本:php7.4.26
swoole 版本:4.8.7
系统:macOs Monterey

@lujihong
Copy link
Author

yasd版本:v0.3.9

@dmitryuk
Copy link
Contributor

You have not installed yasd. This is not enough:

zend_extension=yasd;

My way in Dockerfile:

RUN if [ "${WITH_DEBUG}" = "true" ] ; then \
        apk add --no-cache boost-dev git autoconf g++ make \
        && git clone https://github.com/swoole/yasd "/tmp/yasd" \
        && cd "/tmp/yasd" \
        && phpize --clean \
        && phpize \
        && ./configure \
        && make clean \
        && make \
        && make install \
        && touch /usr/local/etc/php/conf.d/yasd.ini \
        && echo 'zend_extension=yasd' > /usr/local/etc/php/conf.d/yasd.ini \
        && echo 'yasd.debug_mode=remote' >> /usr/local/etc/php/conf.d/yasd.ini \
        && echo 'yasd.remote_host=host.docker.internal' >> /usr/local/etc/php/conf.d/yasd.ini \
        && echo 'yasd.remote_port=9003' >> /usr/local/etc/php/conf.d/yasd.ini; \
    fi

@huanghantao
Copy link
Member

可以考虑使用 swoole-src的 xdebug分支,https://github.com/swoole/swoole-src/tree/support-xdebug
可以直接使用xdebug进行调试,前提是PHP版本要大于等于8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants