Easy install of GEANT4 on Ubuntu 7.04 (and 8.04 and 8.10)
In my research I work with the Physics simulation software GEANT4. It’s an incredibly detailed and realistic package, but it’s an absolute beast to get working. A while ago one of my coworkers found this site and it makes it incredibly easy. It went down a while ago, but you can find it at http://aix1.uottawa.ca/~skirkwoo/GEANT4-Kubuntu.html now. I believe the old link is up as well, but the newer link is Dr. Kirkwood’s official site. It’s a really great install and very valuable because it works on 8.04 (Hardy Heron), which is a Long-Term Service release. The guide is for Kubuntu, but it works great on Ubuntu as well.
A quick note about using newer version of Ubuntu: From 8.10 (Intrepid Ibex) on, Ubuntu doesn’t come with a g77 package. g77 is not used for GEANT4 specifically, but with CERN’s ROOT, which is an amazing statistical analysis package. You won’t NEED this for GEANT4, but it allows you to do some cool stuff. Anyhow, instead of g77, Intrepid (8.10) comes with ‘gfortran’ which is not the same code, it seems. Now, there are two ways on handling it. I, personally, advise sticking to 8.04 and the g77 it comes with. However, you can use a newer version of Ubuntu (or its variants) and either use Hardy packages or install from source. Either way, it’s nice to have ROOT installed for statistical analysis.
As a side note, I’m hoping to (eventually) post a complete walkthrough of the process I go through when compiling CLHEP, GEANT4, and ROOT on a 8.04 machine. It’ll probably be a while before I manage to get it written up, but it sure would be nice…
please can you tell me how to install ROOT cern on ubuntu 8-10 ?
Comment by jean — March 31, 2009 @ 11:38 pm
thanks for the info!!!
I am a physicist working at the University of Costa Rica and I had trouble installing this program
thanks again!!!!!
Comment by Luis — July 29, 2009 @ 4:35 pm
Great resource. Thank you very much. This was really helpful.
Comment by Alexis — November 20, 2009 @ 4:04 pm
Thank You so much. I am just starting this computer stuff, and you are being a great help.Thank you for the info
Comment by CeeJay — August 10, 2010 @ 7:15 am
Hello,
I also use G4 in my work. I have used many linux-dist. From my experience gentoo for science is the best. To install geant4 one need to type: emerge geant . That’s it! gentoo will get all dependencies.
Best regards,
nykon
Comment by nykon — December 9, 2010 @ 1:58 pm
This may helpful for recent versions of ubuntu…
conquer-ur-computer.blogspot.com/2011/02/how-to-install-geant4-in-ubuntu-linux.html
Comment by SANJEEV — February 27, 2011 @ 12:03 pm