help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MAC and GNU Plot - Help Please


From: Stuart Edwards
Subject: Re: MAC and GNU Plot - Help Please
Date: Sun, 25 Sep 2011 11:13:00 -0400

On Sep 25, 2011, at 10:41 AM, WO Davis wrote:

It does seem like a super-neural problem for A novice and new OS x guy.  I don't even know how to set an environment variable:(?  Macports opined the obvious 'yep, a .m file will open in xcode.'. I will try your procedure again with out macports.  



W.O. Davis

On Sep 25, 2011, at 10:04 AM, Stuart Edwards <address@hidden> wrote:

I tend to try things and see what happens .....  so in your situation I'd try setting the environmental variables and see if that worked -- my guess is it's at least a 50/50 proposition.

If not, then go the uninstall / reinstall route.

I like macports for obscure applications since they tend to take care of dependencies - but if there's a perfectly good OSX binary I prefer to use that - the packagers tend to know what dependencies to include and the install READMEs usually alert you to any other special needs.  That would be the case for all three of these apps.   One problem might be that macports has installed everything in /opt/* and there could be some issues with setting the PATHs ..... Does the macports AquaTerm installation create an .app in the Applications folder?  If not the instructions I included won't work - you'll need to set GNUTERMAPP to the correct location.  Also, macports tends to set a path to /opt/* that's first in line, and if you have multiple installations of something, the macports version will be activated first - so if you go the binary route, at least disable the macports versions so things don't get totally confusing.

Seems like you need an artificial neural network to sort some of this stuff out   : )

Stu

BTW - best to 'reply all' so others with the same problem can save a few steps.


On Sep 24, 2011, at 8:46 PM, Wesley Davis wrote:

Stuart,

Stu,

Thanks for the response.  I id not install AquaTerm, Gnuplot and Octave in the order you mentioned.  Do I need to uninstall all applications, re-install them and then follow your directions?


I plan to use Macports to install them again.  Any problems foreseen in using this tool?


The real science here is modeling artificial neural networks.

Wes


On Sat, Sep 24, 2011 at 11:10 AM, Stuart Edwards <address@hidden> wrote:
It's been a while since I tackled this ... back in 10.4 days, In 2006 Jo Sarens published some instructions that were very helpful.  I think they are probably still relevant.

" To ensure that everything gets set up correctly, install AquaTerm first, Gnuplot second and Octave last.  For AquaTerm and Gnuplot all  you need to do is run their respective installers and everything will be set up correctly.  Installing Octave, however is a little bit less intuitive [ Note, this is probably not true now with binary installers that are available so I'll skip the rest of this section]

Okay,now that everything is installed, it's time to get started on doing some serious science, right?  Not so fast ......

First off, there are environmental variables that need to be set correctly.   At the command line:

cd ~
touch .bashrc
open .bashrc

The second line creates .bashrc if it doesn't already exist.  An editor should pop up. Put the following into it, save and quit:

export PATH=$PATH:/usr/local/bin
export GNUTERMAPP=/Applications/AquaTerm.app
export GNUTERM=aqua

To make bash aware of these new settings, you must make it re-read the .bashrc file.  An easy way of doing that is running the following command:

source .bashrc

With that take care of, there is only one more thing we need to do.  If you were to run Octave now and tried to  make it plot something, you'd get an error message saying it can't find libaquaterm.1.0.0.dylib.  The reasonit can't find this library, is that you've got a newer version, namely libaquaterm.1.0.1.dylib (at the time of writing).  To fix this , create a link like so:

cd /usr/local/lib
sudo ln -s libaquaterm.1.0.1.dylib libaquaterm.1.0.0.dylib "

[Note - I would try to plot before setting this link - it may not be necessary on later versions .....]

Test the installation with this at the command line:

sombrero(25)

An AquaTerm window should open and display the test result

Good luck

Stu

On Sep 23, 2011, at 7:06 PM, Wesley Davis wrote:

> Hello,
>
> I have been trying to plot images from some of my Octave programs on my MAC without success.  I have downloaded Aquaterm and  GNU Plot.  However,  I am not sure what goes where.   What do I need to do to plot my graphs while at the Octave command line?
>
>
> Wes
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave




If you are still having problems with the installation, based on Ben Abbotts earlier post you may be better off in the macports environment - seems the octave install will include gnuplot and aquaterm and make sure that they are playing nicely together.  This should eliminate some involvement with the bash / unix aspects of installation.  On the other hand, if what you have installed is running ok as you seemed to indicate, then we're almost there ..... just have to master the execution step which I discussed in the last post. 

Stu


reply via email to

[Prev in Thread] Current Thread [Next in Thread]