diff --git a/packaging/installer/dependencies/alpine.sh b/packaging/installer/dependencies/alpine.sh
index 77a6fc828f..85d3f9e970 100755
--- a/packaging/installer/dependencies/alpine.sh
+++ b/packaging/installer/dependencies/alpine.sh
@@ -9,10 +9,12 @@ DONT_WAIT=0
 
 package_tree="
   alpine-sdk
+  bison
   cmake
   coreutils
   curl
   elfutils-dev
+  flex
   g++
   gcc
   git
diff --git a/packaging/installer/dependencies/arch.sh b/packaging/installer/dependencies/arch.sh
index 7b0c9c54fb..4bfe2b7b23 100755
--- a/packaging/installer/dependencies/arch.sh
+++ b/packaging/installer/dependencies/arch.sh
@@ -9,8 +9,10 @@ DONT_WAIT=0
 
 declare -a package_tree=(
   binutils
+  bison
   cmake
   curl
+  flex
   gcc
   git
   gzip
diff --git a/packaging/installer/dependencies/centos.sh b/packaging/installer/dependencies/centos.sh
index b647b23047..a4c90b4721 100755
--- a/packaging/installer/dependencies/centos.sh
+++ b/packaging/installer/dependencies/centos.sh
@@ -5,10 +5,12 @@
 set -e
 
 declare -a package_tree=(
+  bison
   cmake
   curl
   elfutils-libelf-devel
   findutils
+  flex
   gcc
   gcc-c++
   git
diff --git a/packaging/installer/dependencies/clearlinux.sh b/packaging/installer/dependencies/clearlinux.sh
index 67d3ea24fd..3e0a18704f 100755
--- a/packaging/installer/dependencies/clearlinux.sh
+++ b/packaging/installer/dependencies/clearlinux.sh
@@ -8,6 +8,7 @@ NON_INTERACTIVE=0
 DONT_WAIT=0
 
 declare -a package_tree=(
+  bison
   c-basic
   curl
   devpkg-elfutils
@@ -19,6 +20,7 @@ declare -a package_tree=(
   devpkg-util-linux
   devpkg-zlib
   findutils
+  flex
   git
   gzip
   make
diff --git a/packaging/installer/dependencies/debian.sh b/packaging/installer/dependencies/debian.sh
index 099963afe2..e08e56725d 100755
--- a/packaging/installer/dependencies/debian.sh
+++ b/packaging/installer/dependencies/debian.sh
@@ -8,8 +8,10 @@ NON_INTERACTIVE=0
 DONT_WAIT=0
 
 package_tree="
+  bison
   cmake
   curl
+  flex
   g++
   gcc
   git
diff --git a/packaging/installer/dependencies/fedora.sh b/packaging/installer/dependencies/fedora.sh
index 1517463778..39eec2da20 100755
--- a/packaging/installer/dependencies/fedora.sh
+++ b/packaging/installer/dependencies/fedora.sh
@@ -18,10 +18,12 @@ os_version() {
 }
 
 declare -a package_tree=(
+  bison
   cmake
   curl
   elfutils-libelf-devel
   findutils
+  flex
   gcc
   gcc-c++
   git
diff --git a/packaging/installer/dependencies/freebsd.sh b/packaging/installer/dependencies/freebsd.sh
index 91fd2959c0..9bd7f08c79 100755
--- a/packaging/installer/dependencies/freebsd.sh
+++ b/packaging/installer/dependencies/freebsd.sh
@@ -8,9 +8,11 @@ NON_INTERACTIVE=0
 DONT_WAIT=0
 
 package_tree="
+  bison
   cmake
   curl
   e2fsprogs-libuuid
+  flex
   git
   gzip
   json-c
diff --git a/packaging/installer/dependencies/gentoo.sh b/packaging/installer/dependencies/gentoo.sh
index 58e805a2d2..d212e2dc6b 100755
--- a/packaging/installer/dependencies/gentoo.sh
+++ b/packaging/installer/dependencies/gentoo.sh
@@ -22,6 +22,8 @@ package_tree="
   net-misc/curl
   sys-apps/findutils
   sys-apps/util-linux
+  sys-devel/bison
+  sys-devel/flex
   sys-devel/gcc
   sys-devel/make
   virtual/libelf
diff --git a/packaging/installer/dependencies/ol.sh b/packaging/installer/dependencies/ol.sh
index fca904a9be..b61b9e3ade 100755
--- a/packaging/installer/dependencies/ol.sh
+++ b/packaging/installer/dependencies/ol.sh
@@ -8,9 +8,11 @@ NON_INTERACTIVE=0
 DONT_WAIT=0
 
 declare -a package_tree=(
+  bison
   cmake
   curl
   elfutils-libelf-devel
+  flex
   gcc
   gcc-c++
   git
diff --git a/packaging/installer/dependencies/opensuse.sh b/packaging/installer/dependencies/opensuse.sh
index 4fba640958..932d27ada5 100755
--- a/packaging/installer/dependencies/opensuse.sh
+++ b/packaging/installer/dependencies/opensuse.sh
@@ -10,8 +10,10 @@ NON_INTERACTIVE=0
 DONT_WAIT=0
 
 declare -a package_tree=(
+  bison
   cmake
   curl
+  flex
   gcc
   gcc-c++
   git
diff --git a/packaging/installer/dependencies/rockylinux.sh b/packaging/installer/dependencies/rockylinux.sh
index 921fd29bf1..a63a2bfedd 100755
--- a/packaging/installer/dependencies/rockylinux.sh
+++ b/packaging/installer/dependencies/rockylinux.sh
@@ -8,10 +8,12 @@ NON_INTERACTIVE=0
 DONT_WAIT=0
 
 declare -a package_tree=(
+  bison
   cmake
   curl
   elfutils-libelf-devel
   findutils
+  flex
   gcc
   gcc-c++
   git
diff --git a/packaging/installer/dependencies/ubuntu.sh b/packaging/installer/dependencies/ubuntu.sh
index c6e5a0b366..ce9258ec45 100755
--- a/packaging/installer/dependencies/ubuntu.sh
+++ b/packaging/installer/dependencies/ubuntu.sh
@@ -8,8 +8,10 @@ NON_INTERACTIVE=0
 DONT_WAIT=0
 
 package_tree="
+  bison
   cmake
   curl
+  flex
   g++
   gcc
   git
diff --git a/packaging/installer/install-required-packages.sh b/packaging/installer/install-required-packages.sh
index 9a39dd9533..b181e70990 100755
--- a/packaging/installer/install-required-packages.sh
+++ b/packaging/installer/install-required-packages.sh
@@ -637,6 +637,14 @@ declare -A pkg_distro_sdk=(
   ['default']="NOTREQUIRED"
 )
 
+# bison and flex are required by libsensors
+declare -A pkg_bison=(
+  ['default']="bison"
+)
+declare -A pkg_flex=(
+  ['default']="flex"
+)
+
 declare -A pkg_coreutils=(
   ['alpine']="coreutils"
   ['default']="NOTREQUIRED"
@@ -1221,6 +1229,9 @@ packages() {
   require_cmd cmake || suitable_package cmake
   require_cmd make || suitable_package make
 
+  require_cmd flex || suitable_package flex
+  require_cmd bison || suitable_package bison
+
   # -------------------------------------------------------------------------
   # debugging tools for development