GithubHelp home page GithubHelp logo

Comments (4)

NathanFreeman avatar NathanFreeman commented on July 1, 2024

系统安装了sqlite3了吗

from swoole-src.

520svip avatar 520svip commented on July 1, 2024

系统安装了sqlite3了吗

刚看了下是没有安装sqlite3,然后我安装了一下,现在的版本是3.37.2

root@DESKTOP-JQIES67:~/swoole-src-test# sqlite3 --version
3.37.2 2022-01-06 13:25:41 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5dalt1

但是还是报错

checking whether to enable swoole thread support... yes
checking whether to enable coroutine execution time ... no
checking "for ODBC v3 support for PDO"... no
checking if compiling with clang... no
./configure: line 10542: syntax error near unexpected token `SQLITE,'
./configure: line 10542: `        PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.7.7)'

from swoole-src.

520svip avatar 520svip commented on July 1, 2024

我这边编译5.1.2是正常的,相同的环境,之前没有安装sqlite3也是可以正常编译的,安装完sqlite3我又测了一遍,也是正常编译,用的一样的命令(5.12没有多线程但是我忘记修改命令,一样把--enable-swoole-thread加进去了进行编译貌似也没问题)

phpize && ./configure --enable-openssl --enable-sockets --enable-mysqlnd --enable-swoole-curl --enable-cares --enable-swoole-pgsql --enable-swoole-thread --with-php-config=/usr/local/php8.1/bin/php-config && sudo make && sudo make install

这是刚刚成功编译了5.1.2的信息,所以我感觉跟系统是否安装Sqlite3没啥关系,,我是wsl的Ubuntu-22.04

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/php8.1/lib/php/extensions/no-debug-zts-20210902/
Installing header files:          /usr/local/php8.1/include/php/
root@DESKTOP-JQIES67:~/swoole-src-5.1.2# /usr/local/php8.1/bin/php --ri swoole

swoole

Swoole => enabled
Author => Swoole Team <[email protected]>
Version => 5.1.2
Built => May 24 2024 15:32:57
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 3.0.2 15 Mar 2022
dtls => enabled
http2 => enabled
json => enabled
curl-native => enabled
pcre => enabled
c-ares => 1.18.1
zlib => 1.2.11
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled
coroutine_pgsql => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_fiber_mock => Off => Off
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
root@DESKTOP-JQIES67:~/swoole-src-5.1.2#

from swoole-src.

520svip avatar 520svip commented on July 1, 2024

改成这个执行就可以了,估计是我用了默认php7.2版本的phpize的问题,现在加上8.1版本的路径就可以正常编译了

/usr/local/php8.1/bin/phpize && ./configure --enable-openssl --enable-sockets --enable-mysqlnd --enable-swoole-curl --enable-cares --enable-swoole-pgsql --enable-swoole-thread --with-php-config=/usr/local/php8.1/bin/php-config && sudo make && sudo make install

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.