{"id":4076,"date":"2019-01-24T22:10:56","date_gmt":"2019-01-24T21:10:56","guid":{"rendered":"http:\/\/roboblog.fatal-fury.de\/?p=4076"},"modified":"2019-01-24T23:12:20","modified_gmt":"2019-01-24T22:12:20","slug":"installing-gcc-g-and-gfortran-8-from-source","status":"publish","type":"post","link":"http:\/\/roboblog.fatal-fury.de\/?p=4076","title":{"rendered":"Installing gcc, g++ and gfortran 8 from source"},"content":{"rendered":"<p>The procedure is quite the same as for gcc 4.8 as you can see in my older post <a href=\"http:\/\/roboblog.fatal-fury.de\/?p=1618\">Installing gcc, g++ and gfortran 4.8 from source<\/a><\/p>\n<p>Read <a href=\"http:\/\/gcc.gnu.org\/install\/\">the manual<\/a>.<br \/>\nDownload, unpack, switch dir, download, unpack, link.<\/p>\n<p><code>$ wget ftp:\/\/ftp.gwdg.de\/pub\/misc\/gcc\/snapshots\/LATEST-8\/gcc-8-20190118.tar.xz<br \/>\n$ xz -d gcc-8-20190118.tar.xz<br \/>\n$ tar xf gcc-8-20190118.tar<br \/>\n$ gcc-8-20190118\/<br \/>\n$ wget ftp:\/\/ftp.gmplib.org\/pub\/gmp-6.1.2\/gmp-6.1.2.tar.bz2<br \/>\n$ tar xjf gmp-6.1.2.tar.bz2<br \/>\n$ ln -s gmp-6.1.2 gmp<br \/>\n$ wget https:\/\/www.mpfr.org\/mpfr-current\/mpfr-4.0.1.tar.bz2<br \/>\n$ tar xjf mpfr-4.0.1.tar.bz2<br \/>\n$ ln -s mpfr-4.0.1 mpfr<br \/>\n$ wget https:\/\/ftp.gnu.org\/gnu\/mpc\/mpc-1.1.0.tar.gz<br \/>\n$ tar xzf mpc-1.1.0.tar.gz<br \/>\n$ ln -s mpc-1.1.0 mpc<br \/>\n<\/code><\/p>\n<p>Make a build directory, start configure, start make, wait<br \/>\n<code>$ cd ..<br \/>\n$ mkdir build-gcc-8-20190118<br \/>\n$ cd build-gcc-8-20190118\/<br \/>\n$ ..\/gcc-8-20190118\/configure --prefix=\/opt\/gcc-8 --enable-threads --enable-languages=c,c++,fortran<br \/>\n$ make -j 32<br \/>\n# make install<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The procedure is quite the same as for gcc 4.8 as you can see in my older post Installing gcc, g++ and gfortran 4.8 from source Read the manual. Download, unpack, switch dir, download, unpack, link. $ wget ftp:\/\/ftp.gwdg.de\/pub\/misc\/gcc\/snapshots\/LATEST-8\/gcc-8-20190118.tar.xz $ xz -d gcc-8-20190118.tar.xz $ tar xf gcc-8-20190118.tar $ gcc-8-20190118\/ $ wget ftp:\/\/ftp.gmplib.org\/pub\/gmp-6.1.2\/gmp-6.1.2.tar.bz2 $ tar xjf [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[14,17,30,18],"class_list":["post-4076","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-c","tag-cpp","tag-fortran","tag-linux"],"_links":{"self":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/4076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4076"}],"version-history":[{"count":7,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/4076\/revisions"}],"predecessor-version":[{"id":4083,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/4076\/revisions\/4083"}],"wp:attachment":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4076"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}