LuaDist / Repository

Repository of LuaDist modules available for installation using the luadist-git command line tool
www.luadist.org
243 stars 41 forks source link

luadist: not enough memory for state #97

Closed joshber closed 12 years ago

joshber commented 12 years ago

Get this message whenever I try to run luadist. Does not depend on what command-line args I invoke, nor on what else I've been doing since my last power cycle.

Seems to date from when I installed lua-zmq after the dist was updated. Any ideas?

drahosp commented 12 years ago

Please provide more information about your OS and system so I can try to reproduce it. Pasting the invocation line with the error would be also helpful. Also please provide the output of luadist list so I know what packages and versions are installed.

joshber commented 12 years ago

Forgive me, it was sloppy to be so terse. Running MacOS X 10.7.4

I can't seem to get any output. Any invocation yields the message from the issue headline:

Vajra:lua josh$ LuaDist-Batteries/bin/luadist -debug list LuaDist-Batteries/bin/luadist: not enough memory for state

Vajra:lua josh$ LuaDist-Batteries/bin/luadist list LuaDist-Batteries/bin/luadist: not enough memory for state

and so on.

drahosp commented 12 years ago

Looking at the srlua code I see the related message. This is right after initialization of the lua library so my guess is you are not using the original liblua.dylib. Did you by any chance define LD_LIBRARY_PATH or DYLD_LIBRARY_PATH? Another possibility is that the library was replaced .. maybe you tried to get LuaJIT working ? Can you please bootstrap again and see if the problem remains as I cannot reproduce it with just the descriptios you provided.

joshber commented 12 years ago

Ah. Yes. I did attempt to install LuaJIT. Re-boostrapping has fixed it.

I figured that since "luadist install luajit" fails on the provides="lua-5.1.5" conflict (and -provides seems not to be working in the current luadist), the install simply aborted without altering any of the .so's.

Thank you. I'll be more patient while you update the Repository.

drahosp commented 12 years ago

Ah, that makes sense. The provides block works as intended as it prevents you from installing luajit over lua. However you can always deploy LuaJIT with batteries separately eg: luadist /path/to/my/luajit install luajit batteries. Some packages may still have compatibility issues such as metalua etc. LuaDist was designed to manage multiple deployments for separate projects/applications/other purposes. I guess its time to update the documentation to make this more clear. Thank you for reporting back.