help-octave
[Top][All Lists]
Advanced

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

Re: compiling the bleeding-edge on OS X


From: Ben Abbott
Subject: Re: compiling the bleeding-edge on OS X
Date: Sun, 14 Oct 2007 14:01:02 -0400


On Oct 14, 2007, at 1:11 PM, Ben Abbott wrote:


On Oct 11, 2007, at 10:31 AM, John Swensen wrote:

Ben Abbott wrote:
I'm having trouble compiling my cvs copy on Mac OS X with a Fink installation. Octave compiled via Fink works fine, btw. The result is below,

./autogen
./configure

<snip>

checking for erfc... yes
checking for exp2... yes
checking for log2... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_blocks... yes
checking for struct stat.st_rdev... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking whether closedir returns void... no
checking for struct group.gr_passwd... no
checking if mkdir takes one argument... no
checking for tputs in -lncurses... yes
checking for rl_set_keyboard_input_timeout in -lreadline... no
configure: WARNING: I need GNU Readline 4.2 or later
configure: error: this is fatal unless you specify --disable- readline

However, I do have readline installed via Fink

bens-macbook:~/src/octave bpabbott$ fink list readline
Information about 6553 packages read in 1 seconds.
readline 4.3-1028 Comfortable terminal input library
      readline-java        0.8.0-1024      Readline support for Java
i readline-shlibs 4.3-1028 Comfortable terminal input library i readline5 5.0-1005 Comfortable terminal input library i readline5-shlibs 5.0-1005 Comfortable terminal input library term-readline-gn... 1.15-1004 Perl extension for the GNU Readline term-readline-pm 1.0203-12 Minimal interface to Readline
  p   term-readline-pm586                  [virtual package]
      term-readline-pm588                  [virtual package]

Any thoughts on what needs to be done to compile the code from the cvs on Mac OS X using Fink to handle the dependencies would be appreciated.

TIA

Here is the configure line I use to compile Octave from CVS on my Intel
Mac with the fink tools.

./configure CC=gcc-4 CXX=g++-4 F77=gfortran CPPFLAGS=-I/sw/include
LDFLAGS=-L/sw/lib --prefix=/sw/opt/octave/cvs_2.9_20071007

This does not include any of the sparse stuff.

John Swensen


Regarding "sparse stuff", I assume octave uses suitesparse?

Which confuses me, since I'm unable to find any trace of suitesparse in the Fink installation (2.9.14-1) ... well except that my Fink install handles sparse functions without problem. For example,

octave:1> speye (5) .* fliplr (speye (5))
ans =

Compressed Column Sparse (rows = 5, cols = 5, nnz = 1)

  (3, 3) ->  1

Can someone confirm my inference, that suitesparse must be installed for the example above to complete without error?

If my inference is correct, I'll email the Fink maintainer of Octave regarding how he has included suitesparse.


*sigh* ... I had some email silliness earlier. Sorry :-(

In any event, the obvious occured to me and I tried rebuiling octave under fink. During the configure process

configure: WARNING: UMFPACK not found. This will result in some lack of functionality for sparse matrices. configure: WARNING: COLAMD not found. This will result in some lack of functionality for sparse matrices. configure: WARNING: CCOLAMD not found. This will result in some lack of functionality for sparse matrices. configure: WARNING: CHOLMOD not found. This will result in some lack of functionality for sparse matrices. configure: WARNING: CXSparse not found. This will result in some lack of functionality for sparse matrices.

So now I'm confused. Specifically, what functionality is missing?

Ben


reply via email to

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