Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 5

Is it possible to install php73-intl on the ubuntu-latest OS?

Solved! Go to Solution.

I'm running the following bit of code in my .yml

 
- name: Install ext-intl
      run: sudo apt-get install php7.3-intl
 
 
But this doesn't really work, here's the log:

Spoiler
Preparing to unpack .../php7.3-intl_7.3.11-1+ubuntu18.04.1+deb.sury.org+1_amd64.deb ...
56Unpacking php7.3-intl (7.3.11-1+ubuntu18.04.1+deb.sury.org+1) ...
57Setting up libicu64:amd64 (64.2-0.1+ubuntu18.04.1+deb.sury.org+1) ...
58Setting up php7.3-intl (7.3.11-1+ubuntu18.04.1+deb.sury.org+1) ...
59debconf: unable to initialize frontend: Dialog
60debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
61debconf: falling back to frontend: Readline
62Processing triggers for php7.3-fpm (7.3.11-1+ubuntu18.04.1+deb.sury.org+1) ...
63Job for php7.3-fpm.service failed because the control process exited with error code.
64See "systemctl status php7.3-fpm.service" and "journalctl -xe" for details.
65invoke-rc.d: initscript php7.3-fpm, action "restart" failed.
66 php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
67 Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; vendor preset: enabled)
68 Active: failed (Result: exit-code) since Sat 2019-11-02 14:25:42 UTC; 10ms ago
69 Docs: man:php-fpm7.3(8)
70 Process: 2846 ExecStart=/usr/sbin/php-fpm7.3 --nodaemonize --fpm-config /etc/php/7.3/fpm/php-fpm.conf (code=exited, status=78)
71 Main PID: 2846 (code=exited, status=78)
73Nov 02 14:25:42 fv-az98 systemd[1]: Starting The PHP 7.3 FastCGI Process Manager...
74Nov 02 14:25:42 fv-az98 php-fpm7.3[2846]: [02-Nov-2019 14:25:42] ERROR: unable to bind listening socket for address '/run/php/php7.3-fpm.sock': No such file or directory (2)
75Nov 02 14:25:42 fv-az98 php-fpm7.3[2846]: [02-Nov-2019 14:25:42] ERROR: FPM initialization failed
76Nov 02 14:25:42 fv-az98 systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/n/a
77Nov 02 14:25:42 fv-az98 systemd[1]: php7.3-fpm.service: Failed with result 'exit-code'.
78Nov 02 14:25:42 fv-az98 systemd[1]: Failed to start The PHP 7.3 FastCGI Process Manager.
79dpkg: error processing package php7.3-fpm (--configure):
80 installed php7.3-fpm package post-installation script subprocess returned error exit status 1
81E: Sub-process /usr/bin/dpkg returned an error code (1)
82##[error]Process completed with exit code 100.
Does anyone know how I can install php73-intl without the FastCGI Process Manager to fail. One of my composer dependecies requires the intl extension, so I can't run
composer install
without it

Any suggestions?

Kind Regards,
Arne
4 Replies
Solution
Copilot Lvl 3
Message 2 of 5

Re: Is it possible to install php73-intl on the ubuntu-latest OS?

You can use this GitHub Action to install ext-intl.
https://github.com/shivammathur/setup-php

 

name: Setup PHP
uses: shivammathur/setup-php@v2
with:
  php-version: '7.4'
  extensions: intl
name: Composer Install
run: composer install

 

Highlighted
Ground Controller Lvl 1
Message 3 of 5

Re: Is it possible to install php73-intl on the ubuntu-latest OS?

Thank you for the setup-php action. You should update your comment to use 'extensions' instead of 'extension-csv' as you're printing a deprecation message right now.

Highlighted
Copilot Lvl 3
Message 4 of 5

Re: Is it possible to install php73-intl on the ubuntu-latest OS?

Updated the answer.

Highlighted
Copilot Lvl 2
Message 5 of 5

Re: Is it possible to install php73-intl on the ubuntu-latest OS?

Hello there,

I've recently came across a .yml which used 

uses: shivammathur/setup-php@v1
 
Right now I'm running it like:

    services:
      redis:
        image: redis
        ports:
            - 6379:6379
        options: --entrypoint redis-server
    steps:
    - uses: actions/checkout@v1

    - name: Setup PHP
      uses: shivammathur/setup-php@v1
      with:
        php-version: '7.4'
        extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
        coverage: none

Also, I ran into problems with Redis, on my own machine I had it installed, but the tests which triggerd it would fail. In my new yml configuration I was able to tackle this. (See above)

Thank you all for helping me out!