Re: Compile on Centos7, run on 6 possible?

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



On Mon, Jul 21, 2014 at 12:16:39PM -0500, Les Mikesell wrote:
> I'm getting errors: '/lib64/libc.so.6: version `GLIBC_2.14' not found'
> and   '/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found'.
> Is there a way to make a backward-compatible binary?
> 
> If not, is there a sane way to build something that needs gcc
> 4.8+/boost 1.5.3+/cmake 2.8 on Centos6?  I found the devtoolset-2
> software collection with a usable gcc, but no boost.   And cmake 2.8
> installs as cmake28 whereas the project expects the normal
> cmake/ccmake names.

I've found that the easiest way is to package your software and use
software like 'mock' (http://fedoraproject.org/wiki/Projects/Mock) to
build the software for other platforms.  Mock builds the software in a
chrooted shell built up using the packages for that distribution, so
you it'd use CentOS6's GCC, boost, cmake and glibc.

-- 
Jonathan Billings <billings@xxxxxxxxxx>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux