Re: Building octave
On 1/4/07, Anthony Michael Agelastos <iqgrande@gmail.com> wrote:
On Jan 3, 2007, at 11:51 AM, Calum Robertson wrote:
On 1/2/07, Anthony Michael Agelastos <iqgrande@gmail.com> wrote:
On Jan 2, 2007, at 10:34 AM, Calum Robertson wrote:
On 12/30/06, Anthony Michael Agelastos <iqgrande@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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
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.
Hi, as I wrote earlier I am having a related problem. Running octave within Terminal.app I don't get it to open a plot window. However, it does not crash. Running it within an xterm works. Joerg -- Jörg Frauendiener | Tel.: +49-7071-2975922 Theoretische Astrophysik | Fax: +49-7071-29-5889 Universität Tübingen | joerg.frauendiener@uni-tuebingen.de Auf der Morgenstelle 10 | http://www.tat.physik.uni-tuebingen.de/ ~joergf D-72076 Tübingen
On Jan 4, 2007, at 8:28 AM, Jörg Frauendiener wrote:
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.
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...
as I wrote earlier I am having a related problem. Running octave within Terminal.app I don't get it to open a plot window. However, it does not crash. Running it within an xterm works.
I haven't had octave installed for quite some time, but I still have a GNUTERM environment variable that I used in order to get it working. Mine was set to "aqua" in order to use AquaTerm, but if you're using X11 you might need to set both the GNUTERM and DISPLAY environment variables before trying to display a plot. Chris
On 1/4/07, Jörg Frauendiener <joerg.frauendiener@uni-tuebingen.de> wrote:
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.
Hi,
as I wrote earlier I am having a related problem. Running octave within Terminal.app I don't get it to open a plot window. However, it does not crash. Running it within an xterm works.
Joerg
-- Jörg Frauendiener | Tel.: +49-7071-2975922 Theoretische Astrophysik | Fax: +49-7071-29-5889 Universität Tübingen | joerg.frauendiener@uni-tuebingen.de Auf der Morgenstelle 10 | http://www.tat.physik.uni-tuebingen.de/ ~joergf D-72076 Tübingen
Hi,
I'm afraid that didn't work for me - running octave in an xterm still caused the same crash when plotting... Calum.
participants (3)
-
Calum Robertson
-
cssdev@mac.com
-
Jörg Frauendiener