api7 / apisix-build-tools

Build tools to package and release
Apache License 2.0
125 stars 96 forks source link

Building Debian packages of Apisix 3.9.0 fails because of libyaml #382

Open fbartels opened 7 months ago

fbartels commented 7 months ago

Hi,

I wanted to update my local environment to 3.9.0 and used this project to generate a .deb for Ubuntu 22.04. In my local pipeline the build failed however and checking the Github Action of this project the official CI seems to run into the same problem:

#13 11.68 apisix master-0 depends on lyaml 6.2.8 (not installed)
#13 11.68 Installing https://luarocks.org/lyaml-6.2.8-1.src.rock
#13 11.99 
#13 11.99 Error: Failed installing dependency: https://luarocks.org/lyaml-6.2.8-1.src.rock - Could not find library file for YAML
#13 11.99   No file libyaml.a in /usr/lib
#13 11.99   No file libyaml.a in /usr/lib/x86_64-linux-gnu
#13 11.99   No file libyaml.a in /usr/lib64
#13 11.99   No file libyaml.so in /usr/lib
#13 11.99   No file libyaml.so in /usr/lib/x86_64-linux-gnu
#13 11.99   No file libyaml.so in /usr/lib64
#13 11.99   No file matching libyaml.so.* in /usr/lib
#13 11.99   No file matching libyaml.so.* in /usr/lib/x86_64-linux-gnu
#13 11.99   No file matching libyaml.so.* in /usr/lib64
#13 11.99 You may have to install YAML in your system and/or pass YAML_DIR or YAML_LIBDIR to the luarocks command.
#13 11.99 Example: luarocks install lyaml YAML_DIR=/usr/local
#13 ERROR: process "/bin/sh -c /install-common.sh install_apisix     && /determine-dist.sh" did not complete successfully: exit code: 1