Problems with building/installing ceph from sources (git repo) on x86_64 (ubuntu 20.04)
Hi all,
While following the instructions in
https://docs.ceph.com/docs/master/install/build-ceph/
1) I am not able to build packages
2) I encounter problems after building/installing in user-space
Details:
$ git clone --recursive https://github.com/ceph/ceph.git $ cd ceph $ git checkout octopus $ ./install-deps.sh
1. Building packages
$ sudo dpkg-buildpackage -j4 ... /usr/bin/cc -g -O2 -fdebug-prefix-map=/home/eduard/ceph=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCMAKE_HAVE_LIBC_PTHREAD -Wl,-Bsymbolic-functions -Wl,-z,relro CMakeFiles/cmTC_277b6.dir/src.c.o -o cmTC_277b6 /usr/bin/ld: CMakeFiles/cmTC_277b6.dir/src.c.o: in function `main': ./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:11: undefined reference to `pthread_create' /usr/bin/ld: ./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:12: undefined reference to `pthread_detach' /usr/bin/ld: ./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:13: undefined reference to `pthread_join' collect2: error: ld returned 1 exit status
2. Building/installing in user-space
$ ./do_cmake.sh $ cd build $ make $ sudo make install
$ ceph -s
Traceback (most recent call last):
File "/usr/local/bin/ceph", line 140, in <module>
import rados
ImportError: librados.so.2: cannot open shared object file: No such file or directoryI will be very thankful for any hints on how to get to success,
Thanks,
Ezra
Quoted 49 lines · Ezra Ulembeck
Hi all,
While following the instructions in
https://docs.ceph.com/docs/master/install/build-ceph/1) I am not able to build packages
2) I encounter problems after building/installing in user-spaceDetails:
$ git clone --recursive https://github.com/ceph/ceph.git $ cd ceph $ git checkout octopus $ ./install-deps.sh1. Building packages
$ sudo dpkg-buildpackage -j4 ... /usr/bin/cc -g -O2 -fdebug-prefix-map=/home/eduard/ceph=.(quoted diff) +0
-3-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCMAKE_HAVE_LIBC_PTHREAD -Wl,-Bsymbolic-functions -Wl,-z,relro CMakeFiles/cmTC_277b6.dir/src.c.o -o cmTC_277b6
/usr/bin/ld:CMakeFiles/cmTC_277b6.dir/src.c.o: in function `main':./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:11:
undefined reference to `pthread_create'/usr/bin/ld:./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:12:
undefined reference to `pthread_detach'/usr/bin/ld:./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:13:
undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status2. Building/installing in user-space
$ ./do_cmake.sh $ cd build $ make $ sudo make install$ ceph -s Traceback (most recent call last): File "/usr/local/bin/ceph", line 140, in <module> import rados ImportError: librados.so.2: cannot open shared object file: No such file or directory
Quoted 4 lines
I will be very thankful for any hints on how to get to success,
Thanks,
Ezra
Hi Ezra,
This list is mostly for the Linux kernel ceph clients. You may want to send this to [email protected]. See:
Cheers,
Signature · 1 line
Jeff Layton <[email protected]>