好好学习啊天天向上

好好学习啊天天向上

1)下载安装包,解压

使用最新版

Index of /gnu/octave/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

现在最新版已经到8.2.0了,确实挺快的。

2)

./configure --prefix=/thfs1/home/xxx/a11.matsoft/octave-8.2.0 --with-blas=/thfs1/software/lapack/3.8.0-gcc9.3.0/lib --with-lapack=/thfs1/software/lapack/3.8.0-gcc9.3.0/lib

设置好blas, lapack的位置就好。

3)

make -j20

最后 输出 :

Octave successfully built.  Now choose from the following:

   ./run-octave    - to run in place to test before installing
   make check      - to run the tests
   make install    - to install (PREFIX=/thfs1/home/***/a11.matsoft/octave-8.2.0)

   HG ID for this build is "fdadf31961bb"
4)

./run-octave

octave:1> x=1:1:20
x =

 Columns 1 through 18:

    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15   16   17   18

 Columns 19 and 20:

   19   20

看起来没有问题。

octave:3> sin(10)
ans = -0.5440
 

6)

make install就好了?

7)

Octave is now configured for aarch64-unknown-linux-gnu

  Source directory:              .
  Installation prefix:           /thfs1/home/XXX/a11.matsoft/a2.octave-8.2.0dbg/dbg
  C compiler:                    gcc  -pthread -fopenmp  -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g
  C++ compiler:                  g++  -pthread -fopenmp  -Wall -W -Wshadow -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g
  Fortran compiler:              gfortran -g -std=legacy
  CPPFLAGS:
  Fortran libraries:              -L/thfs1/home  -L. -L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. -lgfortran -lm
  Lex libraries:
  LIBS:                          -lpthread -lm
 

用的是LIBM库,

还是最基本的库,可能就是那些

8)

Debugging Octave - Octave

参与官方文档

mkdir dbg-octave
cd dbg-octave
/path/to/octave/source/configure FFLAGS=-g CFLAGS=-g CXXFLAGS=-g --enable-address-sanitizer-flags --prefix=/opt/dbg-octave
make # or make -jN where N is the number of CPU cores

This build is useful for debugging Octave itself.

9) octave依赖的库

 ldd octave
        linux-vdso.so.1 (0x0000400029177000)
        /usr/local/lib/libth.so (0x00004000291a2000)
        libX11.so.6 => /lib/aarch64-linux-gnu/libX11.so.6 (0x00004000291db000)
        libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000400029320000)
        libstdc++.so.6 => /lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000400029350000)
        libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000400029535000)
        libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000400029559000)
        /lib/ld-linux-aarch64.so.1 (0x0000400029155000)
        libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x00004000296cc000)
        libxcb.so.1 => /lib/aarch64-linux-gnu/libxcb.so.1 (0x00004000296e0000)
        libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000400029717000)
        libXau.so.6 => /lib/aarch64-linux-gnu/libXau.so.6 (0x00004000297c4000)
        libXdmcp.so.6 => /lib/aarch64-linux-gnu/libXdmcp.so.6 (0x00004000297d8000)
        libbsd.so.0 => /lib/aarch64-linux-gnu/libbsd.so.0 (0x00004000297ee000)

04-26 17:09