Skip to content

postfixadmin 4.0.1 install.sh fails when ext-mysqli is not installed #965

Description

@TigerP

After extracting the 4.0.1 tar.gz file, I tried to run the install.sh as discussed in #955 , but this fails.

tigerp@aram-a:~/www/postfixadmin-4.0.1$ bash ./install.sh
 * Checking for composer.phar
 * Using composer ( /home/tigerp/www/postfixadmin-4.0.1/composer.phar )
 * Installing libraries ( composer install --no-dev ... )
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
 
  Problem 1
    - Root composer.json requires PHP extension ext-mysqli * but it is missing from your system. Install or enable PHP's mysqli extension.
 
To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/8.4/cli/php.ini
    - /etc/php/8.4/cli/conf.d/10-opcache.ini
    - /etc/php/8.4/cli/conf.d/10-pdo.ini
    - /etc/php/8.4/cli/conf.d/15-xml.ini
    - /etc/php/8.4/cli/conf.d/20-bz2.ini
    - /etc/php/8.4/cli/conf.d/20-calendar.ini
    - /etc/php/8.4/cli/conf.d/20-ctype.ini
    - /etc/php/8.4/cli/conf.d/20-curl.ini
    - /etc/php/8.4/cli/conf.d/20-dom.ini
    - /etc/php/8.4/cli/conf.d/20-enchant.ini
    - /etc/php/8.4/cli/conf.d/20-exif.ini
    - /etc/php/8.4/cli/conf.d/20-ffi.ini
    - /etc/php/8.4/cli/conf.d/20-fileinfo.ini
    - /etc/php/8.4/cli/conf.d/20-ftp.ini
    - /etc/php/8.4/cli/conf.d/20-gd.ini
    - /etc/php/8.4/cli/conf.d/20-gettext.ini
    - /etc/php/8.4/cli/conf.d/20-gmp.ini
    - /etc/php/8.4/cli/conf.d/20-iconv.ini
    - /etc/php/8.4/cli/conf.d/20-intl.ini
    - /etc/php/8.4/cli/conf.d/20-mbstring.ini
    - /etc/php/8.4/cli/conf.d/20-pdo_pgsql.ini
    - /etc/php/8.4/cli/conf.d/20-pdo_sqlite.ini
    - /etc/php/8.4/cli/conf.d/20-pgsql.ini
    - /etc/php/8.4/cli/conf.d/20-phar.ini
    - /etc/php/8.4/cli/conf.d/20-posix.ini
    - /etc/php/8.4/cli/conf.d/20-pspell.ini
    - /etc/php/8.4/cli/conf.d/20-readline.ini
    - /etc/php/8.4/cli/conf.d/20-shmop.ini
    - /etc/php/8.4/cli/conf.d/20-simplexml.ini
    - /etc/php/8.4/cli/conf.d/20-sockets.ini
    - /etc/php/8.4/cli/conf.d/20-sqlite3.ini
    - /etc/php/8.4/cli/conf.d/20-sysvmsg.ini
    - /etc/php/8.4/cli/conf.d/20-sysvsem.ini
    - /etc/php/8.4/cli/conf.d/20-sysvshm.ini
    - /etc/php/8.4/cli/conf.d/20-tokenizer.ini
    - /etc/php/8.4/cli/conf.d/20-xmlreader.ini
    - /etc/php/8.4/cli/conf.d/20-xmlwriter.ini
    - /etc/php/8.4/cli/conf.d/20-xsl.ini
    - /etc/php/8.4/cli/conf.d/20-zip.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-mysqli` to temporarily ignore these required extensions.
Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
tigerp@aram-a:~/www/postfixadmin-4.0.1$

Since I only use PostgreSQL, I would expect that the installation of postfixadmin would not require to install anything for mysql.
By adding --ignore-platform-req=ext-mysqli to line 56 of install.sh it does work. Of course this is not a great solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions