Guest User

Untitled

a guest
May 20th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. ```
  2. sudo yum install centos-release-scl
  3. ```
  4.  
  5. ```
  6. sudo yum install devtoolset-3-toolchain
  7. ```
  8.  
  9. ```
  10. scl enable devtoolset-3 bash
  11. ```
  12.  
  13. Check to see the gcc version is updated
  14. ```
  15. gcc --version
  16. ```
  17. i.e.
  18. ```
  19. jungo@dev-jo ~ $ gcc --version
  20. gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
  21. ...
  22. ```
  23.  
  24. Now add `source /opt/rh/devtoolset-3/enable` to `~/.bashrc`
Add Comment
Please, Sign In to add comment