Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:39
    codecov-io commented #1138
  • 06:03
    RussellHaley closed #1124
  • 06:03
    RussellHaley commented #1124
  • 05:40
    RussellHaley synchronize #1138
  • 04:31
    gpanders opened #1140
  • Jan 26 15:17
    edrx commented #1132
  • Jan 26 13:54
    daurnimator commented #1132
  • Jan 26 01:55
    Travis luarocks/luarocks (master) passed (2442)
  • Jan 26 01:04

    hishamhm on drop-luasec-in-tests

    (compare)

  • Jan 26 01:04

    hishamhm on master

    build: do not download sources … speed up external dependency ch… appveyor: bump Python to 3.7 and 2 more (compare)

  • Jan 26 01:04
    hishamhm closed #1139
  • Jan 25 00:28
  • Jan 24 23:38
    Travis luarocks/luarocks (drop-luasec-in-tests) passed (2440)
  • Jan 24 22:40
    hishamhm opened #1139
  • Jan 24 22:39

    hishamhm on drop-luasec-in-tests

    appveyor: bump Python to 3.7 Windows: force .lib for LUALIB tests: drop LuaSec dependency o… (compare)

  • Jan 24 19:37
    Travis nix-community/luarocks-nix (nix_rebased) failed (1)
  • Jan 24 13:25
    hishamhm commented #1136
  • Jan 24 09:41
    aashimgarg commented #1136
  • Jan 24 07:58
    Travis luarocks/luarocks (bump-luasec) passed (2438)
  • Jan 24 07:07
    Travis luarocks/luarocks (deploy) still failing (2439)
Thijs Schreijer
@Tieske
If you just type luarocks then you'll get at the bottom of the output the file paths to the rock trees. You can also browse those.
feyjobs
@feyjobs
I checked command-line help, and it show it downloaded in /usr/local, then I found the lua code in /user/local/share. Does it download the source code there by default? I mean $prefix/share ?
daurnimator
@daurnimator
@feyjobs 'it'?
feyjobs
@feyjobs
Command-line shows rocks trees is /usr/local
daurnimator
@daurnimator
@feyjobs: how did you ./configure your luarocks? how did you install it?
feyjobs
@feyjobs
Just ./configure && make && make install
daurnimator
@daurnimator
right
so yeah that's normal
Matthieu Coudron
@teto
current working directory is the root of the git repo of lua-argparse. luarocks test won't import/find argparse since it is the "src" folder. Is that normqal ?
Hisham Muhammad
@hishamhm
@teto supposedly busted should add ./src/?.lua to your package path automatically (see flag -m). not sure what's going on...
Matthieu Coudron
@teto
@hishamhm ok thanks I will check for it then.
feyjobs
@feyjobs
image.png
Hello, I got a demo about luarocks from openresty like this
Is that mean luarockt.loader didn’t load the packages installed, but add the path to Lua search dir?
matrixbot
@matrixbot
arcade Yeah, you need to set seqarch path correctly. Consult nginx logs - you will find the whole list of dirs it's checking for modules.
Aashim Garg
@aashimgarg
Hi everyone. I am new to open source. Can anyone tell me how to start my contribution.
Thijs Schreijer
@Tieske
wrt to LuaRocks, probably best to browse the open issues and see if there are any beginner issues that need fixing. @aashimgarg
a simple one might be this one posted today: luarocks/luarocks#1128
Aashim Garg
@aashimgarg
Thanks @Tieske .
Aashim Garg
@aashimgarg

Error in insalling luarocks install dkjson

Error: Your user does not have write permissions in /usr/local/lib/luarocks/rocks
-- you may want to run as a privileged user or use your local tree with --local.

Aashim Garg
@aashimgarg
Can anyone help me with this error!
Caleb Maclennan
@alerque
That error is pretty much what it says on the tin. You are trying to install something to your system's root filesystem as your normal user. Either you need to run as root (or with sudo) or you need to speficify that you only want to install it local to your user (in which case you don't need root permissions).
Aashim Garg
@aashimgarg
According to you what should i do?
Should i run sudo or should i need to speficify that i only want to install it locally.
Caleb Maclennan
@alerque
Depends on what you are trying to accomplish, what kind of system this is, etc. I personally never install anything to my base system except through my distro package manager, and keep anything else in project specific trees (not ever universal to my user, using --tree to specify a vender directory inside a specific project).
There isn't a one size fits all approach though, its up to you how to manage your system.
Aashim Garg
@aashimgarg
Thanks for the suggestion @alerque !
Ill try it install it locally
Aashim Garg
@aashimgarg
Screenshot from 2020-01-16 17-36-46.png
I googled the required command for lua but i was not able to find the soluion.
Help needed!
Aashim Garg
@aashimgarg
@alerque @Tieske any clue?
Thijs Schreijer
@Tieske
Lua is trying to load the library or module "luarocks.loader", it shows you all the possible locations it looked but couldn't find it. You can set the LUA_PATH enviornment variables to indicate to Lua where the files are
here's an intro to how that works: http://www.thijsschreijer.nl/blog/?p=1025
LuaRocks creates a rocktree where it installs the modules. You must have those rock trees in your path for Lua to find the modules. To automate that process Luarocks has the eval command to help you with that. See luarocks eval --help
hth @aashimgarg
Aashim Garg
@aashimgarg
we need to have rocktree installed in our system for lua modules?
Caleb Maclennan
@alerque
No, if you installed the lua rock to you system it would be a system install, you are using --tree or --local to install to a location in your project or user directory respectively. What you need to then use those is that tree path in you LUA_PATH environment variable.
Aashim Garg
@aashimgarg
Thanks! I will try
Aashim Garg
@aashimgarg
Screenshot from 2020-01-18 02-16-12.png
Thijs Schreijer
@Tieske
@aashimgarg a "rocktree" if a file/directory structure. If you just do luarocks then at the bottom of the output it will list the local rocktrees. You can explore it's contents.
the --tree or --local argument can be used with luarocks (not with lua), to indicate where (in what tree) luarocks needs to install something.
Aashim Garg
@aashimgarg
ok!
mothilv
@Starkyv
hi, I'm new here. Can someone suggest me some prerequisites before I contribute to this project?
Thijs Schreijer
@Tieske
the project doesn't have any prerequisites, other than "don't be evil" @Starkyv
wrt getting started, just familiarize yourself with LuaRocks and then checkout some issues on github to see what you can come up with for a fix
hth
Aashim Garg
@aashimgarg
luarocks/luarocks#1136
Please see this issue! With regards!
Aashim Garg
@aashimgarg
i tried running the eval command but it was showing :eval command not found
Aashim Garg
@aashimgarg
Hey @Tieske @hishamhm can i mention in the wiki that if the dependencies are already installed we can use the command 'sudo apt autoremove'?