Problems with building/installing ceph from sources (git repo) on x86_64 (ubuntu 20.04)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 directory


I will be very thankful for any hints on how to get to success,

Thanks,
Ezra



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Ceph Dev]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux