Comments (9)
All references to lib/lua/5.1 are now configurable through the luarocks.cfg mechanisms.
from luarocks.
Sorry for the noise.
As an example of the fix, the right /etc/luarocks/config.lua for x86_64 platform would be:
rocks_servers = {
[[http://luarocks.org/repositories/rocks]]
}
rocks_trees = {
home..[[/.luarocks]],
{ root = /usr,
bin_dir = /usr/bin,
lib_dir = /usr/lib64/lua/5.1,
lua_dir = /usr/share/lua/5.1
}
}
Works for me.
from luarocks.
Though the fix is not complete:
when using --tree arg, LR doesn't look at rocks_trees and builds path with lib_modules_path, which is hardcoded to "/lib/lua/"..lua_version.
I filed FR: #83
Care to reopen?
from luarocks.
Yes, it uses lib_modules_path from cfg.lua, but that is overrideable in config.lua as well. I'll keep #83 as valid, but lib/lua/5.1 is not hardcoded (it's just an overrideable defult).
from luarocks.
Yes! exactly. Again, sorry for the noise.
Then the correct /etc/luarocks/config.lua for x86_64 platform would be:
rocks_servers = {
[[http://luarocks.org/repositories/rocks]]
}
rocks_trees = {
home..[[/.luarocks]],
[[/usr]]
}
lib_modules_path = "/lib64/lua/"..lua_version
Works for me, even with --tree option.
from luarocks.
I just started playing with luarocks a few days ago and hit this problem, so consider me a luarocks noob.
Your reply above using lib_modules_path certainly works for me, but when I first hit this problem a couple of days ago, I had thought the way to fix this was to change the definition of LUA_LIBDIR in the site_config.lua file from "/usr/lib" to "/usr/lib64". However, that approach didn't work. Hisham, could you comment on whether this approach should have worked or not?
from luarocks.
No, they are different things. LUA_LIBDIR is the place where the shared library of the Lua interpreter is supposed to be. lib_modules_path is the path fragment for where Lua modules written in C should be installed to.
from luarocks.
Sounds like (also) changing LUA_LIBDIR to "/usr/lib64" on x86_64 is still a correct thing to do; it just doesn't address this problem, right?
I think I follow your explanation. That's why this variable is called "LUA_LIBDIR" rather than something like "LUAROCKS_LIBDIR".
from luarocks.
Sounds like (also) changing LUA_LIBDIR to "/usr/lib64" on x86_64 is still a correct thing to do
If your liblua_.so_ is there, then yes.
from luarocks.
Related Issues (20)
- 3.10.0 release build paralyzation issue HOT 4
- `sudo luarocks install` right after `configure && make && sudo make install` targets the local project dir HOT 3
- Feature Request: Userspace local directory restructure? HOT 1
- I can't build mime during luasocket installing HOT 4
- Invalid Debian Installation HOT 1
- Support applying patches created with `diff -Naur`
- Bug: Adding entries to .gitignore ... HOT 1
- when using luarocks3.11 config,it goes wrong HOT 1
- Could this third-party toolkit be any harder on windows? I've never done anything this hard
- Error: LuaRocks 3.11.0 bug - win32-x86_64 (fs_use_modules = true) (binary) - when installing a package that transitively depends on LuaFileSystem HOT 3
- cannot force reinstall package on v3.11.0
- enable ssl cert check by default
- How does luarocks check wether a dependency exists ? HOT 8
- API failure when uploading rockspec HOT 4
- luarocks.lock in cwd not respected by `luarocks install`
- Purl specification for Lua (Sofwtare supply chain) HOT 1
- transfer ownership of lua-vips to a new maintainer HOT 3
- Unable to do download manifests, files, etc etc HOT 2
- fetch.lua:67: attempt to index a nil value (local 'fd') HOT 1
- Non-root "Luarocks install" should suggest --local installation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luarocks.