Hi All... For reasons which are not important here, I have to compile ceph clients in SL6/Centos6. In a previous thread, I have posted instructions on how to do that for an Infernalis release. The instructions for Jewel 10.2.1 follow. Maybe someone else may profit from those since Centos6 releases are no longer provided. Please note that, as requirements, gcc > 4.7 and python 2.7 have to be available in the machine (you can compile and install those in alternative locations, or simply use a software collection). 1./ The tarball available at ceph download site and the source tarball distributed with the srpm are different in size. I have used the source tarball distributed with the srpm 2./ Set the environment: $ export LD_LIBRARY_PATH=/usr/local/sw/sl6/x86_64/gcc/4.8.4/lib:/usr/local/sw/sl6/x86_64/gcc/4.8.4/lib64:$LD_LIBRARY_PATH Note that we will have to make the following symbolic link since most configuration tools rely on commands such as'python-config –ldflags|–cflags|…' to set the proper configurations paths for compiling python bindings. $ ln -s /usr/local/sw/sl6/gcc484/x86_64/python/2.7.6/bin/python2.7-config /usr/local/sw/sl6/gcc484/x86_64/python/2.7.6/bin/python-config 3./ Download and install a more recent kernel, kernel-headers and kernel-devel and use it in the compilation node (some tools use definitions only provided by a most recent kernel-header). In our case, we have used the kernels available in http://elrepo.org/linux/kernel/el6/x86_64/RPMS/ (3.10.101-1.el6.elrepo.x86_64) $ rpm -qa | grep kernel 4./ Install and start a virtualenv with python 2.7 (from your SL6/Centos6 repos) $ yum install virtual-env5./ Install some python packages needed during ceph 10.2.1 compilation (python27)# pip install Cython 6./ Install the following software (from your SL6/Centos6 repos) (python27)$ wget http://mirror.centos.org/centos/6/os/x86_64/Packages/snappy-devel-1.1.0-1.el6.x86_64.rpm (SL6 does not provide this package) 7./ Ceph requires boost-random which is impossible to satisfy since it does not exist in Centos6/SL6. I've downloaded the SRPM from Centos 7 and rebuild it. Please note that my first rebuild fails with problems producing the debug repo. To solve it, I modified the rpm spec to include the following line at the beginning: '%define debug_package %{nil}'. This instruction will bypass the debuginfo rpm creation. (python27)$ wget http://vault.centos.org/7.1.1503/os/Source/SPackages/boost-1.53.0-23.el7.src.rpm8./ It is now possible to properly compile Ceph 10.2.1 (python27)$ mkdir -p /usr/local/sw/sl6/gcc484/x86_64/ceph/10.2.1 Cheers G. -- Goncalo Borges Research Computing ARC Centre of Excellence for Particle Physics at the Terascale School of Physics A28 | University of Sydney, NSW 2006 T: +61 2 93511937 |
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com