在CentOS 7中安裝gcc-7.3.0

1. 下載源碼包

2. 安裝依賴包

3. 建立一個臨時文件夾,並在此文件夾中進行編譯

  • mkdir build
  • cd build
  • ../configure –prefix=/usr/local –mandir=/usr/local/share/man –infodir=/usr/local/share/info –enable-bootstrap –enable-shared –enable-threads=posix –enable-checking=release –with-system-zlib –enable-__cxa_atexit –disable-libunwind-exceptions –enable-gnu-unique-object –enable-linker-build-id –with-linker-hash-style=gnu –enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto –enable-plugin –enable-initfini-array –disable-libgcj –enable-gnu-indirect-function –with-tune=generic –with-arch_32=x86-64 –build=x86_64-redhat-linux –disable-multilib
  • make
  • make install

gnat 安裝

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章