2016-04-14

2016-04-14 Thursday - Building Lua on Ubuntu

While trying to build Lua...
https://www.lua.org/download.html
curl -R -O http://www.lua.org/ftp/lua-5.3.2.tar.gz
tar zxf lua-5.3.2.tar.gz
cd lua-5.3.2
make linux test

I encountered the following error:
fatal error: readline/readline.h: No such file or directory

All that I needed to do was:  
sudo apt-get install libreadline-dev 
 
This blog post is also worth reviewing, as it illustrates how to find the various 
version of readline
(i.g. "apt-cache search readline")
 
Note the distinction between the lib version for running an application, versus 
for developing applications.
 
 

No comments:

Copyright

© 2001-2021 International Technology Ventures, Inc., All Rights Reserved.