Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xiangnanscu opened this issue Jun 14, 2021 · 1 comment
Open

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

xiangnanscu opened this issue Jun 14, 2021 · 1 comment

Comments

@xiangnanscu
Copy link

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants