If you're using a newer Ubuntu environment, I'd suggest using a CentOS 5 docker container. Either that or the VM.
- Chuck On Tue, Mar 7, 2017 at 1:53 PM, Marcel Loose <lo...@astron.nl> wrote: > Hi Michele, > > This could become a painful exercise. You basically have two options: > 1) Treat it as a cross-compilation project, or > 2) Create a virtual machine running CentOS 5.8 and do the build there. > If I were you, I would go for the second option. > > Cheers, > Marcel. > > Op 07-03-17 om 17:56 schreef Michele Portolan: > > Hello, > > > > I build on a Ubuntu machine (kernel 4.4.0-64-generic), but I need my > > program to be executed on an old Cento 5.8 (kernel 2.6.18). I tried > > compiling with "-static" to have static linking, but when I try to > > execute I get "ERROR: Kernel too old!" > > > > I therefore locally compiled a glibc with support for kernel 2.6.18 ... > > but how can I have Cmake use it instead of the system one? > > > > Thanks, > > > > > > Michele > > > > > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake