tag:blogger.com,1999:blog-5188121942175615593.post4702928145580127323..comments2024-03-29T01:51:12.527+11:00Comments on Lindqvist -- a blog about Linux and Science. Mostly.: 215. Compiling gcc 4.7.1/gfortran 4.7.1 on Centos 5.6/ROCKS 4.5.3 (and gmp, mpfr, mpc, binutils (ld,as), glibc, libunistring, libtools...)lindqvisthttp://www.blogger.com/profile/11525548328692436184noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-5188121942175615593.post-44283572856847819752013-06-14T18:45:56.294+10:002013-06-14T18:45:56.294+10:00FlakRat, I accidentally deleted your post (another...FlakRat, I accidentally deleted your post (another reason I don't like tablets), and from what I can see blogspot doesn't offer any way of recovering deleted comments...<br /><br />Anyway, I've added the link to your post above -- I used the full blogspot URL: http://flakrat.blogspot.com/2013/06/building-gcc-481-on-centos-59.html<br />lindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-1138291895895819112013-06-14T04:49:42.551+10:002013-06-14T04:49:42.551+10:00This comment has been removed by a blog administrator.Anonymoushttps://www.blogger.com/profile/08465734610397231615noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-54101061963960849062013-06-13T09:12:56.364+10:002013-06-13T09:12:56.364+10:00Thanks for the suggestion. I abandoned this some t...Thanks for the suggestion. I abandoned this some time ago, but it might be time to revive it. lindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-31088120783897918852013-06-13T08:29:11.047+10:002013-06-13T08:29:11.047+10:00FYI, guile is packaged in the CentOS base reposito...FYI, guile is packaged in the CentOS base repository in CentOS5. If you didn't use the CentOS DVD during Rocks install, the packages may not be present in your Rocks yum repo. In that case, you may want to do some googling to find out how to get the full CentOS DVD into the repo.<br /><br />At any rate:<br />sudo yum install guile guile-devel<br />sudo rocks run host "yum -y install guile guile-devel"Anonymoushttps://www.blogger.com/profile/08465734610397231615noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-2125801626744303322012-12-10T08:33:41.823+11:002012-12-10T08:33:41.823+11:00Mark,
thanks a lot for the modules script!
Mark,<br />thanks a lot for the modules script! <br />lindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-70208805248344057362012-12-10T08:18:05.371+11:002012-12-10T08:18:05.371+11:00Thanks for that ... I was able to get a functionin...Thanks for that ... I was able to get a functioning compiler at the end of step 7.<br /><br />Have attached a modulesfile (http://modules.sourceforge.net/) to setup the environment to use the compiler so that it doesn't interfere with existing packages.<br /><br />#%Module1.0####################################################################<br />##<br />## mymodule modulefile<br />##<br />## Sets up the 4.7.1 compilation environment<br />##<br />proc ModulesHelp { } {<br /> puts stderr "\tSets up the 4.7.1 compilation environment"<br />}<br /><br />## Create a whatis file. Not nessecary but cool.<br />module-whatis "Sets the 4.7.1 compilation environment"<br /><br />set base /home/pkg/gcc_4.7.1<br />set package gcc<br />set version 4.7.1<br /><br />## Add my bin directory to the path<br />prepend-path PATH $base/gcc47/bin<br />prepend-path PATH $base/binutils/bin<br /><br />prepend-path LD_LIBRARY_PATH $base/mpfr/lib<br />prepend-path LD_LIBRARY_PATH $base/mpc/lib<br />prepend-path LD_LIBRARY_PATH $base/gmp/lib<br />prepend-path LD_LIBRARY_PATH $base/binutils/lib<br />prepend-path LD_LIBRARY_PATH $base/binutils/lib64<br />prepend-path LD_LIBRARY_PATH $base/gcc47/lib<br />prepend-path LD_LIBRARY_PATH $base/gcc47/lib64<br /><br />setenv CC $base/gcc47/bin/gcc-gcc-4.7<br />setenv CXX $base/gcc47/bin/g++-gcc-4.7<br /><br /># Set a few personal aliases<br />set-alias "gcc" "gcc-gcc-4.7"<br />set-alias "g++" "g++-gcc-4.7"<br />set-alias "gfortran" "gfortran-gcc-4.7"<br />set-alias "nm" "gcc-nm-gcc-4.7"<br />set-alias "ranlib" "gcc-ranlib-gcc-4.7"<br />set-alias "ar" "gcc-ar-gcc-4.7"<br />set-alias "c++" "c++-gcc-4.7"<br />set-alias "cpp" "cpp-gcc-4.7"<br /><br />if { [ module-info mode load ] } {<br /> puts stderr "Note: $package $version environment loaded."<br />}<br />Mark Dwyerhttp://mdkey.orgnoreply@blogger.com