vscode-dev-containers icon indicating copy to clipboard operation
vscode-dev-containers copied to clipboard

PHP throwing error in the default codespaces image

Open Largo opened this issue 3 years ago • 4 comments

PHP does not run at all in the default codespaces image. It's throwing an error in the default codespaces image.

  • VSCode Version: 1.63.2
  • Local OS Version: Win 10
  • Local chip architecture: x86
  • Reproduces in: <Codespaces | Remote - Containers | Both> Codespaces
  • Name of Dev Container Definition with Issue: codespaces-linux

Steps to Reproduce:

  1. $ php php: error while loading shared libraries: libonig.so.4: cannot open shared object file: No such file or directory

Largo avatar Feb 07 '22 10:02 Largo

//cc: @joshspicer

Chuxel avatar Feb 07 '22 14:02 Chuxel

Thanks for creating an issue. Looks like similar behavior we've had in the past with python, the fix was ensure that in the upstream oryx image we had the shared libraries present at compile-time (eg: https://github.com/microsoft/Oryx/pull/1117)

Will bring this up at our next oryx sync.

joshspicer avatar Feb 07 '22 15:02 joshspicer

context: https://github.com/microsoft/vscode-dev-containers/issues/1006 https://github.com/github/codespaces/issues/5545

joshspicer avatar Feb 07 '22 15:02 joshspicer

This is on oryx's and our radar, but in the meantime please feel free to use the php definition template we have in this repo for any php-related work in Codespaces or Remote-Containers.

joshspicer avatar Mar 16 '22 21:03 joshspicer

Closing as fixed in the latest versions of the universal image (now hosted at https://github.com/devcontainers/images/tree/main/src/universal).

jkeech avatar Sep 21 '22 16:09 jkeech