help-octave
[Top][All Lists]
Advanced

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

Re: Octave 2.9.9 + Octave-Forge 2006.07.09 on x86 MAC OS X 10.4.8 Tiger


From: Paul Koufalas
Subject: Re: Octave 2.9.9 + Octave-Forge 2006.07.09 on x86 MAC OS X 10.4.8 Tiger
Date: Sun, 17 Dec 2006 23:45:17 +1030

Marius,

pkoufalas$ otool -L octave
octave:
        /usr/local/lib/octave-2.9.9/liboctinterp.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/local/lib/octave-2.9.9/liboctave.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/local/lib/octave-2.9.9/libcruft.dylib (compatibility version 0.0.0, current version 0.0.0)
        /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib (compatibility version 1.0.0, current version 192.15.0)
        /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.4)
        /usr/local/lib/libgfortran.2.dylib (compatibility version 3.0.0, current version 3.0.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
        /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

I can't see readline or hdf5 in that list!!  There is also a libgfortran.2.dylib that is missing from yours (you did say HMUG used g95).   That said, HPC octave appears to work ok (very limited testing), until HMUG octave-forge is installed.

If I run octave_config_info from the Octave prompt, I can see these fragments in the output:

DEFS = ... -DUSE_READLINE=1 ... 
LIBREADLINE = -lreadline
LIBS = -lreadline  -lncurses -lz -lm 

I found /usr/lib/libreadline.dylib but this is in a different place to yours, and is a symbolic link to libedit.2.dylib in that same directory.  I couldn't find anything at all on HDF5.   

Cheers,
Paul.

On 17/12/2006, at 10:58 PM, Marius Schamschula wrote:

Paul,

I get

marius$ octave-config --m-site-dir
/usr/local/share/octave/2.9.9/site/m
marius$ octave-config --oct-site-dir
/usr/local/libexec/octave/2.9.9/site/oct/i386-apple-darwin8.8.1
marius$ octave-config -p BINDIR
/usr/local/bin
marius$ octave-config -p CANONICAL_HOST_TYPE
i386-apple-darwin8.8.1
marius$ octave-config -p LIBDIR
/usr/local/lib
marius$ octave-config -p LIBEXECDIR
/usr/local/libexec
marius$ octave-config -p OCTLIBDIR
/usr/local/lib/octave-2.9.9
marius$ octave-config -p DATADIR
/usr/local/share
marius$ octave-config -p ARCHLIBDIR
/usr/local/libexec/octave/2.9.9/exec/i386-apple-darwin8.8.1

which all match.

However, let us see what octave is built from. I get:

marius$ otool -L /usr/local/bin/octave
/usr/local/bin/octave:
        /usr/local/lib/octave-2.9.9/liboctinterp.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/local/lib/octave-2.9.9/liboctave.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/local/lib/octave-2.9.9/libcruft.dylib (compatibility version 0.0.0, current version 0.0.0)
        /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib (compatibility version 1.0.0, current version 182.24.0)
        /usr/local/lib/libreadline.5.2.dylib (compatibility version 5.0.0, current version 5.2.0)
        /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
        /usr/local/lib/libhdf5.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.7)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

I suspect you don't have the same versions of readline and hdf5.

On Dec 17, 2006, at 1:19 AM, Paul Koufalas wrote:

G'day Marius,

Thanks for your reply.  On my MBP, "which octave" yields
/usr/local/bin/octave

which is a symlink to octave-2.9.9 in that directory.  I also found an "octave-config" binary in that directory and it tells me the following:

$ octave-config --m-site-dir
/usr/local/share/octave/2.9.9/site/m
$octave-config --oct-site-dir
/usr/local/libexec/octave/2.9.9/site/oct/i386-apple-darwin8.8.1
$ octave-config -p BINDIR
/usr/local/bin
$ octave-config -p API_VERSION
api-v22
$ octave-config -p CANONICAL_HOST_TYPE
i386-apple-darwin8.8.1
$ octave-config -p LIBDIR            
/usr/local/lib
$ octave-config -p LIBEXECDIR
/usr/local/libexec
$ octave-config -p OCTLIBDIR
/usr/local/lib/octave-2.9.9
$ octave-config -p DATADIR
/usr/local/share
$ octave-config -p ARCHLIBDIR
/usr/local/libexec/octave/2.9.9/exec/i386-apple-darwin8.8.1

Is that consistent with HMUG's octave-forge 2006.07.09?  It appears so from the "m" and "oct" dir information, right?

Cheers,
Paul.



On 17/12/2006, at 4:03 AM, Marius Schamschula wrote:

Paul,

Since I use my own, i.e. the HMUG ports, I can't tell you where the hpc build has installed octave.

However, you should be able to tell by typing 

which octave

The HMUG builds are installed under /usr/local, more specifically the components are installed under /usr/local/share/octave/2.9.9 and /usr/local/libexec/octave/2.9.9.

On Dec 15, 2006, at 6:41 AM, Paul Koufalas wrote:

G'day all.

I'm trying to get Octave + Octave Forge running on my new MacBook  
Pro Core 2 Duo (x86) running OS X 10.4.8 (Tiger)

I installed the binary Octave 2.9.9 from the HPC project without  
much trouble at all.  I then tried to install the binary Octave- 
Forge from the HMUG site and am having trouble getting it to work.   
Not sure if it's something simple (path problem), Mac specific (X11  
issue) or nefarious.

From having what looked to be a working Octave 2.9.9, this is what  
I get when I run Octave now:

GNU Octave, version 2.9.9 (i386-apple-darwin8.8.1).
Copyright (C) 2006 John W. Eaton.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Additional information about Octave is available at http:// 
www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <address@hidden> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful  
report).

error: couldn't link module /usr/local/libexec/octave/2.9.9/site/ 
oct/i386-apple-darwin8.8.1/octave-forge/gf.oct
error: evaluating argument list element number 2
error: near line 24 of file `/usr/local/share/octave/2.9.9/site/m/ 
octave-forge/comm/PKG_ADD'
error: source: error sourcing file `/usr/local/share/octave/2.9.9/ 
site/m/octave-forge/comm/PKG_ADD'
error: near line 11 of file `/usr/local/share/octave/2.9.9/m/ 
startup/octaverc'
octave:1> randint(2,2,2)
ans =

   1   0
   1   1

octave:2> which randint
randint is the user-defined function from the file
/usr/local/share/octave/2.9.9/site/m/octave-forge/comm/randint.m
octave:3> which gf
error: couldn't link module /usr/local/libexec/octave/2.9.9/site/ 
oct/i386-apple-darwin8.8.1/octave-forge/gf.octwhich: `gf' is the  
script file
/usr/local/libexec/octave/2.9.9/site/oct/i386-apple-darwin8.8.1/ 
octave-forge/gf
octave:3>
===

When I remove all of the Octave-Forge directories, Octave looks ok  
again.  Any help / advice with this is much appreciated.

Cheers,
Paul



_______________________________________________
Help-octave mailing list



Marius
--
Marius Schamschula                               Webmaster

        The Huntsville Macintosh Users Group
                    www.hmug.org

webmaster at hmug dot org    marius at schamschula dot com






reply via email to

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