国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

靜態(tài)php編譯加擴展錯誤

z

我想打包一個含這些擴展的靜態(tài)php http://m.wtbis.cn/download
這里的沒有mongodb和imagick

bin/spc build --build-cli "apcu,bcmath,calendar,ctype,curl,dba,dom,exif,filter,fileinfo,gd,iconv,intl,mbstring,mbregex,mysqli,mysqlnd,openssl,opcache,pcntl,pdo,pdo_mysql,pdo_sqlite,pdo_pgsql,pgsql,phar,posix,readline,redis,session,simplexml,sockets,sodium,sqlite3,tokenizer,xml,xmlreader,xmlwriter,xsl,zip,zlib,mongodb,imagick"

按照 https://github.com/crazywhalecc/static-php-cli 的步驟
執(zhí)行編譯命令 的時候提示

[11:05:24] [CRIT] Build failed with SPC\exception\RuntimeException: Command run failed with code[2]: cd '/www/static-php/static-php-cli/source/openssl' && CFLAGS='' CC='x86_64-linux-musl-gcc -static -idirafter /www/static-php/static-php-cli/buildroot/include -idirafter /usr/include/  -idirafter /usr/include/x86_64-linux-gnu/ '  ./Configure no-shared zlib --prefix=/ --libdir=lib -static --with-zlib-include=/www/static-php/static-php-cli/buildroot/include --with-zlib-lib=/www/static-php/static-php-cli/buildroot/lib no-legacy linux-x86_64 1>/dev/null 2>&1
[11:05:24] [CRIT] Please check with --debug option to see more details.

加--debug 顯示這個 AI 提示要安裝 sudo yum install openssl-devel 也已經(jīng)安裝了, 還是一樣的錯誤

[DEBU] Running command with direct output: cd '/www/static-php/static-php-cli/source/openssl' && CFLAGS='' CC='x86_64-linux-musl-gcc -static -idirafter /www/static-php/static-php-cli/buildroot/include -idirafter /usr/include/  -idirafter /usr/include/x86_64-linux-gnu/ '  ./Configure no-shared zlib --prefix=/ --libdir=lib -static --with-zlib-include=/www/static-php/static-php-cli/buildroot/include --with-zlib-lib=/www/static-php/static-php-cli/buildroot/lib no-legacy linux-x86_64
Can't locate IPC/Cmd.pm in @INC (@INC contains: /www/static-php/static-php-cli/source/openssl/util/perl /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /www/static-php/static-php-cli/source/openssl/external/perl/Text-Template-1.56/lib) at /www/static-php/static-php-cli/source/openssl/util/perl/OpenSSL/config.pm line 19.
BEGIN failed--compilation aborted at /www/static-php/static-php-cli/source/openssl/util/perl/OpenSSL/config.pm line 19.
Compilation failed in require at ./Configure line 23.
BEGIN failed--compilation aborted at ./Configure line 23.

   SPC\exception\RuntimeException 

  Command run failed with code[2]: cd '/www/static-php/static-php-cli/source/openssl' && CFLAGS='' CC='x86_64-linux-musl-gcc -static -idirafter /www/static-php/static-php-cli/buildroot/include -idirafter /usr/include/  -idirafter /usr/include/x86_64-linux-gnu/ '  ./Configure no-shared zlib --prefix=/ --libdir=lib -static --with-zlib-include=/www/static-php/static-php-cli/buildroot/include --with-zlib-lib=/www/static-php/static-php-cli/buildroot/lib no-legacy linux-x86_64

  at src/globals/functions.php:89
     85▕         logger()->debug('Running command with direct output: ' . $cmd);
     86▕     }
     87▕     $ret = passthru($cmd, $code);
     88▕     if ($code !== 0) {
  ?  89▕         throw new \SPC\exception\RuntimeException('Command run failed with code[' . $code . ']: ' . $cmd, $code);
     90▕     }
     91▕     return $ret;
     92▕ }
     93▕ 

  1   src/SPC/util/UnixShell.php:44

  2   src/SPC/builder/linux/library/openssl.php:73
      SPC\util\UnixShell::exec()

[11:11:28] [CRIT] You can report this exception to static-php-cli GitHub repo.
1459 3 0
3個回答

z

編譯擴展的時候報錯了, 有人遇到這個問題嗎
截圖
截圖

  • 深藍 2023-11-12

    使用github的actions試下看。

  • tanhongbin 2023-11-13

    咋說呢 這個靜態(tài) 的技術 感覺 還是不太成熟,我每次用都是報錯,就很迷

  • caylof 2023-11-13

    github action 我構建也報錯,好像是關于 docker 什么的,有成功過的嗎

  • 深藍 2023-11-13

    我使用actions構建的,能正常構建,但是感覺打的包要比官方包要大好多,拓展也沒多幾個。

  • tanhongbin 2023-11-13

    反正很迷 actions 構建 現(xiàn)在報錯呀

  • z 2023-11-13

    @深藍 , 不知道是不是環(huán)境哪里的問題;也是報錯@tanhongbin

  • 深藍 2023-11-13

    應該是拓展的問題。

  • W 2024-03-24

    樓上有沒有加了pgsql擴展編譯成功的>=php8.1版本的php靜態(tài)文件發(fā)一個給我,或者發(fā)到群里面

W

大佬解決了嗎我也遇到了

  • 暫無評論
crazywhalecc

有關static-php編譯出現(xiàn)問題的如果方便都最好提個 Issue,很有可能與編譯環(huán)境有關。也可以at我。

  • tanhongbin 2024-03-27

    大佬 你也整一個群吧 有需要兄弟們就自己進群了,這樣還能交流一下靜態(tài),我們生產(chǎn)環(huán)境使用有4個月了,嘎嘎穩(wěn)定,給你點贊

  • W 2024-03-27

    @tanhonhbin 兄弟你的php靜態(tài)文件加了pgsql和event擴展嗎?能否分享一個到群里,或者給我947162821@qq.com

  • tanhongbin 2024-03-27

    pgsql 我沒加 event加了 我看看能否成功給你加上pgsql哈

  • tanhongbin 2024-03-27

    大佬的 github actions 構建 又出現(xiàn) ERROR: failed to solve: process "/bin/sh -c composer install --no-dev --classmap-authoritative" did not complete successfully: exit code: 2
    Unable to find image 'cwcc-spc-x86_64:latest' locally
    docker: Error response from daemon: pull access denied for cwcc-spc-x86_64, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
    See 'docker run --help'.
    Error: Process completed with exit code 125 這個錯誤了 就是docker需要登錄

  • W 2024-03-27

    @tanhonhbin 感謝大佬,成功了發(fā)一個群里或者給我947162821@qq.com

  • tanhongbin 2024-03-28

    我也等 大佬回答呢哈哈,現(xiàn)在拉取新的代碼 執(zhí)行actions 打包 不管啥擴展都報錯 ,估計是大佬的代碼現(xiàn)在有點問題吧

  • W 2024-03-29

    那先等等,穩(wěn)定了再試試

  • tanhongbin 2024-03-29

    我今天差不多能幫你打包一個,我基本搞明白了,我再自己構建打包呢

  • W 2024-03-29

    大佬,牛的

年代過于久遠,無法發(fā)表回答
??