Comments (6)
Error occur because of OSX does not implement clock_gettime
function.
In fact fail only lzmq.timer
module. This module does not use in lzmq
itself, but uses in lzmq.loop
mudule and in some tests.
May be you can just remove definition of USE_CLOCK_MONOTONIC or remove lzmq.timer
module at all from rockspec.
I have not OSX so i can not fix that on myself so may be you can help with that.
This is part of code that need to implement.
As i understand we need only GetMonotonicTime
. I found this.
from lzmq.
Please try luarocks install https://raw2.github.com/moteus/lzmq/master/rockspecs/lzmq-scm-0.rockspec
from lzmq.
It did work to me, but it is still unable to use ffi
correctly.
atcold@Alf /usr/local/share/lua/5.1/lzmq [master*]$ qlua
Lua 5.1 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> = package.path
./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua
> package.path = package.path .. ';/usr/local/lib/lua/5.1/lzmq/?.lua'
> require 'image'
/usr/local/share/lua/5.1/lzmq/ffi/api.lua:1: loop or previous error loading module 'ffi'
stack traceback:
[C]: in function 'require'
/usr/local/share/lua/5.1/lzmq/ffi/api.lua:1: in main chunk
[C]: in function 'require'
./ffi.lua:17: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.1/sundown/init.lua:1: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.1/dok/init.lua:1: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.1/image/init.lua:35: in main chunk
[C]: in function 'require'
[string "require 'image'"]:1: in main chunk
[C]: ?
from lzmq.
Thnks for testing.
You should not add lzmq/.?
to lua path. If you just copy src/lua
you should require ffi module as lzmq.ffi
.
But if you want only ffi binding you should copy src/lua/lzmq/ffi/lzmq.lua
to lua dir, also you need copy src/lua/lzmq/ffi/poller.lua
to lzmq dir. See lzmq-ffi-scm-0.rockspec
from lzmq.
luarocks install https://raw2.github.com/moteus/lzmq/master/rockspecs/lzmq-scm-0.rockspec
installed for me. I haven't had a chance to verify its functionality, though.
from lzmq.
So i close this issue and i assume it fixed.
You could install lunitx luarocks install https://raw.github.com/moteus/lunit/moteus-skip/rockspecs/lunitx-scm.mot.skip-0.rockspec
and run utest.lua
file to full test lzmq library.
You could run simply etime lua -e"z=require'lzmq.timer't=z.monotonic():start()z.sleep(10000)print(t:stop())"
to test monotonic timer.
from lzmq.
Related Issues (20)
- Default branch of lzmq repo has been deleted HOT 3
- Does not close socket on ETERM
- Cannot supply THREAD_OPTIONS to lzmq.threads HOT 2
- Configure `pipe` for child thread HOT 3
- Update docs for lzmq.threads
- Installation error in FreeBSD HOT 2
- luarocks package not working HOT 5
- lzmq doesn't use `pkg-config` HOT 10
- lzmq installation problems HOT 2
- How can I use it with embedded Lua / LuaJIT? HOT 2
- Luarocks install lzmq failed HOT 4
- Error loading module 'lzmq'... The specified module could not be found HOT 3
- Export context option name constants
- Is curve authentication possible with lzmq? HOT 1
- Please, publish the .dll
- Support Lua 5.4 HOT 1
- Lzmq not found by Lua HOT 6
- Compiling For Windows
- lzmq should use C++ linker (or ZeroMQ should stop using exceptions) HOT 1
- Add new Draft Sockets for CLIENT and SERVER
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lzmq.