From 08b9603531f5a618185f6931eb8ec96ead01e36f Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Thu, 9 Jul 2020 20:05:42 +0800 Subject: [PATCH] scripts/pkgdep: Install liburing lib in /usr/lib64. In some OSes (e.g., Fedora30), /usr/lib is not one of the default library loading paths. So Let's change it into /usr/lib64. To address: #1471 Change-Id: I89a66b6096fc1096be7f7e7bb6414f0998b3d974 Signed-off-by: Ziye Yang Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3261 Reviewed-by: Changpeng Liu Reviewed-by: Tomasz Zawadzki Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins --- scripts/pkgdep.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pkgdep.sh b/scripts/pkgdep.sh index ccd47ec26..df2bea622 100755 --- a/scripts/pkgdep.sh +++ b/scripts/pkgdep.sh @@ -33,7 +33,7 @@ function install_liburing() { local GIT_REPO_LIBURING=https://github.com/axboe/liburing.git local liburing_dir=/usr/local/src/liburing - if [[ -e /usr/lib/liburing.so ]]; then + if [[ -e /usr/lib64/liburing.so ]]; then echo "liburing is already installed. skipping" else if [[ -d $liburing_dir ]]; then @@ -42,7 +42,7 @@ function install_liburing() { mkdir $liburing_dir git clone "${GIT_REPO_LIBURING}" "$liburing_dir" fi - (cd "$liburing_dir" && ./configure && make install) + (cd "$liburing_dir" && ./configure --libdir=/usr/lib64 && make install) fi }