I'm getting
module 'socket' not found
as soon as I run any program because its running with lua 5.3
Here's the full output:
Program starting as '"/usr/bin/lua" -e "io.stdout:setvbuf('no')" "/tmp/.KluqPM"'.
Program 'lua' started in '/home/afonso/git/test/lua' (pid: 12855).
/usr/bin/lua: /usr/share/zbstudio/lualibs/mobdebug/mobdebug.lua:102: module 'socket' not found:
no field package.preload['socket']
no file '/usr/share/lua/5.3/socket.lua'
no file '/usr/share/lua/5.3/socket/init.lua'
no file '/usr/lib/lua/5.3/socket.lua'
no file '/usr/lib/lua/5.3/socket/init.lua'
no file './socket.lua'
no file './socket/init.lua'
no file './socket.lua'
no file './socket/init.lua'
no file './lua/socket.lua'
no file './lua/socket/init.lua'
no file '/usr/share/zbstudio/lualibs/socket/socket.lua'
no file '/usr/share/zbstudio/lualibs/socket.lua'
no file '/usr/share/zbstudio/lualibs/socket/socket/init.lua'
no file '/usr/share/zbstudio/lualibs/socket/init.lua'
no file '/usr/lib/lua/5.3/socket.so'
no file '/usr/lib/lua/5.3/loadall.so'
no file './socket.so'
no file '/usr/share/zbstudio/bin/linux/x64/libsocket.so'
no file '/usr/share/zbstudio/bin/linux/x64/clibs/socket.so'
no file '/usr/share/zbstudio/bin/linux/x64/clibs/libsocket.so'
stack traceback:
[C]: in function 'require'
/usr/share/zbstudio/lualibs/mobdebug/mobdebug.lua:102: in main chunk
[C]: in function 'require'
/tmp/.KluqPM:1: in main chunk
[C]: in ?
Program completed in 0.02 seconds (pid: 12855).
This is easly solved by executing
sudo luarocks install luasocket
but it would be nice if I didn't have to
Search Criteria
Package Details: zerobrane-studio 2.01-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/zerobrane-studio.git (read-only, click to copy) |
---|---|
Package Base: | zerobrane-studio |
Description: | A lightweight Lua-based IDE for Lua |
Upstream URL: | https://studio.zerobrane.com/ |
Keywords: | ide lua zerobrane |
Licenses: | MIT |
Submitter: | losinggeneration |
Maintainer: | alerque |
Last Packager: | alerque |
Votes: | 43 |
Popularity: | 0.000000 |
First Submitted: | 2012-10-16 15:00 (UTC) |
Last Updated: | 2024-04-02 10:53 (UTC) |
Dependencies (14)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- lua
- lua-copasAUR
- lua-filesystem
- lua-lpeg
- lua-sec (lua-sec-gitAUR)
- lua-socket (lua-socket-gitAUR)
- wxluaAUR (wxlua-gitAUR)
- cmake (cmake-gitAUR) (make)
- gsl-shell (optional) – te debug GNU Scientific Library shell programs
- love (love10AUR) (optional) – to debug löve programs
- lua-busted (optional) – to debug busted test specs
- lua51 (luajit-symlinksAUR) (optional) – to debug lua51 programs
- lua52 (optional) – to debug lua52 programs
Required by (0)
Sources (3)
INdek commented on 2017-04-03 23:22 (UTC)
migerh commented on 2016-12-24 19:43 (UTC)
Thanks for flagging this out of date. Completely missed it because it wasn't tagged on GitHub. Will take care at the beginning of next week after the holidays.
hollunder commented on 2016-09-27 19:18 (UTC)
I just noticed this again. This warning has been there for a long time. I am not sure it is entirely harmless: https://bugzilla.redhat.com/show_bug.cgi?id=1200611
Apparently they got rid of it through a mass rebuild.
I just saw that wxgtk is currently flagged out of date (since a month...), so perhaps that rebuild will fix this mismatch.
migerh commented on 2016-09-12 19:43 (UTC)
@gokcen: Apparently this comes from wxgtk:
https://git.archlinux.org/svntogit/packages.git/tree/trunk/make-abicheck-non-fatal.patch?h=packages/wxgtk
Not much I can do from here. Seems to be harmless anyways: https://bbs.archlinux.org/viewtopic.php?id=196715
migerh commented on 2016-09-12 17:42 (UTC)
I just rebuilt wxlua-svn and now I get the same issue. I'll take a look at it.
gokcen commented on 2016-09-11 20:39 (UTC)
I also get same error about wxlua. It seems /usr/lib/lua/5.2 is not in LUA_CPATH, it gives this warning if I add it:
$ LUA_CPATH='/usr/lib/lua/5.2/?.so' lua5.2 -e 'require("wx")'
22:33:05: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8).
migerh commented on 2016-08-12 05:33 (UTC)
Have you (re)installed the wxlua-svn package? What happens when you run
$ lua5.2 -e 'require("wx")'
tastyminerals commented on 2016-08-11 22:13 (UTC) (edited on 2016-08-11 22:13 (UTC) by tastyminerals)
Hmm, I don't know guys but "Lua module "wx" is not found" persists for me.
I have been trying to build ZeroBrane for almost half a year now that I am forced to report it here. I can install ZeroBrane from their sh installer but it comes with some visual bugs, so I decided to give AUR package another try. It still breaks. What can I do?
menta commented on 2015-12-21 12:57 (UTC)
@migerh:
Thank you, it's working now! :)
migerh commented on 2015-12-20 20:15 (UTC)
@menta:
I updated wxlua-svn with a patch that should fix the problem for now. Please rebuild wxlua-svn and then try to build zerobrane-studio. Additionaly, an issue was raised with the wxlua project.
Pinned Comments
alerque commented on 2020-02-27 16:20 (UTC)
PSA: I've started hosting this and all its dependencies as prebuilt packages in my repository for those that want to install them using
pacman
without messing around with building from the AUR.