<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Jan 2, 2007, at 10:34 AM, Calum Robertson wrote:</DIV><BLOCKQUOTE type="cite"><BR><BR><DIV><SPAN class="gmail_quote">On 12/30/06, <B class="gmail_sendername">Anthony Michael Agelastos</B> <<A href="mailto:iqgrande@gmail.com">iqgrande@gmail.com</A>> wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <DIV style=""><DIV><DIV><SPAN class="e" id="q_10fd5a2e512aab96_1"><DIV>On Dec 30, 2006, at 3:40 PM, Calum Robertson wrote:</DIV><BLOCKQUOTE type="cite">Hi,<BR><BR>I encountered some problems when building SuiteSparse and have applied the patch using: <BR><BR>sudo patch -p1 < patch-SuiteSparse-Portfile<BR><BR>and this appears to apply the patch:<BR><BR>patching file opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/math/SuiteSparse/Portfile <BR>patching file files/patch-complex-type<BR>patching file files/patch-config<BR>patching file files/patch-disable-demos<BR>patching file files/patch-macports-metis<BR>patching file files/patch-powerpc-nanotime<BR>patching file files/patch-size_t-fix <BR><BR>However, when I come to build octave, I do:<BR><BR>sudo port -v install octave<BR><BR>and get:<BR><BR>Portfile changed since last build; discarding previous state.<BR>---> Fetching SuiteSparse<BR>---> patch-complex-type doesn't seem to exist in /opt/local/var/db/dports/distfiles/SuiteSparse <BR>---> Attempting to fetch patch-complex-type from <A href="http://distfiles-od.opendarwin.org/SuiteSparse" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://distfiles-od.opendarwin.org/SuiteSparse </A><BR> % Total % Received % Xferd Average Speed Time Time Time Current <BR> Dload Upload Total Spent Left Speed<BR> 0 0 0 0 0 0 0 0 --:--:-- 0:00:56 --:--:-- 0 <BR><BR>Various attempts are made to find the file patch-complex-type to no avail. <BR><BR>Can someone tell me what I need to do to build SuiteSparse?<BR></BLOCKQUOTE></SPAN></DIV><DIV>It has been my experience that the patch is not needed if you do not mind doing some work yourself. The following steps should allow you to build SuiteSparse. </DIV><DIV><BR></DIV><DIV>1) Go to <A href="http://www.cise.ufl.edu/research/sparse/SuiteSparse/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.cise.ufl.edu/research/sparse/SuiteSparse/ </A> and download SuiteSparse-2.1.1.tar.gz. I will assume that you have this automatically download to ~/Desktop.</DIV><DIV><BR></DIV><DIV>2) Do `sudo mv ~/Desktop/SuiteSparse-2.1.1.tar.gz /opt/local/var/db/dports/distfiles/SuiteSparse/SuiteSparse.tar.gz`. This command assumes that you have a standard MacPorts installation. </DIV><DIV><BR></DIV><DIV>3) Do `sudo port install SuiteSparse` with the standard Portfile (no patch applied) and it should work. </DIV><BR><BLOCKQUOTE type="cite"><BR>Thanks.<BR></BLOCKQUOTE><DIV>I hope this helps. Good luck. </DIV></DIV></DIV></BLOCKQUOTE><DIV><BR><BR>Thanks very much for the info - I got a bit further with the SuiteSparse build but got the following errors:<BR><BR>gfortran-dp-4.2 -o readhb readhb.f<BR>make[2]: gfortran-dp-4.2 : Command not found<BR><BR>I assume that I have to install gcc to get gfortran, but which version? Should I install gcc41 or gcc42?<BR></DIV></DIV></BLOCKQUOTE>If you are on an Intel Mac, you will want to install gcc42. </DIV><DIV><BR><BLOCKQUOTE type="cite"><DIV><DIV><BR>Thanks.<BR></DIV><BR><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <DIV style=""><DIV><BLOCKQUOTE type="cite"><DIV style="margin: 0px;">_______________________________________________</DIV><DIV style="margin: 0px;">macports-users mailing list</DIV><DIV style="margin: 0px;"><A href="mailto:macports-users@lists.macosforge.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> macports-users@lists.macosforge.org</A></DIV><DIV style="margin: 0px;"><A href="http://lists.macosforge.org/mailman/listinfo/macports-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.macosforge.org/mailman/listinfo/macports-users </A></DIV> </BLOCKQUOTE></DIV><BR></DIV> </BLOCKQUOTE></DIV><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>