Help with GCC/Making an operating system

I am following a tutorial on youtube for making a basic operating system.
I need to run i386-elf-gcc, but I don’t know how to install it on replit without sudo privs…
Does anyone know how to get it with Nix, or some other way without sudo?

1 Like

Welcome!

You can search up all the Nix packages here, but I don’t think they have it.

But if you find something there, then you can add it to the replit.nix file like so:

{ pkgs }: {
    deps = [
        # examples of nix packages:
        pkgs.python310Packages.flask
        pkgs.cowsay
        pkgs.gcc12
        # other stuff ....
    ];
}

Hope this helps!

You know any other way to install packages without root?

I don’t sorry, Nix is the only way I know how to do it.