Coder Social home page Coder Social logo

Failed loading /usr/lib/php/20160303/xdebug.so: Error loading shared library /usr/lib/php/20160303/xdebug.so: No such file or directory about php-xdebug-docker HOT 3 CLOSED

angristan avatar angristan commented on August 11, 2024
Failed loading /usr/lib/php/20160303/xdebug.so: Error loading shared library /usr/lib/php/20160303/xdebug.so: No such file or directory

from php-xdebug-docker.

Comments (3)

angristan avatar angristan commented on August 11, 2024 1

That's really weird, the image is building for me on both my macbook and linux laptop.

from php-xdebug-docker.

angristan avatar angristan commented on August 11, 2024

How do you run it?

from php-xdebug-docker.

marcelobfonseca avatar marcelobfonseca commented on August 11, 2024

docker build . Seems to be failing to run the RUN pecl install xdebug . Searching around i managed to install xdebug using php:7.2-alpine image.

FROM php:7.2-alpine

RUN apk add --no-cache $PHPIZE_DEPS \
    && pecl install xdebug-2.6.0 

RUN printf "xdebug.remote_enable=1\n" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
         "xdebug.coverage_enable=1\n" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
         "xdebug.idekey=\"PHPSTORM\"\n" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
         "xdebug.remote_port=9000\n" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
         "xdebug.remote_host=host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

RUN docker-php-ext-enable xdebug 

from php-xdebug-docker.

Related Issues (7)

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.