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

/bin/sh: pecl: not found #29

Closed
yunus89 opened this issue Apr 18, 2020 · 2 comments
Closed

/bin/sh: pecl: not found #29

yunus89 opened this issue Apr 18, 2020 · 2 comments

Comments

@yunus89
Copy link

yunus89 commented Apr 18, 2020

Using this Dockerfile, i added another needed package by my application called opencensus-alpha. The package is installed using pecl.

So by adding the following line of code in the already existing Dockerfile
RUN pecl install opencensus-alpha
an error was thrown

Step 4/18 : RUN pecl install opencensus-alpha
 ---> Running in 4d0f464fb79c
/bin/sh: pecl: not found
The command '/bin/sh -c pecl install opencensus-alpha' returned a non-zero code: 127

How can i install pecl or packages installed through it with this Dockerfile

@TrafeX
Copy link
Owner

TrafeX commented Apr 19, 2020

Hi @yunus89 ,

Pecl is part of the php7-pear package. You can instal this package with

RUN apk add --no-cache php7-pear

Then you should be able to run pecl.

@yunus89
Copy link
Author

yunus89 commented Apr 20, 2020

For opencensus-alpha to be installed via pecl following are needed

RUN apk add --no-cache php7-dev php7-pear
RUN apk add autoconf gcc g++ make
RUN pecl install opencensus-alpha

@yunus89 yunus89 closed this as completed Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants