54 CHEN

Mac下更新gcc版本

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

localhost:hello chenzhen$ port search gcc
  apple-gcc40 @5494 (lang)
      Apple's version of gcc 4.0
  
  apple-gcc42 @5666.3_14 (lang)
      Apple's version of gcc 4.2
  
  arm-aout-gcc @3.3.6 (cross, devel)
      gcc cross-compilers for arm-aout, with newlib runtime library.
  
  arm-elf-gcc @4.7.3 (cross, devel)
      gcc cross-compilers for arm-elf, with newlib runtime library.
  
  arm-elf-gcc3 @3.4.6_2 (cross, devel)
      gcc 3.x cross-compilers for arm-elf, with newlib runtime library.
  
  arm-none-eabi-gcc @4.7.3_1 (cross, devel)
      The GNU compiler collection for arm-none-eabi
  
  arm-none-linux-gnueabi-gcc @2005q3-2 (cross, devel)
      gcc 3.x cross-compilers for arm-none-linux-gnueabi.
  
  arm-rtems-gcc @4.2.3 (cross, devel)
      gcc cross-compilers for arm-rtems, with newlib runtime library.
  
  avr-gcc @4.9.1 (cross, devel)
      The GNU compiler collection for avr

1

localhost:hello chenzhen$ sudo port install gcc44

1 2 3 4 5 6 7

localhost:hello chenzhen$ port select --list gcc
  Available versions for gcc:
    apple-gcc42
    llvm-gcc42
    mp-gcc44 (active)
    mp-gcc48
    none

1

localhost:hello chenzhen$ sudo port select --set gcc mp-gcc44

原创文章如转载,请注明:转载自五四陈科学院[http://www.54chen.com]

Posted by 54chen c

« java IO在各版本中的提高 大规模业务服务器开发总结 »