title: gcc 4.6 on mac, how do I get it to work?
body: <p>I am having problems getting gcc 4.6 to run on Mac 10.8.5. </p>
  
  <p>My experience with such matters is very limited and I have been searching around and trying different things to get this to work, but to no avail. I am sorry if the answer to this problem is really simple (I actually hope that it is!)</p>
  
  <p>This is my problem:</p>
  
  <p>I need to run a bit of software to do an analysis, called Bayescan. This bit of software requires a library found as part of gcc4.6 to run on a MacOSX. They say so on their distribution pages (<a href="http://cmpg.unibe.ch/software/BayeScan/download.html" rel="nofollow">http://cmpg.unibe.ch/software/BayeScan/download.html</a>)</p>
  
  <p>I have now installed gcc4.6 using homebrew*.</p>
  
  <p>However, this does not solve my problem. As I still get the following error message when I try to run the software:</p>
  
  <p>dyld: Library not loaded: /usr/local/lib/libgomp.1.dylib</p>
  
  <p>Google tells me that libgomp.1.dylib is part of gcc46.</p>
  
  <p>When I type: gcc --version, I get:</p>
  
  <p>Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
  Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
  Target: x86_64-apple-darwin12.5.0</p>
  
  <p>This leaves me to believe that when my computer is looking for gcc, it looks for the old version which lacks the required library. Or gcc4.6 is not installed correctly. </p>
  
  <p>So I have two questions:</p>
  
  <p>1) Is my assumption/conclusion correct?</p>
  
  <p>2) How do get my computer to point to gcc4.6? </p>
  
  <p>Thank you in advance for any help that you can provide. This issue is driving me a little crazy. </p>
  
  <p>Is there a good resource for learning how to build environments and organise dependencies, as it is a problem that I often encounter?</p>
  
  <p>(*I was advised to use homebrew but I think its a bit of a waste of time for me as my computing knowledge is not sufficient for it to be a useful tool for me as the documentation is pretty limited).</p>