Building octave

Calum Robertson calum.robertson at gmail.com
Thu Jan 4 06:19:57 PST 2007


On 1/4/07, Anthony Michael Agelastos <iqgrande at gmail.com> wrote:
>
> On Jan 3, 2007, at 11:51 AM, Calum Robertson wrote:
>
>
>
> On 1/2/07, Anthony Michael Agelastos <iqgrande at gmail.com> wrote:
> >
> > On Jan 2, 2007, at 10:34 AM, Calum Robertson wrote:
> >
> >
> >
> > On 12/30/06, Anthony Michael Agelastos <iqgrande at gmail.com> wrote:
> > >
> > > On Dec 30, 2006, at 3:40 PM, Calum Robertson wrote:
> > >
> > > Hi,
> > >
> > > I encountered some problems when building SuiteSparse and have applied
> > > the patch using:
> > >
> > > sudo patch -p1 < patch-SuiteSparse-Portfile
> > >
> > > and this appears to apply the patch:
> > >
> > > patching file
> > > opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/math/SuiteSparse/Portfile
> > >
> > > patching file files/patch-complex-type
> > > patching file files/patch-config
> > > patching file files/patch-disable-demos
> > > patching file files/patch-macports-metis
> > > patching file files/patch-powerpc-nanotime
> > > patching file files/patch-size_t-fix
> > >
> > > However, when I come to build octave, I do:
> > >
> > > sudo port -v install octave
> > >
> > > and get:
> > >
> > > Portfile changed since last build; discarding previous state.
> > > --->  Fetching SuiteSparse
> > > --->  patch-complex-type doesn't seem to exist in
> > > /opt/local/var/db/dports/distfiles/SuiteSparse
> > > --->  Attempting to fetch patch-complex-type from http://distfiles-od.opendarwin.org/SuiteSparse
> > >
> > >   % Total    % Received % Xferd  Average Speed   Time    Time
> > > Time  Current
> > >                                  Dload  Upload   Total   Spent
> > > Left  Speed
> > >   0     0    0     0    0     0      0      0 --:--:--  0:00:56
> > > --:--:--     0
> > >
> > > Various attempts are made to find the file patch-complex-type to no
> > > avail.
> > >
> > > Can someone tell me what I need to do to build SuiteSparse?
> > >
> > > 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.
> > >
> > > 1) Go to http://www.cise.ufl.edu/research/sparse/SuiteSparse/ and
> > > download SuiteSparse-2.1.1.tar.gz. I will assume that you have this
> > > automatically download to ~/Desktop.
> > >
> > > 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.
> > >
> > > 3) Do `sudo port install SuiteSparse` with the standard Portfile (no
> > > patch applied) and it should work.
> > >
> > >
> > > Thanks.
> > >
> > > I hope this helps. Good luck.
> > >
> >
> >
> > Thanks very much for the info - I got a bit further with the SuiteSparse
> > build but got the following errors:
> >
> > gfortran-dp-4.2 -o readhb readhb.f
> > make[2]: gfortran-dp-4.2 : Command not found
> >
> > I assume that I have to install gcc to get gfortran, but which version?
> > Should I install gcc41 or gcc42?
> >
> > If you are on an Intel Mac, you will want to install gcc42.
> >
> >
> > Thanks.
> >
> >
>
> Anthony,
>
> Finally got octave to build - thanks very much for all of your help!
>
> No problem; I am glad my advice helped. Now that you have Octave
> installed, are you able to plot with it, i.e.
> t=linspace(0,2*pi),y=sin(t),plot(t,y)
> ? This does not work for me, so I am wondering if everyone has the same
> problem. Thank you for your reply. Good luck.
>
> -Anthony
>


Hi,

I'm afraid that I have the same problem as well - octave crashes when trying
to plot. I've tested gnuplot independently with some simple examples and it
works fine...

Calum.

Calum.
>
> _______________________________________________
> > > macports-users mailing list
> > > macports-users at lists.macosforge.org
> > > http://lists.macosforge.org/mailman/listinfo/macports-users
> > >
> > >
> > >
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20070104/18081e14/attachment.html


More information about the macports-users mailing list