Giter Site home page Giter Site logo

tarantool / luarocks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luarocks/luarocks

0.0 21.0 5.0 11.83 MB

LuaRocks is a deployment and management system for Lua modules.

Home Page: http://www.luarocks.org

License: MIT License

Makefile 0.61% Shell 1.69% Lua 90.68% C 3.49% C++ 0.02% Batchfile 3.50%

luarocks's Introduction

LuaRocks

A package manager for Lua modules.

Build Status Luacheck Build Status Coverage Status Join the chat at https://gitter.im/luarocks/luarocks

Main website: luarocks.org

It allows you to install Lua modules as self-contained packages called rocks, which also contain version dependency information. This information can be used both during installation, so that when one rock is requested all rocks it depends on are installed as well, and also optionally at run time, so that when a module is required, the correct version is loaded. LuaRocks supports both local and remote repositories, and multiple local rocks trees.

Installing

License

LuaRocks is free software and uses the MIT license, the same as Lua 5.x.

luarocks's People

Contributors

0x501d avatar alloyed avatar bhattigurjot avatar carlsmedstad avatar catwell avatar daurnimator avatar dwenegar avatar echiesse avatar fperrad avatar geoffleyland avatar georgeroman avatar hishamhm avatar ignacio avatar mascarenhas avatar mpeterv avatar norman avatar p-ouellette avatar robooo avatar rosik avatar rpavlik avatar rrthomas avatar rtsisyk avatar siffiejoe avatar slact avatar sylvanaar avatar the-fyp avatar tieske avatar totktonada avatar xpol avatar zash avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

luarocks's Issues

Get rid of useless Lua version warning

Every time I run a command, either install or anything else, I see "welcome string":

Warning: Could not find a Lua interpreter for version 5.1 in your PATH.
Modules may not install with the correct configurations.
You may want to specify to the path prefix to your build of Lua 5.1 using --lua-dir

It's annoying

Invalid install of cmake rocks without findutils

Reproduced as follows.

docker run -it fedora:35
dnf install curl cmake make gcc unzip git -y
curl -L https://tarantool.io/QvHOVNc/release/2/installer.sh | bash
dnf install tarantool tarantool-devel -y
tarantoolctl rocks install crud
[root@acfd33969b57 /]# ll .rocks/share/tarantool/
total 36
-rw-r--r-- 1 root root  7474 Dec 22 12:09 checks.lua
drwxr-xr-x 2 root root  4096 Dec 22 12:09 errors
-rw-r--r-- 1 root root 16953 Dec 22 12:09 errors.lua
drwxr-xr-x 6 root root  4096 Dec 22 12:09 rocks
[root@acfd33969b57 /]# tarantool
Tarantool 2.10.4-0-g816000e10
type 'help' for interactive help
tarantool> require('errors')
---
- netbox_call: 'function: 0x40cc7848'
  list: 'function: 0x40cc78b8'
  new: 'function: 0x40cc78f8'
  is_error_object: 'function: 0x41dafa38'
  netbox_eval: 'function: 0x41da8868'
  netbox_wait_async: 'function: 0x40cc7890'
  set_deprecation_handler: 'function: 0x41dafce8'
  new_class: 'function: 0x4142d230'
  wrap: 'function: 0x40cc78d8'
  assert: 'function: 0x40cc7958'
  deprecate: 'function: 0x4142cb20'
  pcall: 'function: 0x40cc7938'
...

tarantool> require('crud')
---
- error: "module 'crud' not found:\n\tno field package.preload['crud']\n\tno file
    '/crud.lua'\n\tno file '/crud/init.lua'\n\tno file '/crud.so'\n\tno file '/.rocks/share/tarantool/crud.lua'\n\tno
    file '/.rocks/share/tarantool/crud/init.lua'\n\tno file '/.rocks/lib/tarantool/crud.so'\n\tno
    file '/root/.luarocks/share/lua/5.1/crud.lua'\n\tno file '/root/.luarocks/share/lua/5.1/crud/init.lua'\n\tno
    file '/root/.luarocks/share/lua/crud.lua'\n\tno file '/root/.luarocks/share/lua/crud/init.lua'\n\tno
    file '/usr/local/share/tarantool/crud.lua'\n\tno file '/usr/local/share/tarantool/crud/init.lua'\n\tno
    file '/usr/share/tarantool/crud.lua'\n\tno file '/usr/share/tarantool/crud/init.lua'\n\tno
    file '/usr/local/share/lua/5.1/crud.lua'\n\tno file '/usr/local/share/lua/5.1/crud/init.lua'\n\tno
    file '/usr/share/lua/5.1/crud.lua'\n\tno file '/usr/share/lua/5.1/crud/init.lua'\n\tno
    file '/root/.luarocks/lib/lua/5.1/crud.so'\n\tno file '/root/.luarocks/lib/lua/crud.so'\n\tno
    file '/usr/local/lib64/tarantool/crud.so'\n\tno file '/usr/lib64/tarantool/crud.so'\n\tno
    file '/usr/local/lib64/lua/5.1/crud.so'\n\tno file '/usr/lib64/lua/5.1/crud.so'"
