HI, Is it possible to build redis in linux without adding lua, linenoise as dependency? Able to see below dependencies (https://github.com/redis/redis/blob/unstable/src/Makefile) DEPENDENCY_TARGETS=hiredis linenoise lua
Iis it possible for redis to work without linenoise lua?
Thanks, Mani
Comment From: sundb
@plmanik you can build redis without linenoise, but lua library is required because Scrip and Function depends on it.
Comment From: plmanik
@plmanik you can build redis without
linenoise, but lua library is required because Scrip and Function depends on it.
@sundb Thanks for your reply. Is Lua required in latest version of Redis also? Can I remove linenoise from makefile(wherever applicable). Do we have any links for removing dependencies from redis, please point to me. I'm able to see links from redis for upgrading dependencies
Comment From: sundb
Is Lua required in latest version of Redis also?
Yes
Can I remove linenoise from makefile(wherever applicable).
You can remove linenoise related from makefile, and you won't be able to build redis-cli.
Do we have any links for removing dependencies from redis, please point to me. I'm able to see links from redis for upgrading dependencies
No, al denpendencies are required, linenoise is noly used by redis-cli
Comment From: zuiderkwast
@plmanik are you building Redis for some embedded system and you want it as small as possible?
I would accept a flag for building Redis without Lua. It means that some commands cannot work, like EVAL, but maybe that's acceptable in some situations. It's already possible to build with and without TLS, so why not also make it possible without Lua. You probably need to add a lot of ifdef to disable everything where Lua is used.
Linenoise is very small and it's not linked in redis-server, only in redis-cli, so actually you don't need to remove it, I think. Maybe you don't want to build redis-cli at all? Actually, I'm not sure we should call linenoise a dependency, since the upstream project is dead and the only updated version is the one we have in Redis. Some other small libraries, like rax and listpack, were just copied to Redis under src/.
Comment From: plmanik
@plmanik are you building Redis for some embedded system and you want it as small as possible?
@zuiderkwast you are right and I need to buidl for embedded system without lua I would accept a flag for building Redis without Lua. It means that some commands cannot work, like EVAL, but maybe that's acceptable in some situations. It's already possible to build with and without TLS, so why not also make it possible without Lua. You probably need to add a lot of
ifdefto disable everything where Lua is used. @zuiderkwast Do i need to manually add ifdef or any build option to remove lua to build redis without touching source codeLinenoise is very small and it's not linked in redis-server, only in redis-cli, so actually you don't need to remove it, I think. Maybe you don't want to build redis-cli at all? Actually, I'm not sure we should call linenoise a dependency, since the upstream project is dead and the only updated version is the one we have in Redis. Some other small libraries, like rax and listpack, were just copied to Redis under src/.
Comment From: zuiderkwast
@zuiderkwast Do i need to manually add ifdef or any build option to remove lua to build redis without touching source code
There is no option to build without Lua now without touching the source code, but it would be nice to have it. Do you want to implement it (manually add ifdefs) and contribute the changes to Redis to support it? It would be good for everyone who wants to build Redis without Lua.
Comment From: fgclue
Build redis with all dependencies ever!!!