iresty / lua-resty-libr3

High-performance path dispatching library base on libr3 for OpenResty
Apache License 2.0
57 stars 9 forks source link

install: cannot stat 'libr3.so': No such file or directory #43

Open xiangnanscu opened 3 years ago

xiangnanscu commented 3 years ago

I changed first line to:

INST_PREFIX ?= /usr/local/openresty/luajit

and still get:

root@win10:~/lua-resty-libr3# make install
install -d /usr/local/openresty/luajit/share/lua/5.1/resty/
install lib/resty/*.lua /usr/local/openresty/luajit/share/lua/5.1/resty/
install libr3.so /usr/local/openresty/luajit/lib/lua/5.1/
install: cannot stat 'libr3.so': No such file or directory
Makefile:71: recipe for target 'install' failed
make: *** [install] Error 1

seems 'libr3.so. so I tried:

root@win10:~/lua-resty-libr3# gcc r3_resty.c
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/tmp/ccaph0UW.o: In function `r3_mem_alloc':
r3_resty.c:(.text+0x29): undefined reference to `r3_fatal'
/tmp/ccaph0UW.o: In function `r3_create':
r3_resty.c:(.text+0x44): undefined reference to `r3_tree_create'
/tmp/ccaph0UW.o: In function `r3_free':
r3_resty.c:(.text+0x6d): undefined reference to `r3_tree_free'
/tmp/ccaph0UW.o: In function `r3_insert':
r3_resty.c:(.text+0xbc): undefined reference to `r3_tree_insert_routel_ex'
/tmp/ccaph0UW.o: In function `r3_compile':
r3_resty.c:(.text+0x20f): undefined reference to `r3_tree_compile'
/tmp/ccaph0UW.o: In function `r3_match_entry_create':
r3_resty.c:(.text+0x244): undefined reference to `match_entry_createl'
/tmp/ccaph0UW.o: In function `r3_match_route':
r3_resty.c:(.text+0x2c1): undefined reference to `r3_tree_match_route'
/tmp/ccaph0UW.o: In function `r3_match_entry_free':
r3_resty.c:(.text+0x47c): undefined reference to `match_entry_free'
collect2: error: ld returned 1 exit status
membphis commented 3 years ago

We have given up the maintenance of this library, welcome to try https://github.com/api7/lua-resty-radixtree.