Skip to content
Sign upLog in
← Back to Community

How to include a dependency if compiler is being killed?

Profile icon
tlehmanHacker

This is my first non-trivial project using Replit. I am making a Literate Programming REPL, and using a forked tool written in D. I can clone the Literate repo but when I cd into it and make, cc1d is being killed. From searching the error, it looks like the D compiler hit a limit, probably too much memory.

The REPL is for C++, but I am going to be using the (D) lit tool to preprocess the program and output the .cpp files.

What's the best way to solve this problem? I've tried uploading the compiled lit and tangle binaries from my local machine, but they are missing shared libraries.

I remember Amjad tweeting that Replit uses the Nix package manager. Should I learn Nix and import it as a package?

Voters
Profile icon
tlehman
Comments
hotnewtop
Profile icon
SixBeeps

If you're willing to try it, switching to Nix might not be a bad idea. Especially since you're working with D, since D isn't natively supported on Replit.

Profile icon
tlehman

@SixBeeps
Sounds good, I'll work on making a nix package.

Profile icon
tlehman

@SixBeeps
I did it, I needed to fork a nix repl, but it works: https://replit.com/@tlehman/Repliterate?v=1