tag:blogger.com,1999:blog-6331230179506650301.post8338816767421663729..comments2019-11-11T02:54:57.231-08:00Comments on Stuff. Also, things.: Compiling bleeding edge SciPy on Mac OS Xbenhttp://www.blogger.com/profile/00577690418643247192noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6331230179506650301.post-74195118576947223742012-09-21T05:01:07.481-07:002012-09-21T05:01:07.481-07:00I just installed UMFPACK using partially your inst...I just installed UMFPACK using partially your instructions. In fact since there is a specific mac version of SuiteSparse I modified it also according to http://blog.hyperjeff.net/?p=160<br /><br />basically I dowloaded the current version of Suitesparse at<br /><br />http://www.cise.ufl.edu/research/sparse/SuiteSparse/current/<br /><br />Unzip/Untar then went to <br />SuiteSparse/SuiteSparse_config<br /><br />and edited<br />SuiteSparse_config_Mac.mk<br /><br />I<br />commented the generic CF to keep the one with -DNTIMER<br /><br />CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O3 -fexceptions -fPIC -DNTIMER<br /># CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O3 -fexceptions -fPIC<br /><br />comment the generic LIB<br /><br /># LIB = -lm<br /><br />Under Mac options I had<br /><br /> F77 = gfortran<br /> CF = $(CFLAGS) -O3 -fno-common -fexceptions -DNTIMER -no-cpp-precomp -arch x86_64 <br /> BLAS = -framework Accelerate<br /> LAPACK = -framework Accelerate<br /> LIB = -lm<br /> CC = gcc<br /><br />Save the file and replace it as SuiteSparse_config.mk<br /><br />THIS LAST STEP IS QUITE IMPORTANT, since just changing the SuiteSparse to include the SuiteSparse/SuiteSparse_config_Mac.mk will keep giving the annoying error:<br /><br />ld: library not found for -lrt<br /><br />I then edited the makefile to compile just<br /> - ( cd SuiteSparse_config/xerbla && $(MAKE) )<br /> - ( cd SuiteSparse_config && $(MAKE) )<br /> - ( cd UMFPACK && $(MAKE) )<br /><br />then <br /><br />make<br />make hb<br />make installAnonymoushttps://www.blogger.com/profile/01928334934158916122noreply@blogger.comtag:blogger.com,1999:blog-6331230179506650301.post-47517919910236987442012-09-21T05:00:35.186-07:002012-09-21T05:00:35.186-07:00I just installed UMFPACK using partially your inst...I just installed UMFPACK using partially your instructions. In fact since there is a specific mac version of SuiteSparse I modified it also according to http://blog.hyperjeff.net/?p=160<br /><br />basically I dowloaded the current version of Suitesparse at<br /><br />http://www.cise.ufl.edu/research/sparse/SuiteSparse/current/<br /><br />Unzip/Untar then went to <br />SuiteSparse/SuiteSparse_config<br /><br />and edited<br />SuiteSparse_config_Mac.mk<br /><br />I<br />commented the generic CF to keep the one with -DNTIMER<br /><br />CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O3 -fexceptions -fPIC -DNTIMER<br /># CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O3 -fexceptions -fPIC<br /><br />comment the generic LIB<br /><br /># LIB = -lm<br /><br />Under Mac options I had<br /><br /> F77 = gfortran<br /> CF = $(CFLAGS) -O3 -fno-common -fexceptions -DNTIMER -no-cpp-precomp -arch x86_64 <br /> BLAS = -framework Accelerate<br /> LAPACK = -framework Accelerate<br /> LIB = -lm<br /> CC = gcc<br /><br />Save the file and replace it as SuiteSparse_config.mk<br /><br />THIS LAST STEP IS QUITE IMPORTANT, since just changing the SuiteSparse to include the SuiteSparse/SuiteSparse_config_Mac.mk will keep giving the annoying error:<br /><br />ld: library not found for -lrt<br /><br />I then edited the makefile to compile just<br /> - ( cd SuiteSparse_config/xerbla && $(MAKE) )<br /> - ( cd SuiteSparse_config && $(MAKE) )<br /> - ( cd UMFPACK && $(MAKE) )<br /><br />then <br /><br />make<br />make hb<br />make install<br /><br /><br />Anonymoushttps://www.blogger.com/profile/01928334934158916122noreply@blogger.comtag:blogger.com,1999:blog-6331230179506650301.post-5388643982739064422010-01-16T00:40:33.374-08:002010-01-16T00:40:33.374-08:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6331230179506650301.post-14686743006197598772009-08-19T15:06:06.144-07:002009-08-19T15:06:06.144-07:00ha! I didn't even know ports had finally gott...ha! I didn't even know ports had finally gotten py26. That's quite useful. When I first tried to get scipy working with py26 ports didn't have it. It only built around py25. So since I had built python 2.6 outside of macports, it was really difficult to get ports to use that copy. Also, as I recall there are some problems with the fortran that MacPorts uses, but these may well have been fixed as I haven't looked into it in quite sometime. <br /><br />Also, I've been told painfully compiling fresh binaries is good for your health and puts hair on your chest.benhttps://www.blogger.com/profile/00577690418643247192noreply@blogger.comtag:blogger.com,1999:blog-6331230179506650301.post-73462231298724600612009-08-19T14:45:42.304-07:002009-08-19T14:45:42.304-07:00Here's how I install it:
sudo port install...Here's how I install it:<br /><br /> sudo port install py26-scipy py26-matplotlib<br /><br />Did you try that? Does it lack some component that you need?Dan Stowellhttps://www.blogger.com/profile/14548943091532874939noreply@blogger.com