# Error while executing bazel build for Kong 3.4.2

**URL:** https://discuss.konghq.com/t/error-while-executing-bazel-build-for-kong-3-4-2/12184
**Category:** Questions
**Created:** [December 11, 2023, 11:43am UTC](https://discuss.konghq.com/t/error-while-executing-bazel-build-for-kong-3-4-2/12184 "2023-12-11T11:43:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AnniePrasannaX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/annieprasannax/32/4269_2.png) [@AnniePrasannaX](https://discuss.konghq.com/u/AnniePrasannaX)
#### Post date: [December 11, 2023, 11:43am UTC](https://discuss.konghq.com/t/error-while-executing-bazel-build-for-kong-3-4-2/12184/1 "2023-12-11T11:43:12Z")

</div>

Hi everyone,

I’m trying to build the Debian package of version 3.4.2

Those are the commands I’m using:  
make check-bazel  
export PATH=bin:$PATH  
bazel version  
bazel build //build:kong --verbose\_failures

While running the bazel build command, there I’m getting this error:

(16:22:50) ERROR: /home/ubuntu/.cache/bazel/\_bazel\_ubuntu/00779cdde7331b7609b7357bba393d55/external/luarocks/BUILD.bazel:169:8: Executing genrule @luarocks//:luarocks\_target failed: (Exit 1): bash failed: error executing command (from target @luarocks//:luarocks\_target)  
.  
.  
.  
Warning: Failed searching manifest: Failed downloading [https://luarocks.org/manifest-5.1](https://luarocks.org/manifest-5.1)  
Warning: Failed searching manifest: Failed downloading [https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest-5.1](https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest-5.1)  
Warning: Failed searching manifest: Failed downloading [https://luafr.org/luarocks/manifest-5.1](https://luafr.org/luarocks/manifest-5.1)

## Error: No results matching query were found for Lua 5.1. To check if it is available for other Lua versions, use --check-lua-versions. Target //build:kong failed to build

Could anyone please suggest to resolve this?

---

<div class="post-metadata">

### Author: ![AnniePrasannaX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/annieprasannax/32/4269_2.png) [@AnniePrasannaX](https://discuss.konghq.com/u/AnniePrasannaX)
#### Post date: [December 13, 2023, 2:22am UTC](https://discuss.konghq.com/t/error-while-executing-bazel-build-for-kong-3-4-2/12184/2 "2023-12-13T02:22:49Z")

</div>

Could anyone please help to resolve this ?

---

<div class="post-metadata">

### Author: ![focus\_zheng](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/focus_zheng/32/1660_2.png) [@focus\_zheng](https://discuss.konghq.com/u/focus_zheng)
#### Post date: [June 11, 2025, 12:08pm UTC](https://discuss.konghq.com/t/error-while-executing-bazel-build-for-kong-3-4-2/12184/3 "2025-06-11T12:08:30Z")

</div>

Hi:  
you can build with the latest 3.9.1,the root cause is from luarocks sides.
