Code Monkey home page Code Monkey logo

Comments (6)

etjson avatar etjson commented on July 22, 2024

已解决。

from swoole-cli.

jingjingxyk avatar jingjingxyk commented on July 22, 2024

c-ares 安装到指定目录:比如 /usr/c-ares 目录

export PKG_CONFIG_PATH=/usr/c-ares/lib/pkgconfig::$PKG_CONFIG_PATH

使用时需要这样指定

export LIBS=$(pkg-config  --libs --static  libcares )

from swoole-cli.

1307super avatar 1307super commented on July 22, 2024

已解决。

请问一下咋解决的呀, 我配置了
export CPPFLAGS=$(pkg-config --cflags --static libcares)
export LIBS=$(pkg-config --libs --static libcares)

打印也是正确的目录, 就是build的时候 错误和你一模一样

from swoole-cli.

jingjingxyk avatar jingjingxyk commented on July 22, 2024

已解决。

请问一下咋解决的呀, 我配置了 export CPPFLAGS=$(pkg-config --cflags --static libcares) export LIBS=$(pkg-config --libs --static libcares)

打印也是正确的目录, 就是build的时候 错误和你一模一样

make clean 以后,重新构建

修改完代码,需要再次执行 php prepare.php --without-docker=1 @macos

from swoole-cli.

jingjingxyk avatar jingjingxyk commented on July 22, 2024

@1307super
我自己的暂时这么写

    export   XSL_CFLAGS=$(pkg-config --cflags --static libxslt) ;
    export   XSL_LIBS=$(pkg-config   --libs   --static libxslt) ;
    pkgs='libcares readline icu-i18n  icu-io   icu-uc   openssl ImageMagick'
    CPPFLAGS=$(pkg-config  --cflags-only-I --static   $pkgs)
    export   CPPFLAGS="$CPPFLAGS -I<?= $this->getGlobalPrefix() ?>/libiconv/include  -I/usr/include"
    LDFLAGS=$(pkg-config   --libs-only-L   --static $pkgs )
    export   LDFLAGS="$LDFLAGS  -L<?= $this->getGlobalPrefix() ?>/libiconv/lib -L/usr/lib"
    LIBS=$(pkg-config      --libs-only-l   --static  <?= $this->getOsType() ?> $pkgs)
    export  LIBS="$LIBS -liconv"

image

from swoole-cli.

1307super avatar 1307super commented on July 22, 2024

@jingjingxyk 非常感谢~ 用这个成功了

from swoole-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.