Ask coding questions

← Back to all posts
How can I install/use a C library that isn't already installed?

I'm trying to use C to build a simple REPL (not repl, but repl in the literal sense of the word). I'm following a tutorial that says to use #include<editline/readline.h>, and to install it in order to use it in the program. Without installing it, you get fatal error: editline/readline.h: No such file or directory #include <editline/readline.h>, and I can't figure out a way to install it. Is going to be of no use to me in building this program? Or is there another way to install it, because I can't figure out how to use the clang shell to install a library.


Oh wait I think they have a built in browser thing, chrome? You could go to the site in your repl and download from there to download it on the repl instead of on yer computer. I think. Not sure.


@Highwayman I'm confused as to what you mean. I'm using on a chromebook (chrome os, so chrome browser). I'm not sure I know what you mean by "site in your repl and download from there to download it on the repl"


@Jodastt sorry, here’s what I mean as in a browser: He searched up a thing and it’s showing up in the repl. Idk it should work.


use the shell to do it?

system("git clone <url to thingy>");
Something like that.