justinmeza / lci

A LOLCODE interpreter written in C.
http://lolcode.org
GNU General Public License v3.0
784 stars 105 forks source link

Error Installing: There was a Make error - Readline.h #76

Open emonegarand opened 2 years ago

emonegarand commented 2 years ago

Nevermind, I found a solution.

Hey not sure if this the proper place to put this but I'm trying to build the most current lci build so I can use 1.4 features but won't build saying it can't find the readline.h file. I checked my MinGW installation and that header file is missing. I'm running on Win 10 and I can only find options for the Linux GNU version, where can I get the required file or is their alternative?

the output file

Consolidate compiler generated dependencies of target lci
[ 10%] Building C object CMakeFiles/lci.dir/main.c.obj
D:\programming\lolcode\lci\main.c:112:31: fatal error: readline/readline.h: No such file or directory
 #include <readline/readline.h>
                               ^
compilation terminated.
CMakeFiles\lci.dir\build.make:102: recipe for target 'CMakeFiles/lci.dir/main.c.obj' failed
mingw32-make[2]: *** [CMakeFiles/lci.dir/main.c.obj] Error 1
CMakeFiles\Makefile2:6777: recipe for target 'CMakeFiles/lci.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/lci.dir/all] Error 2
Makefile:144: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
SaiasiZKS commented 2 years ago

I have the same problem

SaiasiZKS commented 2 years ago

Can you please tell me how to fix it

SaiasiZKS commented 2 years ago

Well mine goes like: C:\Users\User1\OneDrive\Documents\GitHub\lci>install.py --prefix= Running cmake with command: "cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX:STRING="" ." and writing results to configure.out.

Error installing: There was a CMake error

wrecklass commented 1 year ago

You need to install the libreadline-dev package for whatever system you are compiling on. I found this out on both Ubuntu and Cygwin on Windows. Once I did that everything compiled fine.