rrthomas / cw

Colorizing wrapper generator for shell commands, with many pre-defined wrappers
GNU General Public License v3.0
43 stars 2 forks source link

/usr/bin/lua: /usr/bin/cw:39: module 'std' not found: #12

Closed solbu closed 4 years ago

solbu commented 5 years ago

Hi, Thomas.

I am the Mageia cw maintainer, and I can't get the new lua based version to work. I stumbled across your fork a few days ago, and I'm attempting to upgrade our old 1.0.16 version. We have a policy that all software must be compiled from the source code, so No «rock» installation.

Apparently it can't find the std module, but seaches for the module yields absolutely no relevant results of any kind, and there is no list of dependencies in the documentaiton.

When I run «cw --help», I get this output:

$ cw --help
/usr/bin/lua: /usr/bin/cw:39: module 'std' not found:
        no field package.preload['std']
        no file '/usr/share/lua/5.2/std.lua'
        no file '/usr/share/lua/5.2/std/init.lua'
        no file '/usr/lib/lua/5.2/std.lua'
        no file '/usr/lib/lua/5.2/std/init.lua'
        no file '/usr/lib64/lua/5.2/std.lua'
        no file '/usr/lib64/lua/5.2/std/init.lua'
        no file '/usr/lib/lua/5.2/std.so'
        no file '/usr/lib/lua/5.2/loadall.so'
        no file '/usr/lib64/lua/5.2/std.so'
        no file '/usr/lib64/lua/5.2/loadall.so'
        no file './std.so'
stack traceback:
        [C]: in function 'require'
        /usr/bin/cw:39: in main chunk
        [C]: in ?
solbu commented 5 years ago

If we can't get this to work, we are dropping it from the next Mageia release.

rrthomas commented 5 years ago

All the dependencies are listed in the "dependencies" section of rockspecs.lua.

lparsons commented 4 years ago

I run into the same issue, I have luarocks installed via linuxbrew. I've installed stdlib via luarocks install stdlib but I still get this error. Any advice?

rrthomas commented 4 years ago

@lparsons: install cw via luarocks.

Closing the issue, as I don't see an actual problem here.

lparsons commented 4 years ago

Sorry, I wasn't clear. I installed luarocks using linuxbrew. Then I used luarocks to install cw. That is when I ran into the issue. In an attempt to fix it, I tried using luarocks to install stdlib, but that didn't fix anything.

rrthomas commented 4 years ago

@lparsons, most likely a problem with your linuxbrew setup. Linuxbrew's luarocks package should set up the lua it uses suitably.