LibXML for PHP is missing

lightshirePRO

7 months ago

Hi,

The libxml is missing - build won't continue.

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Awaiting User Response

3 Replies

lightshirePRO

7 months ago



-----

> [ 4/14] RUN nix-env -if .nixpacks/nixpkgs-dbc4f15b899ac77a8d408d8e0f89fa9c0c5f2b78.nix && nix-collect-garbage -d:

28.50            61|           ++ (derivationArgs.passAsFile or [ ]);

28.50

28.50        (stack trace truncated; use '--show-trace' to show the full, detailed trace)

28.50

28.50        error: attribute 'libxml' missing

28.50        at /app/.nixpacks/nixpkgs-dbc4f15b899ac77a8d408d8e0f89fa9c0c5f2b78.nix:6:87:

28.50             5|   let

28.50             6|     APPEND_LIBRARY_PATH = "${lib.makeLibraryPath [ libmysqlclient php81Extensions.dom php81Extensions.libxml php81Extensions.redis ] }";

28.50              |                                                                                       ^

28.50             7|     myLibraries = writeText "libraries" ''

-----

lightshirePRO

7 months ago

Nixpack

[variables] UPLOAD_MAX_FILESIZE = '1024M' POST_MAX_SIZE = '1024M' MEMORY_LIMIT = '2048M' [phases.setup] cmds = ['UPLOAD_INI_PATH=$(find /nix/store/*-php-*/lib -name php.ini -print0 | head -z -n 1 | rev | cut -c 9- | rev)/upload.ini; echo "upload_max_filesize=${UPLOAD_MAX_FILESIZE};" >> $UPLOAD_INI_PATH; echo "post_max_size=${POST_MAX_SIZE};" >> $UPLOAD_INI_PATH; echo "memory_limit=${MEMORY_LIMIT};" >> $UPLOAD_INI_PATH;']


7 months ago

Hi, you probably want to make sure libxml is added as a dependency of your project. Here are our nixpacks docs for php: https://nixpacks.com/docs/providers/php

Hope this helps !
- Nico


Status changed to Awaiting User Response railway[bot] 7 months ago


LibXML for PHP is missing - Railway Help Station