FWD: R-SIG-Mac Installing source package/altering fortran location

4 views
Skip to first unread message

Kyle Baron

unread,
Mar 16, 2016, 5:24:31 PM3/16/16
to mrgsolve
Reposting this from R-SIG-MAC.  There was a workshop participant on a Mac who left the main trail as far as the fortran compiler goes and couldn't install.  As soon we got back into the CRAN trail, stuff started working.

The U-Maryland guys  (Vijay, Devin) already showed that you *can* use Homebrew compilers on a Mac, but you really need to go back and take care to make your setup fully Homebrew (including rebuilding all of your packages and using Homebrew R).  If you do, you'll need to compile everything yourself and the CRAN stuff (as far as I can tell) is off limits.  

I can support folks going the CRAN route; hopefully, there will be more experience and ability to troubleshoot "non-CRAN" install on Mac.  For now if there are problems, please pay close attention to your gfortran compiler and my recommendation is to get lined up with CRAN R and compilers if you don't *really* know what you're doing. The fortran compiler needs to be a version that is not currently the newest version that is out there.
 



Simon Urbanek simon.urbanek at r-project.org 
Wed Mar 16 21:25:42 CET 2016


Mick,

you're using Homebrew's gfortran, so you're pretty much on your own, because that's not what CRAN R was compiled with so it won't work. Since Homebrew messes with /usr/local (unless you tell it not to and install is elsewhere - which is a actually a good idea) it may be easier to just completely move it aside and just install the CRAN complier from
http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2

The other alternative is to use Homebrew entirely, including R, but then you have to install all packages from sources and/or through Homebrew. You can't mix CRAN and Homebrew because CRAN uses native libraries while Homebrew uses its own (incompatible) world.

Cheers,
Simon

Devin Pastoor

unread,
Mar 16, 2016, 7:24:38 PM3/16/16
to Kyle Baron, mrgsolve
Hmm next time I reformat my mac I will be sure to carefully exactly what I've done, though I don't fully buy Simon's argument, yes homebrew simlinks to usr/local, but thats no different that adding that location to your path otherwise. I know that Hadley, Yihui, and other big-wigs use homebrew, and as almost everything (Hadley) does is C/C++ these days I would expect more information about issues if that was the case .

Kyle, next time someone runs into that issue (given they have homebrew) have them attempt to install something else from source (like tidyr that has some cpp but wont' take too long to compile) using devtools::install_github("hadley/tidyr"). I wonder if its because those people don't have the command line tools installed along with xcode (the mac equivalent of Rtools for windows). 

That might shed some light into whether it is a global installation from source issue, or something more specific to mrgsolve.


Devin

--
MetrumRG Website: http://www.metrumrg.com/opensourcetools.html
---
You received this message because you are subscribed to the Google Groups "mrgsolve" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mrgsolve+u...@metrumrg.com.
To post to this group, send email to mrgs...@metrumrg.com.
Visit this group at https://groups.google.com/a/metrumrg.com/group/mrgsolve/.
Reply all
Reply to author
Forward
0 new messages