swoole / swoole-src

🚀 Coroutine-based concurrency library for PHP
https://www.swoole.com
Apache License 2.0
18.27k stars 3.16k forks source link

syntax error near unexpected token `SQLITE,' #5243

Closed mindell closed 3 months ago

mindell commented 4 months ago

Please answer these questions before submitting your issue.

  1. What did you do? If possible, provide a simple script for reproducing the error. pecl install swoole

  2. What did you expect to see? swoole installed successfully

  3. What did you see instead?

    
    /tmp/pear/install/swoole/configure: line 9829: syntax error near unexpected token `SQLITE,'
    /tmp/pear/install/swoole/configure: line 9829: `        PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.7.7)'
    ERROR: `/tmp/pear/install/swoole/configure --with-php-config=/usr/bin/php-config --enable-sockets=yes --enable-openssl=yes --enable-mysqlnd=no --enable-swoole-curl=no --enable-cares=no --enable-brotli=yes --enable-swoole-pgsql=no --with-swoole-odbc=no --with-swoole-oracle=no --enable-swoole-sqlite=no' failed

4. What version of Swoole are you using (show your `php --ri swoole`)?
Not installed.

5. What is your machine environment used (show your `uname -a` & `php -v` & `gcc -v`) ?
`Linux wp-plugin 5.4.0-1086-gcp #94~18.04.1-Ubuntu SMP Fri Aug 5 18:26:39 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
`

`PHP 8.1.11 (cli) (built: Sep 29 2022 22:28:23) (NTS)`

Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)


`libsqlite3-dev is already the newest version (3.22.0-1ubuntu0.7).`

`pkg-config is already the newest version (0.29.1-0ubuntu2).`
NathanFreeman commented 3 months ago

I cannot reproduce it. It seems there is a syntax error in the configure file. Will running "pecl install swoole" again cause this problem to reoccur?