Skip to content

Commit

Permalink
script: Update libbpf symbolic link
Browse files Browse the repository at this point in the history
On Ubuntu, the symbolic-filename libbpf.so.0 is linked to
wrong source-filename and causing compilation failed.
This fix is to make sure the libbpf.so.0 is softlink to
libbpf.so.0.7.0.

Signed-off-by: Goh, Wei Sheng <[email protected]>
Signed-off-by: Lai Peter Jun Ann <[email protected]>
  • Loading branch information
JunAnnLaiIntel authored and ws-intel committed Nov 8, 2023
1 parent 8d5d298 commit 821d859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dependencies/packages_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ done

if [[ ${libbpf_installation^} == Y ]]; then
install_libbpf
libbpf_path=$(ldconfig -p | grep -i libbpf | head -n1 | cut -d ">" -f 2 | cut -d " " -f 2)
libbpf_path=$(ldconfig -p | grep -i libbpf.so.0 | head -n1 | cut -d ">" -f 2 | cut -d " " -f 2)
ln -sf libbpf.so.0.7.0 $libbpf_path
sleep 3
else
Expand Down

0 comments on commit 821d859

Please sign in to comment.