¸®´ª½º °ü·Ã °Ô½ÃÆÇ

2011/10/08(22:27) from 110.12.189.244
ÀÛ¼ºÀÚ : ÁÖÀÎÀå Á¶È¸¼ö : 6950 , ÁÙ¼ö : 174
Re: [Octave-3.2.4] Compile history
1. Octave 3.4.2

# cd octave-3.4.2
# ./configure
configure: error: You are required to have BLAS and LAPACK libraries
# ÇÏ´Ï,,,blas, lapack ¼³Ä¡Ç϶ó°í ¿¡·¯



# yum list |grep blas
# yum install blas.i386
# yum install blas-devel.i386



# yum install lapack.i386
# yum install lapack-devel.i386



$ tar zxvf fftw-3.3.tar.gz
$ cd fftw-3.3
$ ./configure
$ make
$ make install




# make

DLD-FUNCTIONS/urlwrite.cc: In member function 'string_vector curl_handle::list() const':
DLD-FUNCTIONS/urlwrite.cc:405: error: 'CURLOPT_DIRLISTONLY' was not declared in this scope
DLD-FUNCTIONS/urlwrite.cc:412: error: 'CURLOPT_DIRLISTONLY' was not declared in this scope
make[3]: *** [DLD-FUNCTIONS/DLD_FUNCTIONS_urlwrite_la-urlwrite.lo] Error 1
make[3]: Leaving directory `/root/down/octave-3.4.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/down/octave-3.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/down/octave-3.4.2'
make: *** [all] Error 2

$ yum update curl.i386
$ ./configure --without-curl

makeinfo: Removing output file `octave.info' due to errors; use --force to preserve.
make[3]: *** [octave.info] Error 1
make[3]: Leaving directory `/root/down/octave-3.4.2/doc/interpreter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/down/octave-3.4.2/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/down/octave-3.4.2'
make: *** [all] Error 2

./configure --prefix=/home/me --without-curl --enable-docs=no

$ ./configure --without-curl --disable-docs
$ make


fatal: lo_ieee_init: floating point format is not IEEE!  Maybe DLAMCH is miscompiled, or you are using some strange system without IEEE floating point math?




2. Octave 3.0.5 Binary ¼³Ä¡

$ sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

$ sudo yum install octave




--- liboctave/Makefile.in 2011-06-15 17:31:29.000000000 +0200
+++ liboctave/Makefile.in.b 2011-06-19 23:09:28.000000000 +0200
@@ -2392,6 +2392,7 @@
LIBOCT_READLINE_C_SOURCES = oct-rl-edit.c oct-rl-hist.c
LIBOCT_READLINE_SOURCES = $(LIBOCT_READLINE_CXX_SOURCES) $(LIBOCT_READLINE_C_SOURCES)
LINK_DEPS = \
+  -lpthread \
  $(RLD_FLAG) \
  ../libcruft/libcruft.la \
  ../libcruft/libranlib.la \

----------------------------------------------------------------------------------------------

--- octave-3.4.2/liboctave/mach-info.cc.orig 2011-07-14 15:57:43.573464558 -0300
+++ octave-3.4.2/liboctave/mach-info.cc 2011-07-14 15:59:01.247897894 -0300
@@ -124,7 +124,7 @@ get_float_format (void)
  int i = 0;
  do
    {
-      if (equiv_compare (fp[i].fp_par, mach_fp_par, 4))
+      if (equiv_compare (fp[i].fp_par, mach_fp_par, 2))
        {
          retval = fp[i].fp_fmt;
          break;

----------------------------------------------------------------------------------------------


--- octave-3.4.2/configure.ac.ori      2011-06-27 17:36:26.000000000 +0000
+++ octave-3.4.2/configure.ac  2011-06-27 17:36:55.000000000 +0000
@@ -312,7 +312,7 @@ AC_SUBST(DEPEND_EXTRA_SED_PATTERN)
AX_PTHREAD
### Include pthread libs and flags here in case other tests need them.
### They seem to be required for the OpenGL tests on Debian systems.
-LIBS="$PTHREAD_LIBS $LIBS"
+LIBS="$PTHREAD_LIBS $LIBS -lgfortran -llapack -lGLU -lGL -lpthread"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"

AC_PATH_X



3. Octave 3.2.4 compile

../src/liboctinterp.so: undefined reference to `std::basic_istream std::char_traits >::ignore()'
../src/liboctinterp.so: undefined reference to `__cxa_get_exception_ptr'


Q) undefined reference to `__cxa_get_exception_ptr'
A) ./configure --prefix=/home/jwjeong/octave-3.2.4 F77=gfortran

Q) /libcruft/libcruft.so: undefined reference to `c_exp'
A)


Q) fatal: lo_ieee_init: floating point format is not IEEE!  Maybe DLAMCH is miscompiled, or you are using some strange system without IEEE floating point math?
A) $ yum list all |grep lapack
lapack.i386                               3.0-38.el5                   installed
lapack-devel.i386                         3.0-38.el5                   installed
lapack.i386                               3.2.1-3.el5                  blackop  
lapack-devel.i386                         3.2.1-3.el5                  blackop  

$ yum list all |grep blas
blas.i386                                 3.0-38.el5                   installed
blas-devel.i386                           3.0-38.el5                   installed
blas.i386                                 3.2.1-3.el5                  blackop  
blas-devel.i386                           3.2.1-3.el5                  blackop
$ yum update lapack blas
$ yum list all |grep lapack
lapack.i386                               3.2.1-3.el5                  installed
lapack-devel.i386                         3.2.1-3.el5                  installed
scalapack.i386                            1.7.5-1.el5                  epel     
scalapack-devel.i386                      1.7.5-1.el5                  epel

$ /usr/local/octave-3.2.4/bin/octave
octave:1>


Octave 3.2.4 ½ÇÇà ¼º°ø


Q)
octave:2> x=0:pi/200:2*pi;
octave:3> y=sin(x);
octave:4> plot(x,y);
gnuplot> if (exists("GPVAL_TERM")) print GPVAL_TERM; else print NaN
A) $ yum list |grep gnuplot
gnuplot.i386                              4.0.0-14.el5                 installed
emacs-gnuplot.i386                        4.2.4-6.el5                  blackop  
emacs-gnuplot-el.i386                     4.2.4-6.el5                  blackop  
gnuplot.i386                              4.2.4-6.el5                  blackop  
gnuplot-common.i386                       4.2.4-6.el5                  blackop  
gnuplot-doc.i386                          4.2.4-6.el5                  blackop  
gnuplot-emacs.i386                        4.0.0-14.el5                 base     
gnuplot-minimal.i386                      4.2.4-6.el5                  blackop

Q) GNU Plot ±îÁö ÃÖÁ¾¼º°ø


Modify Delete Post Reply Backward Forward List
Powered by Kang Jul Ki