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

PDO_OCI does not install for php8.4 #1037

Closed
sigurdne opened this issue Jan 3, 2025 · 2 comments
Closed

PDO_OCI does not install for php8.4 #1037

sigurdne opened this issue Jan 3, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@sigurdne
Copy link

sigurdne commented Jan 3, 2025

Version of install-php-extensions

v.2.7.8

Error description

Using the command install-php-extensions oci8 pdo_oci; is working fine for php8.3 - but not for php8.4
It builds with no error - and the oci-extension is installed fine, but not the pdo_oci

Docker image

php:8.4-fpm

Minimal Dockerfile

# Conditionally install Oracle support
RUN if [ "${INSTALL_ORACLE}" = "true" ]; then \
    echo "Installing Oracle support..."; \
    # Unzip Oracle Instant Client
    unzip -o /tmp/instantclient-sdk-linux.x64-12.2.0.1.0.zip -d /usr/local/lib/; \
    unzip -o /tmp/instantclient-basic-linux.x64-12.2.0.1.0.zip -d /usr/local/lib/; \
    # Create symbolic links
    ln -s /usr/local/lib/instantclient_12_2/libclntsh.so.12.1 /usr/local/lib/instantclient_12_2/libclntsh.so; \
    mkdir -p /usr/local/lib/instantclient_12_2/lib/oracle/12.2; \
    ln -s /usr/local/lib/instantclient_12_2/sdk/ /usr/local/lib/instantclient_12_2/lib/oracle/12.2/client; \
    ln -s /usr/local/lib/instantclient_12_2 /usr/local/lib/instantclient_12_2/lib/oracle/12.2/client/lib; \
    # Install OCI8 and PDO_OCI extensions
    install-php-extensions oci8 pdo_oci; \
    # Clean up
    rm -rf /tmp/instantclient-sdk-linux.x64-12.2.0.1.0.zip /tmp/instantclient-basic-linux.x64-12.2.0.1.0.zip; \
else \
    echo "Skipping Oracle support installation."; \
fi
@sigurdne sigurdne added the bug Something isn't working label Jan 3, 2025
@mlocati
Copy link
Owner

mlocati commented Jan 3, 2025

What's the role of the "Minimal Dockerfile" step you posted? It installs the Oracle instantclient, it doesn't showcase the issue with install-php-extensions script (which installs instantclient automatically)

@sigurdne
Copy link
Author

sigurdne commented Jan 6, 2025

Great!
Moved the install-php-extensions oci8 pdo_oci in front of everything else - and then it worked for php8.4 also

@sigurdne sigurdne closed this as completed Jan 6, 2025
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