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

centos7.4 + lua-5.1 + luarocks-2.3 + ipython-5.1 install failed #2

Open
gitbeyond opened this issue Sep 14, 2018 · 4 comments
Open

Comments

@gitbeyond
Copy link

I'm in centos7.4 get failed. I'm already install zeromq zeromq-devel. dkjson and uuid install succeed.

Please give me your help.

[root@docker-182 lua]# luarocks install https://raw.github.com/Neopallium/lua-zmq/master/rockspecs/lua-zmq-scm-1.rockspec
Using https://raw.github.com/Neopallium/lua-zmq/master/rockspecs/lua-zmq-scm-1.rockspec... switching to 'build' mode
Cloning into 'lua-zmq'...
remote: Counting objects: 78, done.
remote: Compressing objects: 100% (66/66), done.
remote: Total 78 (delta 32), reused 32 (delta 10), pack-reused 0
Receiving objects: 100% (78/78), 104.28 KiB | 0 bytes/s, done.
Resolving deltas: 100% (32/32), done.
gcc -O2 -fPIC -I/usr/include -c src/pre_generated-zmq.nobj.c -o src/pre_generated-zmq.nobj.o -I/usr/include
src/pre_generated-zmq.nobj.c: In function ‘monitor_recv_event’:
src/pre_generated-zmq.nobj.c:5831:2: error: unknown type name ‘zmq_event_t’
  zmq_event_t event;
  ^
src/pre_generated-zmq.nobj.c:5904:39: error: request for member ‘event’ in something not a structure or union
  if(zmq_msg_size(msg) != (sizeof(event.event) + sizeof(event.value))) {
                                       ^
src/pre_generated-zmq.nobj.c:5904:61: error: request for member ‘value’ in something not a structure or union
  if(zmq_msg_size(msg) != (sizeof(event.event) + sizeof(event.value))) {
                                                             ^
src/pre_generated-zmq.nobj.c:5910:16: error: request for member ‘event’ in something not a structure or union
  memcpy(&(event.event), data, sizeof(event.event));
                ^
src/pre_generated-zmq.nobj.c:5910:43: error: request for member ‘event’ in something not a structure or union
  memcpy(&(event.event), data, sizeof(event.event));
                                           ^
src/pre_generated-zmq.nobj.c:5911:16: error: request for member ‘value’ in something not a structure or union
  memcpy(&(event.value), data+sizeof(event.event), sizeof(event.value));
                ^
src/pre_generated-zmq.nobj.c:5911:42: error: request for member ‘event’ in something not a structure or union
  memcpy(&(event.value), data+sizeof(event.event), sizeof(event.value));
                                          ^
src/pre_generated-zmq.nobj.c:5911:63: error: request for member ‘value’ in something not a structure or union
  memcpy(&(event.value), data+sizeof(event.event), sizeof(event.value));
                                                               ^
src/pre_generated-zmq.nobj.c:5912:22: error: request for member ‘event’ in something not a structure or union
  ev->event_id = event.event;
                      ^
src/pre_generated-zmq.nobj.c:5913:19: error: request for member ‘value’ in something not a structure or union
  ev->value = event.value;
                   ^
src/pre_generated-zmq.nobj.c:5919:19: error: request for member ‘value’ in something not a structure or union
  ev->value = event.value;
                   ^

Error: Build error: Failed compiling object src/pre_generated-zmq.nobj.o
@neomantra
Copy link
Owner

Hello, since this project is dead, I was going to refer you to Jupyter. But I see that they refer to this repo! And another repo has forked this (IPyLua, but it also seems abandoned?!

In trying to revive this, I was confronted by errors related to these bugs:

The world has changed a lot since I made this 5 years ago, and the Lua bindings are just as old. I'd probably check what Jupyter has been up to and us the now official lzmq library

I will be sending over some gists soon that get everything built in a Dockerfile, but I don't really have a way to test it all right now. Let me know how it goes!

@neomantra
Copy link
Owner

This gist has two files... one is a Dockerfile that shows all the versions and actions. The other is a patch for lua-zmq .

https://gist.github.com/neomantra/419a2516f56b63fc4965f64576fec830

@gitbeyond
Copy link
Author

Thank you for your answer.I tried other lua kernels, but none of them worked.I just want a lua ipython tool that implements code tips.But it didn't work out.

@neomantra
Copy link
Owner

Well your issue post has inspired me to re-explore this project a bit. IPython and Jupyter have definitely flourished in the past 5 years....

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