Welcome to Centmin Mod Community
Become a Member

Install PHP Install failure

Discussion in 'Install & Upgrades or Pre-Install Questions' started by lostincable, Mar 16, 2022.

  1. lostincable

    lostincable New Member

    24
    2
    3
    Feb 17, 2018
    Ratings:
    +3
    Local Time:
    2:09 PM
    Hi there

    I have used centminmod for a while on another provider without issue.

    I am trying another host now (azure), i tried three different installs of centos from different providers, and each time php fails to install.

    I did manage to get it running by installing systemlibs and centmin menu option to update php after the failure.

    Just want to check from the logs that systemlibs not being installed was the problem or was it something else for the future?


    log.txt
     
    Last edited: Mar 16, 2022
  2. eva2000

    eva2000 Administrator Staff Member

    53,211
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    2:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    interesting issue

    from the log I see

    Code (Text):
    checking for libsystemd >= 209... no
    configure: error: Package requirements (libsystemd >= 209) were not met:
    
    No package 'libsystemd' found
    
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    
    Alternatively, you may set the environment variables SYSTEMD_CFLAGS
    and SYSTEMD_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    

    Which systemlibs package did you install and with what command? Was it systemd-devel or systemd-libs that you needed installing?

    Might be specific to Azure's CentOS image - have you previously installed on Azure for Centmin Mod ok?

    What's output for these commands

    Code (Text):
    rpm -qa systemd\*
    

    Take note of the very last yum history transaction id number listed on below command's output - that is the first time YUM either updated/installed systemd-* YUM packages. On a proper CentOS 7 OS image, it should be the very last transaction as systemd-* packages should exist from the start and have a very low transaction id near the start/creation of your server.
    Code (Text):
    yum history list systemd-\*
    

    Then next command replace XX, with the transaction id number you noted in previous command to inspect what the first relevant YUM command was for systemd-* packages
    Code (Text):
    yum history info XX
    


    example output on server which had all system-* packages at start of a CentOS 7 install dating back to 2017
    Code (Text):
    yum history info 40
    Loaded plugins: fastestmirror, priorities, versionlock
    Transaction ID : 40
    Begin time     : Thu Apr 13 18:23:40 2017
    Begin rpmdb    : 730:7eae2e5635fab2d27fadcacec79d2ed416e593a1
    End time       :            18:24:01 2017 (21 seconds)
    End rpmdb      : 732:65e7ead9cc7658f7324f766ac18ed804acaaa8b0
    User           : root <root>
    Return-Code    : Success
    Command Line   : -y update
    Transaction performed with:
    Loading mirror speeds from cached hostfile
     * base: mirror.dst.ca
     * centos-sclo-rh: mirror.dst.ca
     * centos-sclo-sclo: mirror.dst.ca
     * epel: mirror.dst.ca
     * extras: mirror.12z.eu
     * updates: mirror.dst.ca
    226 packages excluded due to repository priority protections
    Excluding 8 updates due to versionlock (use "yum versionlock status" to show them)
        Updated       rpm-4.11.3-21.el7.x86_64                      ?
        Updated       yum-3.4.3-150.el7.centos.noarch               ?
        Installed     yum-metadata-parser-1.1.4-10.el7.x86_64       @anaconda
        Updated       yum-plugin-fastestmirror-1.1.31-40.el7.noarch ?
    Packages Altered:
        Updated NetworkManager-libnm-1:1.4.0-17.el7_3.x86_64  ?
        Update                       1:1.4.0-19.el7_3.x86_64  @updates
        Updated ca-certificates-2015.2.6-73.el7.noarch        ?
        Update                  2017.2.11-70.1.el7_3.noarch   @updates
        Updated dmidecode-1:3.0-2.el7.x86_64                  ?
        Update            1:3.0-2.1.el7_3.x86_64              @updates
        Updated grubby-8.28-18.el7.x86_64                     ?
        Update         8.28-21.el7_3.x86_64                   @updates
        Updated initscripts-9.49.37-1.el7.x86_64              ?
        Update              9.49.37-1.el7_3.1.x86_64          @updates
        Install kernel-3.10.0-514.16.1.el7.x86_64             @updates
        Install kernel-devel-3.10.0-514.16.1.el7.x86_64       @updates
        Updated kernel-headers-3.10.0-514.10.2.el7.x86_64     @updates
        Update                 3.10.0-514.16.1.el7.x86_64     @updates
        Updated libblkid-2.23.2-33.el7.x86_64                 ?
        Update           2.23.2-33.el7_3.2.x86_64             @updates
        Updated libgudev1-219-30.el7_3.7.x86_64               ?
        Update            219-30.el7_3.8.x86_64               @updates
        Updated libmount-2.23.2-33.el7.x86_64                 ?
        Update           2.23.2-33.el7_3.2.x86_64             @updates
        Updated libtool-2.4.2-21.el7_2.x86_64                 @base
        Update          2.4.2-22.el7_3.x86_64                 @updates
        Updated libtool-ltdl-2.4.2-21.el7_2.x86_64            @base
        Update               2.4.2-22.el7_3.x86_64            @updates
        Updated libtool-ltdl-devel-2.4.2-21.el7_2.x86_64      @base
        Update                     2.4.2-22.el7_3.x86_64      @updates
        Updated libuuid-2.23.2-33.el7.x86_64                  ?
        Update          2.23.2-33.el7_3.2.x86_64              @updates
        Updated net-snmp-1:5.7.2-24.el7_2.1.x86_64            @base
        Update           1:5.7.2-24.el7_3.2.x86_64            @updates
        Updated net-snmp-agent-libs-1:5.7.2-24.el7_2.1.x86_64 @base
        Update                      1:5.7.2-24.el7_3.2.x86_64 @updates
        Updated net-snmp-devel-1:5.7.2-24.el7_2.1.x86_64      @base
        Update                 1:5.7.2-24.el7_3.2.x86_64      @updates
        Updated net-snmp-libs-1:5.7.2-24.el7_2.1.x86_64       @base
        Update                1:5.7.2-24.el7_3.2.x86_64       @updates
        Updated net-snmp-utils-1:5.7.2-24.el7_2.1.x86_64      @base
        Update                 1:5.7.2-24.el7_3.2.x86_64      @updates
        Updated ntp-4.2.6p5-25.el7.centos.1.x86_64            ?
        Update      4.2.6p5-25.el7.centos.2.x86_64            @updates
        Updated ntpdate-4.2.6p5-25.el7.centos.1.x86_64        ?
        Update          4.2.6p5-25.el7.centos.2.x86_64        @updates
        Updated openssh-6.6.1p1-33.el7_3.x86_64               ?
        Update          6.6.1p1-35.el7_3.x86_64               @updates
        Updated openssh-clients-6.6.1p1-33.el7_3.x86_64       ?
        Update                  6.6.1p1-35.el7_3.x86_64       @updates
        Updated openssh-server-6.6.1p1-33.el7_3.x86_64        ?
        Update                 6.6.1p1-35.el7_3.x86_64        @updates
        Updated python-perf-3.10.0-514.10.2.el7.x86_64        ?
        Update              3.10.0-514.16.1.el7.x86_64        @updates
        Updated systemd-219-30.el7_3.7.x86_64                 ?
        Update          219-30.el7_3.8.x86_64                 @updates
        Updated systemd-libs-219-30.el7_3.7.x86_64            ?
        Update               219-30.el7_3.8.x86_64            @updates
        Updated systemd-sysv-219-30.el7_3.7.x86_64            ?
        Update               219-30.el7_3.8.x86_64            @updates
        Updated util-linux-2.23.2-33.el7.x86_64               ?
        Update             2.23.2-33.el7_3.2.x86_64           @updates
    history info
    


    Then do the same specifically for checking system-devel package noting last transaction id
    Code (Text):
    yum history list systemd-devel

    Code (Text):
    yum history list systemd-devel
    Loaded plugins: fastestmirror, priorities, versionlock
    ID     | Command line             | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
       904 | -y update                | 2022-01-27 06:51 | E, I, U        |   84 EE
       787 | update --disableplugin=p | 2021-02-13 02:46 | E, I, U        |  290 EE
       749 | update --disableplugin=p | 2020-11-28 23:11 | E, I, U        |  275 EE
       716 | update --disableplugin=p | 2020-08-10 22:03 | E, I, U        |  199 EE
       693 | update --disableplugin=p | 2020-07-02 02:25 | E, I, O, U     |   63 EE
       689 | update --disableplugin=p | 2020-05-22 08:40 | E, I, U        |  187 EE
       671 | update --disableplugin=p | 2020-04-29 00:00 | E, I, U        |  504 EE
       645 | update --disableplugin=p | 2020-03-21 03:41 | E, I, U        |  185 EE
       640 | update --disableplugin=p | 2020-02-19 21:07 | E, I, U        |  255 EE
       576 | update --disableplugin=p | 2019-10-26 23:44 | E, I, U        |  189 EE
       556 | update --disableplugin=p | 2019-09-19 05:56 | E, I, O, U     |  329 EE
       506 | update --disableplugin=p | 2019-07-31 22:02 | E, I, U        |  153 EE
       502 | update --disableplugin=p | 2019-07-09 10:40 | Update         |  116 EE
       469 | update --disableplugin=p | 2019-04-30 03:04 | E, I, U        |   37  
       435 | -y -q install systemd-de | 2019-03-06 00:22 | I, U           |    5  
    history list
    

    435 transaction id is a install/upgrade YUM transaction
    Code (Text):
    yum history info 435

    Code (Text):
    yum history info 435
    Loaded plugins: fastestmirror, priorities, versionlock
    Transaction ID : 435
    Begin time     : Wed Mar  6 00:22:12 2019
    Begin rpmdb    : 1261:78f8ef0e0fbc423ab1dd38d0df2e08a2ecc5a066
    End time       :            00:22:14 2019 (2 seconds)
    End rpmdb      : 1262:c56c73c58b81ced87f3e01f4bfdfba0050cd0f0c
    User           : root <root>
    Return-Code    : Success
    Command Line   : -y -q install systemd-devel
    Transaction performed with:
        Updated       rpm-4.11.3-35.el7.x86_64                      @base
        Updated       yum-3.4.3-161.el7.centos.noarch               @base
        Installed     yum-metadata-parser-1.1.4-10.el7.x86_64       @anaconda
        Updated       yum-plugin-fastestmirror-1.1.31-50.el7.noarch @base
        Updated       yum-plugin-versionlock-1.1.31-50.el7.noarch   @base
    Packages Altered:
        Updated libgudev1-219-62.el7_6.2.x86_64     @updates
        Update            219-62.el7_6.5.x86_64     @updates
        Updated systemd-219-62.el7_6.2.x86_64       @updates
        Update          219-62.el7_6.5.x86_64       @updates
        Install systemd-devel-219-62.el7_6.5.x86_64 @updates
        Updated systemd-libs-219-62.el7_6.2.x86_64  @updates
        Update               219-62.el7_6.5.x86_64  @updates
        Updated systemd-sysv-219-62.el7_6.2.x86_64  @updates
        Update               219-62.el7_6.5.x86_64  @updates
    history info
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,211
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    2:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. lostincable

    lostincable New Member

    24
    2
    3
    Feb 17, 2018
    Ratings:
    +3
    Local Time:
    2:09 PM
    I tried two centos images on azure and experienced failures on both images.

    I didn't debug the first on greatly but can only suspect its the same issue.

    The command i ran to install it was the below:

    Code:
    sudo yum -y install systemd-libs
    
    Output below:

    Code:
    
    rpm -qa systemd\*
    
    systemd-python-219-78.el7_9.5.x86_64
    systemd-sysv-219-78.el7_9.5.x86_64
    systemd-libs-219-78.el7_9.5.x86_64
    systemd-219-78.el7_9.5.x86_64
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,211
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    2:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah systemd-libs is meant to be install already AFAIK, Azure image seems to have it missing out of the box. Will have to update Centmin Mod to check for this.
     
  6. lostincable

    lostincable New Member

    24
    2
    3
    Feb 17, 2018
    Ratings:
    +3
    Local Time:
    2:09 PM
    Thanks

    Azure doesn’t seem to have official centos

    Contributor versions which they approve so that could lead into it.

    But at least it’s known.
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,211
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    2:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI, just updated Centmin Mod 123.09beta01 to ensure systemd-libs packages is installed at initial install time. So you can try a fresh install again and see :)