Download failed: http://r.research.att.com/tools/gcc-42-5666

Hello,

I am trying to install the CellProfiler’s developer version on a mac.

running: CPhomebrew/bin/brew install -v cellprofiler-dev
I get the error message:
Download failed: r.research.att.com/tools/gcc-42- … rwin11.pkg

where can I find gcc-42-5666.3-darwin11.pkg or is there an alternative?

thanks,
Keren.

Hi Keren,

Are you running Mountain Lion (OS 10.8 )? If so, are you using the CPhomebrew Mountain Lion git branch? I don’t know that it will solve your issue, but it might. There is some more info here on issues (and hopefully solutions) to getting the Mac 10.8 CP Developer’s installed.

Also, which XCode version do you have? Just want to be sure that you followed our suggestions here. (Probably this will work ‘/usr/bin/xcodebuild -version’.) XCode 5 is out now and I don’t know that anyone has tried it while building CP.

David

Thanks for your help David.
I am using MacOS 10.8.4 and Xcode version 5.0, Build version 5A1413.

installing cellprofiler-dev results in the following error:

CPhomebrew.git/bin/brew install cellprofiler-dev
==> Installing cellprofiler-dev dependency: gfortran
==> Downloading r.research.att.com/tools/gcc-42- … rwin11.pkg
Already downloaded: /Library/Caches/Homebrew/gfortran-4.2.4-5666.3.pkg
Error: Currently the gfortran compiler provided by this brew is only supports
the following versions of XCode:

  • XCode 3.1.4 on OS X 10.5.x
  • XCode 3.2.2/3.2.3 – 4.0 on OS X 10.6.x
  • XCode 4.1 or newer on OS X 10.7.x

The AppStore and Software Update can help upgrade your copy of XCode.
The latest version of XCode is also available from:

[developer.apple.com/technologies/xcode.html](http://developer.apple.com/technologies/xcode.html)

Any idea why the installer sees a different xcode version?

thanks,
Keren.

This discussion seems on point (if old):
stackoverflow.com/questions/7784 … -xcode-4-2

Does this work by itself?

brew install gfortran
And, again, are you on the Mountain Lion branch?

-David

Hi David,

brew install gfortran
results in:
==> Downloading downloads.sf.net/project/machom … tle.tar.gz
Already downloaded: /Library/Caches/Homebrew/gfortran-4.8.2.mountain_lion.bottle.tar.gz
==> Pouring gfortran-4.8.2.mountain_lion.bottle.tar.gz
==> Caveats
Brews that require a Fortran compiler should use:
depends_on :fortran
==> Summary
/usr/local/Cellar/gfortran/4.8.2: 960 files, 113M

and yes, i am using the mountain lion version as indicated at: github.com/CellProfiler/homebre … ntain-lion

is it easier to work on the developer version on linux?
not really sure how to solve the gfortran problems.

thanks,
Keren.

Hi Keren,

I still suspect it is XCode 5. Follow the instructions here, and you can try an older XCode alongside your XCode 5.

And Linux installation is generally more difficult than Mac, but maybe this user’s positive experience with a VM/Ubuntu might work for you: cellprofiler.org/forum/viewtopic … tual#p9883

Cheers,
David

Hi David,

I was able to resolve the problem following stackoverflow.com/questions/1144 … ac-os-lion:

I edited the following two lines in CPhomebrew.git/Library/Formula/gfortran.rb:

if MacOS.xcode_version >= ‘4.2’ and MACOS_VERSION == 10.7
ohai "Installing gfortran 4.2.4 for XCode 4.2 (build 5666)"
Changed to:

if MacOS.xcode_version >= ‘4.2’ and MACOS_VERSION >= 10.7
ohai "Installing gfortran 4.2.4 for XCode 4.2 (build 5666) or higher"
in other words:

Changed == 10.7 to >= 10.7 and Changed XCode 4.2 (build 5666) to XCode 4.2 (build 5666) or higher

I will be useful to update the repository gfortran.rb accordingly.

thanks for your help,
Keren.

Thanks for the info Keren! I see that the first change “… MACOS_VERSION >= 10.7” has already been made in our brew back in August, but not the “ohai … or higher” change. I will review this and make the change in our brew.

Cheers,
David

And the commit has been made, so hopefully this won’t affect the next user:
github.com/CellProfiler/homebre … e448e68d2c
Thanks again,
David