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

how to find libuuid.so #3

Closed
angelandy opened this issue Apr 13, 2016 · 8 comments
Closed

how to find libuuid.so #3

angelandy opened this issue Apr 13, 2016 · 8 comments
Labels

Comments

@angelandy
Copy link

@bungle how can i get libuuid.so?

@bungle
Copy link
Owner

bungle commented Apr 13, 2016

It should work out of the box at least on Linux / OS X, what OS are you running on?

@angelandy
Copy link
Author

ubuntu

@bungle
Copy link
Owner

bungle commented Apr 13, 2016

Do you get error about it?

@angelandy
Copy link
Author

root@andy-ubuntu:/usr/local/openresty/nginx/logs# find / -name "libuuid.so"
root@andy-ubuntu:/usr/local/openresty/nginx/logs#

you can see,i found nothing about libuuid.so
i get error in log file:

*5 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/resty/uuid.lua:2 9: libuuid.so: cannot open shared object file: No such file or directory

@bungle
Copy link
Owner

bungle commented Apr 13, 2016

yeah, it is probably there:
/lib/x86_64-linux-gnu/libuuid.so.1

I wil check out how that should be handled. Meanwhile you could ln -s /lib/x86_64-linux-gnu/libuuid.so.1 /usr/local/lib/libuuid.soand maybe ldconfig.

@angelandy
Copy link
Author

thanks, it worked very well now.

@bungle
Copy link
Owner

bungle commented Apr 13, 2016

Also it seems that changing uuid.lua:
https://github.com/bungle/lua-resty-uuid/blob/master/lib/resty/uuid.lua#L29

To:

local lib = os == "OSX" and C or ffi_load "uuid.so.1"

This seems to work also. I will add alternate loading logic there. Thanks for reporting.

@bungle bungle added the bug label Apr 13, 2016
@bungle bungle closed this as completed in 4587db7 Apr 13, 2016
@bungle
Copy link
Owner

bungle commented Apr 13, 2016

This is now fixed on latest version and also released as v. 1.1. Thanks again.

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

No branches or pull requests

2 participants