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

Add php7-mbstring extension to fix composer installation #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

svemir
Copy link

@svemir svemir commented Apr 28, 2016

Without this extension, running build.rb on OS-X fails with:

Step 2 : RUN curl -sS https://getcomposer.org/installer | php
---> Running in b918100ad154
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The iconv OR mbstring extension is required and both are missing.
Install either of them or recompile php without --disable-iconv

Without this extension, running build.rb on OS-X fails with:

Step 2 : RUN curl -sS https://getcomposer.org/installer | php
 ---> Running in b918100ad154
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The iconv OR mbstring extension is required and both are missing.
Install either of them or recompile php without --disable-iconv
@svemir
Copy link
Author

svemir commented Apr 28, 2016

Perhaps this type of pull request makes no sense for the actual usage of iron/php? I was looking at it as a general minimal php setup.

@treeder
Copy link
Contributor

treeder commented Apr 29, 2016

Is that required only on the build image or typically used in production?

@svemir
Copy link
Author

svemir commented Apr 29, 2016

It seems to be required by composer. I guess you could install it temporarily, install composer temporarily, use composer to install all your php code and create autoload files, and then remove both the extension and composer itself?

Obviously that would not work for such a generic image. I am not sure how exactly this php image is used within iron worker. For our own purposes we are building something much more customized anyway.

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

Successfully merging this pull request may close these issues.

2 participants