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

installing moonscript bug #443

Closed
Vincent-vst opened this issue Nov 14, 2022 · 2 comments
Closed

installing moonscript bug #443

Vincent-vst opened this issue Nov 14, 2022 · 2 comments

Comments

@Vincent-vst
Copy link

Vincent-vst commented Nov 14, 2022

Hello, I want to give moonscript a try but I ran into some errors.
This is what I did so far :

$ sudo luarocks install moonscript
Installing https://luarocks.org/moonscript-0.5.0-1.src.rock

moonscript 0.5.0-1 depends on lua >= 5.1 (5.4-1 provided by VM)
moonscript 0.5.0-1 depends on lpeg >= 0.10, ~= 0.11 (1.0.2-1 installed)
moonscript 0.5.0-1 depends on alt-getopt >= 0.7 (0.7.0-1 installed)
moonscript 0.5.0-1 depends on luafilesystem >= 1.5 (1.8.0-1 installed)
moonscript 0.5.0-1 is now installed in /usr (license: MIT)

and then

$ moon --version
/usr/bin/lua5.4: /usr/share/lua/5.4/alt_getopt.lua:24: attempt to call a nil value (global 'module')
stack traceback:
	/usr/share/lua/5.4/alt_getopt.lua:24: in main chunk
	[C]: in function 'require'
	/usr/lib/luarocks/rocks-5.4/moonscript/0.5.0-1/bin/moon:2: in main chunk
	[C]: in ?
@Annwan
Copy link

Annwan commented Nov 25, 2022

To install on lua 5.4 you need the dev version of moonscript, the stable package on luarocks being quite old. you can obtain it by adding the --dev flag to the luarocks invocation.

@Vincent-vst
Copy link
Author

Thx, it's fixed !

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