Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Trying to install on PHP TS 8.3.17 ARM64 fails (FrankenPHP) #9

Open
andersonpem opened this issue Feb 20, 2025 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@andersonpem
Copy link

Description

Evironment:
Docker on ARM64 (Apple Silicon), so the OS running in the container is ARM64 (Debian Bookworm)

PHP:

root@204cac157a0c:/app# php -v
PHP 8.3.17 (cli) (built: Feb 14 2025 03:32:47) (ZTS)
Copyright (c) The PHP Group
Zend Engine v4.3.17, Copyright (c) Zend Technologies

Is there something I'm doing wrong?
Thank youuu

Minimal Reproduction

Dockerfile specification:

FROM dunglas/frankenphp:1.4-php8.3-bookworm
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
# Some random packages
RUN set -eux; \
    apt-get update; \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
    sudo openssl libssl-dev openssh-client \
    acl iproute2 apt-transport-https libssh2-1-dev libssh2-1 \
    git curl wget \
    python3 python3-pip python3-tqdm \
    default-mysql-client \
    libnss3-tools libnss3 procps \
    libevent-dev  \
    build-essential autoconf libtool pkg-config \
    libxml2-dev libcurl4-openssl-dev zlib1g-dev libonig-dev \
    libreadline-dev libsqlite3-dev libc-dev;

RUN install-php-extensions zip;

COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
ENV COMPOSER_HOME=/root/.composer
RUN set -eux; composer global require darkterminal/turso-php-installer
RUN $COMPOSER_HOME/vendor/bin/turso-php-installer install -n --thread-safe --php-ini=$PHP_INI_DIR/php.ini; \
    php -m | grep -q libsql

I get:

------                                                                                                                                                                                
 > [stage-0 7/7] RUN /root/.composer/vendor/bin/turso-php-installer install -n --thread-safe --php-ini=/usr/local/etc/php/php.ini;     php -m | grep -q libsql:                       
0.247 
0.247    ✅ Found php ini at /usr/local/etc/php/php.ini
0.247 

1.336    Latest version: turso-php-extension-v1.5.2
1.336 
1.340 
1.343 In BaseInstaller.php line 122:
1.343                                                                                
1.343   The extension for your PHP version is not available. Please open an issue o  
1.343   n the repository.                                                            
1.343                                                                                
1.343 
------

Exception or Error

------                                                                                                                                                                                
 > [stage-0 7/7] RUN /root/.composer/vendor/bin/turso-php-installer install -n --thread-safe --php-ini=/usr/local/etc/php/php.ini;     php -m | grep -q libsql:                       
0.247 
0.247    ✅ Found php ini at /usr/local/etc/php/php.ini
0.247 

1.336    Latest version: turso-php-extension-v1.5.2
1.336 
1.340 
1.343 In BaseInstaller.php line 122:
1.343                                                                                
1.343   The extension for your PHP version is not available. Please open an issue o  
1.343   n the repository.                                                            
1.343                                                                                
1.343 
------
@andersonpem andersonpem added the bug Something isn't working label Feb 20, 2025
@darkterminal
Copy link
Owner

Hi @andersonpem honestly I never try with frankenphp. But you can follow this workflow I think it's have same workflow with Laravel Sail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants