limonte
1
Here’s what I’m trying to do:
version: 2
jobs:
build:
docker:
- image: circleci/php:7.0-browsers
steps:
- checkout
- run: sudo apt-get install php7.0-intl
The result is:
E: Unable to locate package php7.0-intl
E: Couldn't find any package by regex 'php7.0-intl'
What should I do in order to install php7.0-intl
?
limonte
2
Any help from CircleCI support?
rohara
3
- run:
shell: sudo bash -eo pipefail
command: |
apt install icu-devtools libicu-dev
echo | pecl install intl
However it errors out saying php_smart_str.h
is missing, which is a PHP5 thing.
Pecl only specifies 5.x versions http://pecl.php.net/package-search.php?pkg_name=Internationalization
This article may be helpful to you https://www.cyberciti.biz/faq/installing-php-7-on-debian-linux-8-jessie-wheezy-using-apt-get/
We’re just extending the official PHP images and not adding any extensions ourselves. http://hub.docker.com/_/php
limonte
4
Thanks a lot @rohara!
This configuration works perfectly for me:
version: 2
jobs:
build:
machine: true
steps:
- checkout
- run: echo 'deb http://packages.dotdeb.org jessie all' | sudo tee -a /etc/apt/sources.list
- run: echo 'deb-src http://packages.dotdeb.org jessie all' | sudo tee -a /etc/apt/sources.list
- run: cat /etc/apt/sources.list
- run: cd /tmp
- run: wget https://www.dotdeb.org/dotdeb.gpg
- run: sudo apt-key add dotdeb.gpg
- run: sudo apt-get update
- run: sudo apt-get install php7.0 php7.0-intl
1 Like