Giter VIP home page Giter VIP logo

Comments (5)

NathanFreeman avatar NathanFreeman commented on July 18, 2024

你用的是xlswriter这个扩展吗,看看swoole-cli -m有没有这个扩展

from swoole-src.

NathanFreeman avatar NathanFreeman commented on July 18, 2024

或者输出一下__FILE__这个常量看一下执行的index.php的完整文件路径

from swoole-src.

Sheldon1024 avatar Sheldon1024 commented on July 18, 2024

你用的是xlswriter这个扩展吗,看看swoole-cli -m有没有这个扩展

通过swoole-cli -m 没有找到对应的xlswriter拓展但是通过php -m是有这个拓展的
image

我是通过下载的文件直接执行的./swoole-cli 如何配置变量全局可用

from swoole-src.

NathanFreeman avatar NathanFreeman commented on July 18, 2024

swoole-cli是静态编译的,没法动态加载so文件,只能重新手动编译xslwriter到swoole-cli

from swoole-src.

jingjingxyk avatar jingjingxyk commented on July 18, 2024

@Sheldon1024 使用swoole-cli main 分支,自己编译swoole-cli ,编译时 如下配置:

 php preapre.php +xlswriter

这样编译出来的swoole-cli 就包含了 xlswriter 扩展

ln -s /home/user_name/download/swoole-cli  /usr/local/bin/php 

php -v 
php --ri xlswriter

from swoole-src.

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.