Ask coding questions

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

I'm trying to use C to build a simple REPL (not repl.it 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 repl.it 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.
Thanks!

Voters
PedroSampaio2
pgirikishore
Jodastt
Comments
hotnewtop
Highwayman

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.

Jodastt

@Highwayman I'm confused as to what you mean. I'm using repl.it 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"

Highwayman

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

Highwayman

use the shell to do it?

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