Created
August 10, 2014 13:18
-
-
Save qknight/4befede4037b22a57734 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
joachim@lenovo-t530 /tmp % cat /tmp/prosody | |
#! /nix/store/ihmkc7z2wqk3bbipfnlh0yjrlfkkgnv6-bash-4.2-p45/bin/bash -e | |
export LUA_PATH="/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/share/lua/5.1/?.lua;/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/share/lua/5.1/socket/?.lua" | |
export LUA_CPATH="/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/lib/lua/5.1/socket/?.so;/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/lib/lua/5.1/mime/?.so" | |
exec /tmp/lua.sh "${extraFlagsArray[@]}" "$@" | |
joachim@lenovo-t530 /tmp % cat /tmp/lua.sh | |
#!/nix/store/bsmh8144crlw63zmqyig3yh5hk83pcyd-lua-5.1.5/bin/lua | |
print(package.path); | |
joachim@lenovo-t530 /tmp % ./prosody | |
/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/share/lua/5.1/?.lua;/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/share/lua/5.1/socket/?.lua |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no i did
require socket, see:
joachim@lenovo-t530 /tmp % cat /tmp/lua.sh
!/nix/store/bsmh8144crlw63zmqyig3yh5hk83pcyd-lua-5.1.5/bin/lua
print(package.path);
require "socket"
20 joachim@lenovo-t530 /tmp % ./prosody
/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/share/lua/5.1/?.lua;/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/share/lua/5.1/socket/?.lua
/nix/store/bsmh8144crlw63zmqyig3yh5hk83pcyd-lua-5.1.5/bin/lua: ...z2bkr5y98-lua-sockets-2.0.2/share/lua/5.1/socket.lua:13: module 'socket.core' not found:
no field package.preload['socket.core']
no file '/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/share/lua/5.1/socket/core.lua'
no file '/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/share/lua/5.1/socket/socket/core.lua'
no file '/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/lib/lua/5.1/socket/socket/core.so'
no file '/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/lib/lua/5.1/mime/socket/core.so'
no file '/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/lib/lua/5.1/socket/socket.so'
no file '/nix/store/l2ngkvqc0svjdbh79r9ywygz2bkr5y98-lua-sockets-2.0.2/lib/lua/5.1/mime/socket.so'
stack traceback:
[C]: in function 'require'
...z2bkr5y98-lua-sockets-2.0.2/share/lua/5.1/socket.lua:13: in main chunk
[C]: in function 'require'
/tmp/lua.sh:3: in main chunk
[C]: ?