Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build in Ubuntu "exec: ninja: not found" #2953

Open
rhys-vdw opened this issue Nov 14, 2024 · 1 comment
Open

Can't build in Ubuntu "exec: ninja: not found" #2953

rhys-vdw opened this issue Nov 14, 2024 · 1 comment

Comments

@rhys-vdw
Copy link

How are you using the lua-language-server?

Command Line

Which OS are you using?

Windows

What is the issue affecting?

Other

Expected Behaviour

Compilation succeeds

Actual Behaviour

rhys@RhysDesktop:~$ git clone https://github.com/LuaLS/lua-language-server
cd lua-language-server
Cloning into 'lua-language-server'...
remote: Enumerating objects: 64631, done.
remote: Counting objects: 100% (2562/2562), done.
remote: Compressing objects: 100% (891/891), done.
remote: Total 64631 (delta 1726), reused 2411 (delta 1663), pack-reused 62069 (from 1)
Receiving objects: 100% (64631/64631), 25.14 MiB | 19.31 MiB/s, done.
Resolving deltas: 100% (47348/47348), done.
rhys@RhysDesktop:~/lua-language-server$ ls
3rd         LICENSE    changelog.md  doc     main.lua  make.bat  make.sh  script  test.lua         tools
Dockerfile  README.md  debugger.lua  locale  make      make.lua  meta     test    theme-tokens.md
rhys@RhysDesktop:~/lua-language-server$ ./make.sh
Submodule '3rd/EmmyLuaCodeStyle' (https://github.com/CppCXY/EmmyLuaCodeStyle) registered for path '3rd/EmmyLuaCodeStyle'
Submodule '3rd/bee.lua' (https://github.com/actboy168/bee.lua) registered for path '3rd/bee.lua'
Submodule '3rd/json.lua' (https://github.com/actboy168/json.lua) registered for path '3rd/json.lua'
Submodule '3rd/love-api' (https://github.com/love2d-community/love-api) registered for path '3rd/love-api'
Submodule '3rd/lovr-api' (https://github.com/bjornbytes/lovr-docs) registered for path '3rd/lovr-api'
Submodule '3rd/lpeglabel' (https://github.com/sqmedeiros/lpeglabel) registered for path '3rd/lpeglabel'
Submodule '3rd/luamake' (https://github.com/actboy168/luamake) registered for path '3rd/luamake'
Submodule 'meta/3rd/Cocos4.0' (https://github.com/LuaCATS/cocos4.0.git) registered for path 'meta/3rd/Cocos4.0'
Submodule 'meta/3rd/Defold' (https://github.com/LuaCATS/defold.git) registered for path 'meta/3rd/Defold'
Submodule 'meta/3rd/Jass' (https://github.com/LuaCATS/jass.git) registered for path 'meta/3rd/Jass'
Submodule 'meta/3rd/OpenResty' (https://github.com/LuaCATS/openresty.git) registered for path 'meta/3rd/OpenResty'
Submodule 'meta/3rd/bee' (https://github.com/LuaCATS/bee.git) registered for path 'meta/3rd/bee'
Submodule 'meta/3rd/busted' (https://github.com/LuaCATS/busted.git) registered for path 'meta/3rd/busted'
Submodule 'meta/3rd/ffi-reflect' (https://github.com/LuaCATS/ffi-reflect.git) registered for path 'meta/3rd/ffi-reflect'
Submodule 'meta/3rd/lfs' (https://github.com/LuaCATS/luafilesystem.git) registered for path 'meta/3rd/lfs'
Submodule 'meta/3rd/love2d' (https://github.com/LuaCATS/love2d.git) registered for path 'meta/3rd/love2d'
Submodule 'meta/3rd/lovr' (https://github.com/LuaCATS/lovr.git) registered for path 'meta/3rd/lovr'
Submodule 'meta/3rd/luaecs' (https://github.com/LuaCATS/luaecs.git) registered for path 'meta/3rd/luaecs'
Submodule 'meta/3rd/luassert' (https://github.com/LuaCATS/luassert.git) registered for path 'meta/3rd/luassert'
Submodule 'meta/3rd/luv' (https://github.com/LuaCATS/luv.git) registered for path 'meta/3rd/luv'
Submodule 'meta/3rd/skynet' (https://github.com/LuaCATS/skynet.git) registered for path 'meta/3rd/skynet'
Cloning into '/home/rhys/lua-language-server/3rd/EmmyLuaCodeStyle'...
Cloning into '/home/rhys/lua-language-server/3rd/bee.lua'...
Cloning into '/home/rhys/lua-language-server/3rd/json.lua'...
Cloning into '/home/rhys/lua-language-server/3rd/love-api'...
Cloning into '/home/rhys/lua-language-server/3rd/lovr-api'...
Cloning into '/home/rhys/lua-language-server/3rd/lpeglabel'...
Cloning into '/home/rhys/lua-language-server/3rd/luamake'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/Cocos4.0'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/Defold'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/Jass'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/OpenResty'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/bee'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/busted'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/ffi-reflect'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/lfs'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/love2d'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/lovr'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/luaecs'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/luassert'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/luv'...
Cloning into '/home/rhys/lua-language-server/meta/3rd/skynet'...
Submodule path '3rd/EmmyLuaCodeStyle': checked out 'e728970f81e887aa4078edaf93af895311bf667e'
Submodule path '3rd/bee.lua': checked out '8c01c7d79612d47f47f17d80304e66ae14d7b953'
Submodule path '3rd/json.lua': checked out '9ae6772870ff0480ec83fc88dc8ffa52880b3a98'
Submodule 'test/ltest' (https://github.com/actboy168/ltest) registered for path '3rd/json.lua/test/ltest'
Cloning into '/home/rhys/lua-language-server/3rd/json.lua/test/ltest'...
Submodule path '3rd/json.lua/test/ltest': checked out '5d72d81cf64e78b6a057f383cc6237b59f05b90f'
Submodule path '3rd/love-api': checked out '853639288547618dece86c3a8e52348fe304eba2'
Submodule path '3rd/lovr-api': checked out 'e89c753e1c2849b7533481fcf058095f8e050b9f'
Submodule path '3rd/lpeglabel': checked out '912b0b9e8641074408ffc2259e069b188e0c717b'
Submodule path '3rd/luamake': checked out 'c086f35cfad0236f74ba380d51f211c52a2c8abc'
Submodule '3rd/bee.lua' (https://github.com/actboy168/bee.lua) registered for path '3rd/luamake/bee.lua'
Cloning into '/home/rhys/lua-language-server/3rd/luamake/bee.lua'...
Submodule path '3rd/luamake/bee.lua': checked out '038aef6f41dc09dad43325e5d3cdc3e207b6d3c0'
Submodule path 'meta/3rd/Cocos4.0': checked out 'c0b2259e0d367561fd4563ae114b029b4dfe3a8f'
Submodule path 'meta/3rd/Defold': checked out '05379b40fb3084d82f7270475e42da8d521c4dae'
Submodule path 'meta/3rd/Jass': checked out '80d85cbbfd8ae2473fb39c7df4be814602f5bc4f'
Submodule path 'meta/3rd/OpenResty': checked out '3bec36f0f645bb38b3c8208990d5c36feb66ce3d'
Submodule path 'meta/3rd/bee': checked out 'c0bc5349e5fa741d7ad8d6d5c7624a54dcfd9ebe'
Submodule path 'meta/3rd/busted': checked out '5ed85d0e016a5eb5eca097aa52905eedf1b180f1'
Submodule path 'meta/3rd/ffi-reflect': checked out 'e9037efca4021a15552b281f5e91418afd370d8f'
Submodule path 'meta/3rd/lfs': checked out '9b5cfc15be744c829c66519cb11e49669ae7e39b'
Submodule path 'meta/3rd/love2d': checked out 'dad72a7eae31f35bf4c6529e5b81f6187b5b7377'
Submodule path 'meta/3rd/lovr': checked out '3ba215f98e1647111b50b311d45c31338fdc615f'
Submodule path 'meta/3rd/luaecs': checked out '21192fbdccc0f140dae2f74f7c3ec7d74e2aadd0'
Submodule path 'meta/3rd/luassert': checked out 'd3528bb679302cbfdedefabb37064515ab95f7b9'
Submodule path 'meta/3rd/luv': checked out '3615eb12c94a7cfa7184b8488cf908abb5e94c9c'
Submodule path 'meta/3rd/skynet': checked out 'afa6717ac4f71e42012fa2ebf4b410d04db647ae'
~/lua-language-server/3rd/luamake ~/lua-language-server
./compile/build.sh: 36: exec: ninja: not found
~/lua-language-server
./make.sh: line 8: 3rd/luamake/luamake: No such file or directory

Reproduction steps

See full log above (including clone). I'm doing this in Ubuntu 24.04.1 LTS via Windows Subsystem for Linux.

Additional Notes

No response

Log File

No response

@rhys-vdw rhys-vdw changed the title Can't build in Ubuntu Can't build in Ubuntu "exec: ninja: not found" Nov 14, 2024
@rhys-vdw
Copy link
Author

Ah, this is actually missing information from the installation guide: https://luals.github.io/wiki/build/

image

There is info in the luamake repo that explains it's required: https://github.com/actboy168/luamake/blob/c086f35cfad0236f74ba380d51f211c52a2c8abc/README.md#linux--macos--android--netbsd--freebsd--openbsd--windows-mingw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant