cancel
Showing results for 
Search instead for 
Did you mean: 
Sami
Cadet
Cadet
  • 1,269 Views

compiling a software in devtoolset

Hello Everyone,

Today we came a cross one of the software needed to be compiled on RHEL6. I have installed all the dependencies then started the process. it threw an error :

cc1plus: error: unrecognized command line option "-std=c++11"

it turned out to be that RHEL6 comes by default with g++4.4 and it need 4.7+ to do the compilation.

What I did is, I installed the devtoolset-7 then I swiched to 

scl enable devtoolset-7 'bash'

Then compiled the sofware and installed it.

 

Up to till now the application is working as expected, however my question is that safe to go to production or there are some other ways to do such job.

Thank in advance

Sami

 

Tags (4)
0 Replies
Join the discussion
You must log in to join this conversation.