...

After

dnf install -y findutils
tarantoolctl rocks install crud
[root@e0f70aef5264 /]# ll .rocks/share/tarantool/
total 56
drwxr-xr-x 3 root root  4096 Dec 22 12:09 cartridge
-rw-r--r-- 1 root root  7474 Dec 22 12:09 checks.lua
drwxr-xr-x 6 root root  4096 Dec 22 12:09 crud
-rw-r--r-- 1 root root  4691 Dec 22 12:09 crud.lua
drwxr-xr-x 2 root root  4096 Dec 22 12:09 errors
-rw-r--r-- 1 root root 16953 Dec 22 12:09 errors.lua
drwxr-xr-x 6 root root  4096 Dec 22 12:09 rocks
drwxr-xr-x 4 root root  4096 Dec 22 12:09 vshard
[root@e0f70aef5264 /]# tarantool
Tarantool 2.10.4-0-g816000e10
type 'help' for interactive help

tarantool> require('errors')
---
- netbox_call: 'function: 0x41a8bc28'
  list: 'function: 0x41a8bc98'
  new: 'function: 0x41a8bcd8'
  is_error_object: 'function: 0x418b0898'
  netbox_eval: 'function: 0x418b7dc8'
  netbox_wait_async: 'function: 0x41a8bc70'
  set_deprecation_handler: 'function: 0x418b0650'
  new_class: 'function: 0x41a8b1d8'
  wrap: 'function: 0x41a8bcb8'
  assert: 'function: 0x41a8bd38'
  deprecate: 'function: 0x418b06e0'
  pcall: 'function: 0x41a8bd18'
...

tarantool> require('crud')
"tuple.keydef" module is not found. Built-in "key_def" is used
"tuple.merger" module is not found. Built-in "merger" is used
---
- replace_object_many: 'function: 0x40cffde8'
  upsert: 'function: 0x40cfff00'
  len: 'function: 0x41860aa8'
  delete: 'function: 0x418604b8'
  replace_object: 'function: 0x40cfc9c0'
  truncate: 'function: 0x41860070'
  init_router: 'function: 0x41861068'
  upsert_object: 'function: 0x418603c0'
  reset_stats: 'function: 0x41dcb9d0'
  stats: 'function: 0x41dcbde0'
  cut_rows: 'function: 0x402da8c8'
  replace_many: 'function: 0x40cfcab8'
  stop_router: 'function: 0x418610a8'
  pairs: 'function: 0x41860708'
  stop_storage: 'function: 0x418610c8'
  cfg:
    stats_quantile_tolerated_error: 0.001
    stats_driver: local
    stats_quantile_age_buckets_count: 2
    stats_quantiles: false
    stats_quantile_max_age_time: 60
    stats: false
  insert_many: 'function: 0x40cf7c90'
  insert: 'function: 0x40cfe850'
  max: 'function: 0x41860d70'
  storage_info: 'function: 0x402357c8'
  replace: 'function: 0x40cfc8c8'
  update: 'function: 0x40cfc800'
  min: 'function: 0x41860c78'
  select: 'function: 0x418605b0'
  insert_object: 'function: 0x40cfe980'
  insert_object_many: 'function: 0x40cfd898'
  upsert_many: 'function: 0x418601d0'
  unflatten_rows: 'function: 0x40ad30b0'
  init_storage: 'function: 0x41860e08'
  cut_objects: 'function: 0x41b53c88'
  count: 'function: 0x41860b80'
  upsert_object_many: 'function: 0x418602c8'
  get: 'function: 0x40cfc728'
...

Strace provided:
install.log

The bug might be not a luarocks one, but it's definitely a good place to start.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.