How to run apt install on railway from user interface
i had a build fail installing a library i python and i have to run this command to fix it : apt install build-essential python3-dev libgmp3-dev how can i do this
24 Replies
Project ID:
26aabaf6-6d1e-4e3f-9d50-42ff0dfb7486
26aabaf6-6d1e-4e3f-9d50-42ff0dfb7486
it's not done through the user interface, it's done through a nixpacks.toml config file
https://nixpacks.com/docs/guides/configuring-builds#install-additional-packages
i have done this it is still giving me errors such as gmp.h not found and so on
show me the nixpacks.toml file you have come up with please?
[phases.setup]
aptPkgs = ["...", "build-essential python3-dev libgmp3-dev","gcc","libgmp-dev"]
this is the content
that would not be the correct syntax, please reference the docs page I have sent
look
it is installing them but gmp.h not found when i try to download the library
fastecdsa
it's not the correct syntax, I'm not saying that fixing the syntax will fix the issues, I'm just stating a fact
what's the correct syntax then? cuz i have no idea tbh i read again the page u sent me
you are trying to install
build-essential python3-dev libgmp3-dev
, that needs commas between each of themimma try to deploy and see
it's still the same it doesn't find gmp.h
what apt package provides gmp.h
libgmp3-dev
provide gmp.H
looks like you may have to move to a Dockerfile based build
Can u provide more informations please?
dockerfiles aren't specific to railway in any way, but if you provide your repo I can see about helping you create a dockerfile
It is a private repo and i dont own full access to it so i can't really share it
But i can take a screenshot i suppsoe
sorry that wouldn't be sufficient, but there are tons of great guides out there on how to write a dockerfile for python apps, all you need to do is have a
Dockerfile
at the root of your project and railway will use itWhat if I can download manually gmp.h ? Wouldn't that be enough?
not really how it works, and writing a dockerfile would be far easier
please research how to write a dockerfile
Thank you i will look it up