Closed liexusong closed 9 years ago
2-3 weeks ago lpereira added lua to use as a jit, u will need to install lua on ur machine apt-get install lua or something like that depending on OS if u have lua installed I think thete was a bug like that which was fixed
I was installed Lua, but this problem still occur!
Please post the entire output of CMake.
Note you might need the development packages as well depending on your distribution.
Any update on this, @liexusong?
I could not compile lwan too.
[lwan]$ cat /etc/issue Red Hat Enterprise Linux Server release 6.5 [lwan]$ lua -v Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio [lwan]$ whereis liblua liblua: /usr/lib64/liblua.a /usr/lib64/liblua.so [lwan]$ cmake lwan -- No clock_gettime() in libc. Linking with -lrt. -- jemalloc and tcmalloc were not found, using system malloc -- Valgrind headers not found -- disabling valgrind support -- checking for module 'luajit>=2.0' -- package 'luajit>=2.0' not found -- checking for module 'lua>=5.1,lua<5.2' -- package 'lua>=5.1,lua<5.2' not found -- checking for module 'lua51' -- package 'lua51' not found -- checking for module 'lua5.1' -- package 'lua5.1' not found -- checking for module 'lua-5.1' -- package 'lua-5.1' not found CMake Error at common/CMakeLists.txt:40 (message): Lua libraries could not be found
-- Configuring incomplete, errors occurred! See also "/home/xxx/github/try/lwan/CMakeFiles/CMakeOutput.log". See also "/home/xxx/github/try/lwan/CMakeFiles/CMakeError.log".
Hi Pereira, is this server available on centos 6.5? I've install lua lua-devel via yum and luajit complied by myself
Hi Pereira
I've successfully compiled lwan on my 'old' centos 6.5, I've met same problem that @wangbin579 had met before, so I changed CMakeLists.txt, I replace the required softwares with full path, and I upgraded my gcc from 4.4.7 to 4.8.4.
I'm installing a CentOS 6.5 VM here so I can see if there's a way to fix it while maintaining the setup process automatic.
Detection of Lua and SQLite libraries should work fine under CentOS 6.6 now. However, the gcc that ships with it is pretty old and does not even have _Static_assert
; if one comments the two references in the source code, code builds and runs fine (although with some warnings). Luckily there's a workaround that does not require messing with the code prior to compiling it; will commit it shortly.
I believe these build problems have been fixed. Feel free to reopen this issue or create another one if they persist.
Hello Pereira, How to compile lwan? When I using cmake compile lwan, it said lua5.1 not found...