]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/workunits/rados/test_librados_build.sh
import 14.2.4 nautilus point release
[ceph.git] / ceph / qa / workunits / rados / test_librados_build.sh
index 704bda6a99e46975b9756b0593a927da9d698cc9..41500151cb54bf0055dc36d2b162b13184c0e980 100755 (executable)
@@ -8,6 +8,8 @@
 # libradosstriper headers, boost headers, etc. - are already installed.
 #
 
+source $(dirname $0)/../ceph-helpers-root.sh
+
 trap cleanup EXIT
 
 SOURCES="hello_radosstriper.cc
@@ -56,6 +58,14 @@ function run_binaries () {
 }
 
 pushd $DESTDIR
+case $(distro_id) in
+    centos|fedora|rhel|opensuse*|suse|sles)
+        install gcc-c++ make libradospp-devel librados-devel;;
+    ubuntu|debian|devuan)
+        install g++ make libradospp-dev librados-dev;;
+    *)
+        echo "$(distro_id) is unknown, $@ will have to be installed manually."
+esac
 get_sources
 check_sources
 make all-system