How Do I Install Linux Packages?
Project ID: 26297924-d91d-448c-b1fa-e00612d55795
I'm trying to deploy my Django project that requires these Linux packages:
libasound2-dev python3-numpy python-setuptools libsndfile-dev
Currently I'm migrating from Heroku using an Aptfile that installs these packages. I tried using a Build Command on my Railway.app deployment but the deployment fails to install those packages.
Procfile
Railway Build Command
Railway Build Log Errors
10 Replies
Project ID:
N/A
It appears that the Railway Build Command is failing to install the necessary packages due to a version mismatch with the GLIBC library. You may need to use a nixpack instead of the Build Command to install the packages.
⚠️ experimental feature
YOU can set the env var
NIXPACKS_APT_PKGS
to install these. that way they are cached so your builds are alot quickerThank you! Where in the docs did you find that?
Getting Started | Nixpacks
App source + Nix packages + Docker = Image
leme find the page
Environment | Nixpacks
App source + Nix packages + Docker = Image
Is this in the Railway docks? or is this a docker thing?
or something else lol
(aka: What is nixpacks and how is it related to Railway lol)
nixpacks is a tool that looks at your project and produces a optmsized dockerfile for caching as many layers at it can
you can use a normal dockerfile if you need. just add a dockerfile to your root or add one and point railway to it via the website
Thank you! You set me in the right direction and I learned how Railway uses the Nixpacks 😀 I ended up fixing the error using the
NIXPACKS_LIBS
environment variable to install libsndfile
. It turns out that's the only library I needed, which was not the case using Heroku.