octave-maintainers
[Top][All Lists]
Advanced

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

Re: GSL in octave


From: Tatsuro MATSUOKA
Subject: Re: GSL in octave
Date: Thu, 28 Jul 2016 09:07:40 +0900 (JST)

>From: Julien Bect 
>To: octave-maintainers 
>Date: 2016/7/27, Wed 20:25
>Subject: Re: GSL in octave
> 
>
>Le 27/07/2016 à 12:13, Tatsuro MATSUOKA a écrit :
>
>Thank you.  configure properly locates your copy of GSL but perhaps  
>>> mkoctfile make actually uses another copy? >  > Could you please confirm 
>>> using: ldd gsl_sf.oct |grep gsl after the build? 
>>Solved! ldd gsl_sf.oct |grep gsl
libgsl.so.0 => /usr/lib/libgsl.so.0 (0x00007ff78f072000)
is not valid. My setting LD_LIBRARY_PATH is wrong.
After correcting this, 
pkg install of gsl package went well with gsl-2.1 (on 4.0.3 and 4.1.0+).
>Well, I don't know... perhaps is it our configure / Makefile.in that
    is to blame?
>
>Could you please describe what you were doing when it was going
    wrong, and what you did then to make it right?
>
>I believe that the proper way to handle this would be to have
    configure options such as --with-gsl-libdir and
    --with-gsl-includedir, don't you think?

Sorry for my inadequate writing.
And found that this is not LD_LIBRARY_PATH issue
but LD_PRELOAD.


/home/tatsuro/work/gsl/gsl-2.1_inst is gsl-2.1 install directory. 


#*****************************************************************************************************
# Failed procedure
# Start octave 
LANG=C /opt/octave/4.0.3/bin/octave --no-gui
# on octave
setenv CPPFLAGS -I/home/tatsuro/work/gsl/gsl-2.1_inst/include

setenv LDFLAGS -L/home/tatsuro/work/gsl/gsl-2.1_inst/lib

setenv LD_LIBRARY_PATH /home/tatsuro/work/gsl/gsl-2.1_inst/lib

setenv LD_PRELOAD /home/tatsuro/work/gsl/gsl-2.1_inst/lib/libgsl.so


pkg prefix /home/tatsuro/work/octave/octave-forge/4.0.3 
/home/tatsuro/work/octave/octave-forge/4.0.3

more off
cd /home/tatsuro/work/octave/gsl/gsl-hg/target
pkg install -verbose gsl-1.1.0.tar.gz

#*****************************************************************************************************
#success Procedure
# start octave with setting environment variales
CPPFLAGS='-I/home/tatsuro/work/gsl/gsl-2.1_inst/include' \
LDFLAGS='-L/home/tatsuro/work/gsl/gsl-2.1_inst/lib' \
LD_LIBRARY_PATH=/home/tatsuro/work/gsl/gsl-2.1_inst/lib \
LD_PRELOAD=/home/tatsuro/work/gsl/gsl-2.1_inst/lib/libgsl.so \
LANG=C /opt/octave/4.0.3/bin/octave --no-gui

# on octave
pkg prefix /home/tatsuro/work/octave/octave-forge/4.0.3 
/home/tatsuro/work/octave/octave-forge/4.0.3



more off
cd /home/tatsuro/work/octave/gsl/gsl-hg/target
pkg install -verbose gsl-1.1.0.tar.gz

#*****************************************************************************************************
#This also gives success
# start octave

LD_PRELOAD=/home/tatsuro/work/gsl/gsl-2.1_inst/lib/libgsl.so \
LANG=C /opt/octave/4.0.3/bin/octave --no-gui

# on octave
setenv CPPFLAGS -I/home/tatsuro/work/gsl/gsl-2.1_inst/include

setenv LDFLAGS -L/home/tatsuro/work/gsl/gsl-2.1_inst/lib

setenv LD_LIBRARY_PATH /home/tatsuro/work/gsl/gsl-2.1_inst/lib


pkg prefix /home/tatsuro/work/octave/octave-forge/4.0.3 
/home/tatsuro/work/octave/octave-forge/4.0.3

more off
cd /home/tatsuro/work/octave/gsl/gsl-hg/target
pkg install -verbose gsl-1.1.0.tar.gz
#*******************************************************************************************

Setting LD_PRELOAD to (directory used shared libgsl exist)/libgsl.so 
before octave execution seems to be required.

>I believe that the proper way to handle this would be to have
    configure options such as --with-gsl-libdir and
    --with-gsl-includedir, don't you think?

Is there such mechanism to pass such values from octave in the pkg command ? 


Tatsuro



reply via email to

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