I get the same error about wx not being found.
lua5.2 -e 'require("wx")'
[1] 18095 segmentation fault (core dumped) lua5.2 -e 'require("wx")'
This is the reason the cmake-script trips up and says it can't find the module.
Seems to work from within the interactive lua5.2 environment though.
Search Criteria
Package Details: zerobrane-studio 2.01-5
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: | 2025-03-31 08:16 (UTC) |
Dependencies (15)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- lua
- lua-copasAUR
- lua-coxpcallAUR
- lua-filesystem
- lua-lpeg
- lua-sec (lua-sec-gitAUR)
- lua-socket (lua-socket-gitAUR)
- wxluaAUR (wxlua-gitAUR)
- cmake (cmake-gitAUR, cmake3AUR) (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)
hollunder commented on 2017-10-01 19:41 (UTC) (edited on 2017-10-01 19:47 (UTC) by hollunder)
Popolon commented on 2017-09-20 18:31 (UTC)
nheird: tried with your patch, it still doesn't work:
CMake Error at CMakeLists.txt:35 (message):
Lua module "wx" is not found
Call Stack (most recent call first):
CMakeLists.txt:105 (check_lua_module)
I've
* lua52 5.2.4-2
and from aur:
* wxlua-svn 252-1
nheird commented on 2017-06-02 21:34 (UTC) (edited on 2017-06-02 21:35 (UTC) by nheird)
Still out of date, i suggest this patch (work for my use case)
https://ptpb.pw/hzDa
diff --git a/PKGBUILD b/PKGBUILD
index 08d23e0..0635119 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Michael Gerhaeuser <michael.gerhaeuser@gmail.com>
# Contributor: Harley Laue <losinggeneration@gmail.com>
pkgname=zerobrane-studio
-pkgver=1.50
+pkgver=1.60
pkgrel=1
pkgdesc="A lightweight Lua-based IDE for Lua"
arch=(any)
@@ -14,22 +14,21 @@ conflicts=('zerobrane-studio-git')
optdepends=('love: to debug love programs')
_github_user="pkulchenko"
_github_project="ZeroBraneStudio"
-_github_rev="53fc3f0"
-source=("https://github.com/$_github_user/$_github_project/tarball/${_github_rev}"
+source=("https://github.com/$_github_user/$_github_project/archive/${pkgver}.zip"
"zbstudio.patch"
"user.lua")
-sha512sums=('d7720c4ef014da2bb661f109014fc4200a3d8cf94db10f03a563b3bcfcf01264dabbf7f6a0c2120a4dd86256e95f72673c0f86812f9feeb14d74f5e3403b3b01'
+sha512sums=('29b2dea2da1b9ba49c18b7c28733dc8b81a2fb48955897189f85dacce533cfbd769a76fd84a8524c558178472bc8d46d58321658940a4a56e8d90ad84ac13ff7'
'c36898ce75db091ed1c9f63d18c6604faf9cc1c33eee5ea6d2c4c6d313d1c429c1ef21e3d6e85671353354e5329559e5da5cd6b53c71350bca4d30a42f1233ad'
'2edc1ba142cc13e49a6b429e4b240eab2bfc252b55c90b95d288d72a1175c99e4aef5dffd1be867ff2b6ed73ca6ec0de41440e5fc31f88059cc59a16aa1e7955')
prepare() {
- cd "$srcdir/$_github_user-$_github_project-$_github_rev"
+ cd "$srcdir/$_github_project-$pkgver"
patch -p1 < "$srcdir/zbstudio.patch"
}
build() {
- cd "$srcdir/$_github_user-$_github_project-$_github_rev/build"
+ cd "$srcdir/$_github_project-$pkgver/build"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLUA_EXECUTABLE=/usr/bin/lua5.2
@@ -38,7 +37,7 @@ build() {
}
package() {
- cd "$srcdir/$_github_user-$_github_project-$_github_rev/build"
+ cd "$srcdir/$_github_project-$pkgver/build"
make DESTDIR="$pkgdir/" install
install -d "$pkgdir/usr/share/licenses/$pkgname"
cp ../LICENSE "$pkgdir/usr/share/licenses/$pkgname"
INdek commented on 2017-04-03 23:22 (UTC)
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
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")'
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.