How to install libraries?
Posted: Thu Apr 02, 2020 4:54 pm
help, how can I install a library in love2d and lua? I've been searching for days and can't find how to install the "push" library :c
Code: Select all
push = require "push"
Code: Select all
Error: main.lua:1: module 'push' not found:
no field package.preload['push']
no 'push' in LOVE game directories.
no file 'push' in LOVE paths.
no file './push.lua'
no file '/usr/share/luajit-2.1.0-beta3/push.lua'
no file '/usr/local/share/lua/5.1/push.lua'
no file '/usr/local/share/lua/5.1/push/init.lua'
no file '/usr/share/lua/5.1/push.lua'
no file '/usr/share/lua/5.1/push/init.lua'
no file './push.so'
no file '/usr/local/lib/lua/5.1/push.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/push.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[love "boot.lua"]:345: in function <[love "boot.lua"]:341>
[C]: in function 'require'
main.lua:1: in main chunk
[C]: in function 'require'
[love "boot.lua"]:316: in function <[love "boot.lua"]:126>
[C]: in function 'xpcall'
[love "boot.lua"]:355: in function <[love "boot.lua"]:348>
[C]: in function 'xpcall'