Hi,
when i compile octave against Suitesparse i use this UFconfig.mk:
# ranlib, and ar, for generating libraries
RANLIB = ranlib
AR = ar cr
# delete and rename a file
RM = rm -f
MV = mv -f
# C and Fortran libraries
LIB = -lm
# For compiling MATLAB mexFunctions (MATLAB 7.4 or later)
MEX = mex -O -largeArrayDims -lmwlapack
#------------------------------------------------------------------------------
# BLAS and LAPACK configuration:
#------------------------------------------------------------------------------
BLAS = -Lusr/lib -lblas -lgfortran -lgfortranbegin $(XERBLA)
LAPACK = -llapack -lgfortran
XERBLA =
#------------------------------------------------------------------------------
# METIS, optionally used by CHOLMOD
#------------------------------------------------------------------------------
METIS_PATH =
METIS =
#------------------------------------------------------------------------------
# UMFPACK configuration:
#------------------------------------------------------------------------------
UMFPACK_CONFIG =
#------------------------------------------------------------------------------
# CHOLMOD configuration
#------------------------------------------------------------------------------
CHOLMOD_CONFIG = -DNPARTITION
#------------------------------------------------------------------------------
# Linux
#------------------------------------------------------------------------------
# Using default compilers:
CC = gcc
F77 = f77
F77FLAGS = -O3 -m64 -fPIC
CFLAGS = -O3 -fexceptions -m64 -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
#------------------------------------------------------------------------------
# remove object files and profile output
#------------------------------------------------------------------------------
CLEAN = *.o *.obj *.ln *.bb *.bbg *.da *.tcov *.gcov gmon.out *.bak *.d
As regards Octave (i.e. 3.0.2) i compile as follows:
./autogen.sh
FFLAGS="-O -ffloat-store"
CPPFLAGS="-DH5_USE_16_API"
./configure \
--prefix=/usr \
--libexecdir=/usr/lib --with-lapack=/usr/lib --enable-64 --enable-shared --disable-static
make
This works on my Linux box without problems.
M.
Il giorno Wed, 17 Sep 2008 15:57:36 -0700
Joseph Norris <jnorris@...> ha scritto:
> Hello,
>
> I just bypassed the whole CHOMOD issue and installed without. Now my
> octave is installed but I have to change to that directory to run it.
> when I try to invoke it from outside that directory I get:
>
> /opt/apps/octave/bin/octave
> /opt/apps/octave/bin/octave: error while loading shared libraries:
> liboctinterp.so: cannot open shared object file: No such file or
> directory
>
> that library is there in /opt/apps/octave/lib - how can I get around
> this - sym links or something that I need to recompile.
>
> thanks.
>
--
Per favore non mandatemi allegati in Word o PowerPoint.
Si veda http://www.gnu.org/philosophy/no-word-attachments.html
|