looks extremely promsing (thx Fariba), and it claimed that it installed succesfully.
$ sudo env ARCHFLAGS="-arch i386" pip install scikit-learn Warning/disclaimer:Ĭheck, but I cannot promise that it is going to work I did many steps (in vain) in between, and some actually might have influenced the install Install SciPy from (file scipy-0.11.-macosx10.3.dmg) NumPy and MathPlotLib already there Steps: custom Python 2.6 in /Library/Frameworks/amework/Versions/2.6/bin/python Homebrew installed (thx Kevin for recommending it!) XCode 4.5 installed with Command line tools
I was as of Oct 2012 plus it might have depended on some of my custom settings/configurations. I believe that the main problem was at step of installing gfortran (required to install scipy, which is required to install scikit-learn).
Program received signal SIGSEGV: Segmentation fault – invalid memory reference.I had some problems with installing scikit-learn on Mac OS X. MacBook-Pro-de-Gabriel:~ Gabriel$ /Users/Gabriel/Documents/MANUNIMAC The error message in TERMINAL after run the program is:
Process terminated with status 0 (0 minute(s), 1 second(s)) Process terminated with status 0 (0 minute(s), 0 second(s))Ġ error(s), 0 warning(s) (0 minute(s), 0 second(s))Ĭhecking for existence: /Users/Gabriel/Documents/MANUNIMACĮxecuting: osascript -s “s” -e ‘tell app “Terminal”‘ -e ‘activate’ -e ‘do script “/Users/Gabriel/Documents/MANUNIMAC” ‘ -e ‘end tell’ /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner (in /Users/Gabriel/Documents) Gfortran -o /Users/Gabriel/Documents/MANUNIMAC /Users/Gabriel/Documents/MANUNIMAC.o WRITE (2,*) “EN MANIU2.SAL INICIA ECO DE DATOS Y LUEGO LEE CANTID”įortran -c /Users/Gabriel/Documents/MANUNIMAC.f90 -o /Users/Gabriel/Documents/MANUNIMAC.o OPEN (UNIT=1,FILE=”/Users/Gabriel/Documents/MANUNI2.DAT”) OPEN (UNIT=2,FILE=”/Users/Gabriel/Documents/MANUNI2.SAL”) The following is a segment of the program,the idea is to write in UNIT 2 as was identified with the path where is the file: rwxr-xr-x 1 root admin 404900 /usr/local/gfortran/bin/gfortranĬOLLECT_LTO_WRAPPER=/usr/local/gfortran/libexec/gcc/x86_64-apple-darwin11/4.6.2/lto-wrapperĬonfigured with. Lrwxr-xr-x 1 root wheel 32 12 Mar 22:42 /usr/local/bin/gfortran -> /usr/local/gfortran/bin/gfortran If this is not appropriate, please delete/unapprove this comment. I hope you don’t mind if I share with you some details of this installation. Can one install only the gfortran and gcc bundle without Xcode, which would take more than 1Gb?Īt present, my ‘which gfortran’ and ‘which gcc’ are both pointing to /usr/local/bin I am not a very committed developer of Mac/iOS apps, so I am not too sure that I want to install Xcode.
Hi, thank you for putting all these notes together. Then, open your terminal and typeĪnd it should reveal that it was successfully installed in /usr/local/bin.
Straightforward and it should also work automatically. The installation has a walkthrough that comes with the package, like many Mac installations. Mac OS Lion (10.7) on Intel 64-bit processors (gfortran 4.6.2): download (released on ) But my gfortran installation went smooth because it’s very straightforward.Īfter considering my hardware, I chose the option: I found that gcc must be installed in order to use gfortran.
I mentioned at the beginning that I got an error when attempting to use gfortran on my machine before I’d even installed gcc. All of this should have been taken care of automatically. Which should return the path of your gcc in /usr/local/bin.
Download Command Line Tools from Preferences -> DownloadsĪfter you have successfully installed the command line tools, open your terminal and type something like: