====== Octave, clone matlab ====== [[http://enacit1.epfl.ch/cours_matlab/|Introduction à MATLAB et GNU Octave]] ====== Utilisation ====== ^ serveur ^ version ^ commande ^ état ^ | octopus | 3.0.5 | octave | | | holopherne | 3.8.2 | octave --force-gui | | | judith | 4.1.0+ | module purge octave;module load octave;octave | | ====== Installations ====== ===== judith ===== * doc [[http://wiki.octave.org/Octave_for_RedHat_Systems]] * voir /local/apps/src/octave/dev [devel1@judith build]$ ../src/octave/configure --prefix=/local/apps/octave-dev ... configure: WARNING: I didn't find rsvg-convert, but it's only a problem if you need to reconstruct octave-logo-*.png, which is the case if you're building from VCS sources. configure: WARNING: OSMesa library not found. Offscreen rendering with OpenGL will be disabled. configure: WARNING: JAVA_HOME environment variable not initialized. Auto-detection will proceed but is unreliable. configure: configure: NOTE: Libraries or auxiliary programs may be skipped if they are configure: NOTE: not found OR if they are missing required features on your configure: NOTE: system. ajout de paquets: yum install librsvg2-tools yum install groff yum install texlive-metapost ===== postes de travail ===== apt-add-repository ppa:octave/stable apt-get update apt-get install octave voir aussi [[http://enacit1.epfl.ch/cours_matlab/octave.shtml]] ===== octopus ===== * par défaut, version 3.0.5, fourni par le dépôt EPEL pour Centos 5.x [henry@octopus henry]$ octave GNU Octave, version 3.0.5 Copyright (C) 2008 John W. Eaton and others. This is free software; see the source code for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'. Octave was configured for "x86_64-redhat-linux-gnu". ===== version 3.8.0 ===== Compilation configure: Octave is now configured for x86_64-unknown-linux-gnu Source directory: . Installation prefix: /usr/local C compiler: gcc -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread C++ compiler: g++ -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread Fortran compiler: gfortran -O Fortran libraries: -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -lgfortranbegin -lgfortran -lm Lex libraries: LIBS: -lm AMD CPPFLAGS: AMD LDFLAGS: AMD libraries: -lamd ARPACK CPPFLAGS: ARPACK LDFLAGS: ARPACK libraries: -larpack BLAS libraries: -lblas CAMD CPPFLAGS: CAMD LDFLAGS: CAMD libraries: -lcamd CARBON libraries: CCOLAMD CPPFLAGS: CCOLAMD LDFLAGS: CCOLAMD libraries: -lccolamd CHOLMOD CPPFLAGS: CHOLMOD LDFLAGS: CHOLMOD libraries: -lcholmod COLAMD CPPFLAGS: COLAMD LDFLAGS: COLAMD libraries: -lcolamd CURL CPPFLAGS: CURL LDFLAGS: CURL libraries: -lcurl CXSPARSE CPPFLAGS: CXSPARSE LDFLAGS: CXSPARSE libraries: -lcxsparse DL libraries: -ldl FFTW3 CPPFLAGS: FFTW3 LDFLAGS: FFTW3 libraries: -lfftw3_threads -lfftw3 FFTW3F CPPFLAGS: FFTW3F LDFLAGS: FFTW3F libraries: -lfftw3f_threads -lfftw3f fontconfig CFLAGS: fontconfig libraries: -lfontconfig FreeType2 CFLAGS: -I/usr/include/freetype2 FreeType2 libraries: -lfreetype GLPK CPPFLAGS: GLPK LDFLAGS: GLPK libraries: graphics CFLAGS: graphics libraries: HDF5 CPPFLAGS: HDF5 LDFLAGS: HDF5 libraries: -lhdf5 Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 Java JVM path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server Java CPPFLAGS: -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux Java libraries: LAPACK libraries: -llapack LLVM CPPFLAGS: LLVM LDFLAGS: LLVM libraries: Magick++ CPPFLAGS: Magick++ LDFLAGS: Magick++ libraries: OPENGL libraries: -lfontconfig -lGL -lGLU PCRE CPPFLAGS: PCRE libraries: -lpcre PTHREAD flags: -pthread PTHREAD libraries: QHULL CPPFLAGS: QHULL LDFLAGS: QHULL libraries: -lqhull QRUPDATE CPPFLAGS: QRUPDATE LDFLAGS: QRUPDATE libraries: Qt CPPFLAGS: Qt LDFLAGS: Qt libraries: READLINE libraries: -lreadline TERM libraries: -lncurses UMFPACK CPPFLAGS: UMFPACK LDFLAGS: UMFPACK libraries: -lumfpack X11 include flags: X11 libraries: -lX11 Z CPPFLAGS: Z LDFLAGS: Z libraries: -lz Default pager: less gnuplot: gnuplot Build Octave GUI: no JIT compiler for loops: no Build Java interface: no Do internal array bounds checking: no Use octave_allocator: no Build static libraries: no Build shared libraries: yes Dynamic Linking: yes (dlopen) Include support for GNU readline: yes 64-bit array dims and indexing: no configure: WARNING: I wasn't able to find a suitable style for declaring a push-pull parser in a bison input file so I'm disabling bison. configure: WARNING: llvm-config utility not found. JIT compiler is disabled. configure: WARNING: GLPK library found, but does not seem to work properly -- disabling glpk function configure: WARNING: FLTK config script not found. Native graphics will be disabled. configure: WARNING: qrupdate not found. The QR & Cholesky updating functions will be slow. configure: WARNING: JAVA_HOME environment variable not initialized. Auto-detection will proceed but is unreliable. configure: WARNING: Include file not found. Octave will not be able to call Java methods. configure: WARNING: Qt libraries not found -- disabling GUI configure: WARNING: configure: WARNING: I didn't find the necessary libraries to compile native configure: WARNING: graphics. It isn't necessary to have native graphics, configure: WARNING: but you will need to have gnuplot installed or you won't configure: WARNING: be able to use any of Octave's plotting commands configure: WARNING: configure: configure: NOTE: Libraries or auxiliary programs may be skipped if they are configure: NOTE: not found OR if they are missing required features on your configure: NOTE: system. ===== version 4.0.0 ===== * sur judith * pour les dépendances: [root@judith ~]# yum-builddep octave ./configure --prefix=/local/apps/octave-4.0.0 Octave is now configured for x86_64-unknown-linux-gnu Source directory: . Installation prefix: /local/apps/octave-4.0.0 C compiler: gcc -pthread -fopenmp -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 C++ compiler: g++ -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 Fortran compiler: gfortran -O Fortran libraries: -L/usr/lib/gcc/x86_64-redhat-linux/4.8.3 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../.. -lgfortran -lm -lquadmath Lex libraries: LIBS: -lutil -lm AMD CPPFLAGS: AMD LDFLAGS: AMD libraries: -lamd ARPACK CPPFLAGS: ARPACK LDFLAGS: ARPACK libraries: -larpack BLAS libraries: -lblas CAMD CPPFLAGS: CAMD LDFLAGS: CAMD libraries: -lcamd CARBON libraries: CCOLAMD CPPFLAGS: CCOLAMD LDFLAGS: CCOLAMD libraries: -lccolamd CHOLMOD CPPFLAGS: CHOLMOD LDFLAGS: CHOLMOD libraries: -lcholmod COLAMD CPPFLAGS: COLAMD LDFLAGS: COLAMD libraries: -lcolamd CURL CPPFLAGS: CURL LDFLAGS: CURL libraries: -lcurl CXSPARSE CPPFLAGS: CXSPARSE LDFLAGS: CXSPARSE libraries: -lcxsparse DL libraries: -ldl FFTW3 CPPFLAGS: FFTW3 LDFLAGS: FFTW3 libraries: -lfftw3_threads -lfftw3 FFTW3F CPPFLAGS: FFTW3F LDFLAGS: FFTW3F libraries: -lfftw3f_threads -lfftw3f FLTK CPPFLAGS: -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT FLTK LDFLAGS: -Wl,-z,relro -lfltk_gl -lfltk FLTK libraries: fontconfig CPPFLAGS: -I/usr/include/freetype2 fontconfig libraries: -lfontconfig -lfreetype FreeType2 CPPFLAGS: -I/usr/include/freetype2 FreeType2 libraries: -lfreetype GLPK CPPFLAGS: GLPK LDFLAGS: GLPK libraries: -lglpk HDF5 CPPFLAGS: HDF5 LDFLAGS: HDF5 libraries: -lhdf5 Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64 Java JVM path: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64/jre/lib/amd64/server Java CPPFLAGS: -I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64/include -I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64/include/linux Java libraries: LAPACK libraries: -llapack LLVM CPPFLAGS: LLVM LDFLAGS: LLVM libraries: Magick++ CPPFLAGS: -I/usr/include/GraphicsMagick Magick++ LDFLAGS: Magick++ libraries: -lGraphicsMagick++ -lGraphicsMagick OPENGL libraries: -lfontconfig -lfreetype -lGL -lGLU OSMesa CPPFLAGS: OSMesa LDFLAGS: OSMesa libraries: PCRE CPPFLAGS: PCRE libraries: -lpcre PortAudio CPPFLAGS: PortAudio LDFLAGS: PortAudio libraries: PTHREAD flags: -pthread PTHREAD libraries: QHULL CPPFLAGS: QHULL LDFLAGS: QHULL libraries: -lqhull QRUPDATE CPPFLAGS: QRUPDATE LDFLAGS: QRUPDATE libraries: -lqrupdate Qt CPPFLAGS: -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtNetwork -I/usr/include/QtOpenGL Qt LDFLAGS: Qt libraries: -lQtNetwork -lQtOpenGL -lQtGui -lQtCore -lqscintilla2 READLINE libraries: -lreadline Sndfile CPPFLAGS: Sndfile LDFLAGS: Sndfile libraries: TERM libraries: -lncurses UMFPACK CPPFLAGS: UMFPACK LDFLAGS: UMFPACK libraries: -lumfpack X11 include flags: X11 libraries: -lX11 Z CPPFLAGS: Z LDFLAGS: Z libraries: -lz Default pager: less gnuplot: gnuplot Build Octave GUI: yes JIT compiler for loops: no Build Java interface: yes Do internal array bounds checking: no Build static libraries: no Build shared libraries: yes Dynamic Linking: yes (dlopen) Include support for GNU readline: yes 64-bit array dims and indexing: no OpenMP SMP multithreading: yes Build cross tools: no configure: WARNING: I didn't find rsvg-convert, but it's only a problem if you need to reconstruct octave-logo-*.png, which is the case if you're building from VCS sources. configure: WARNING: OSMesa library not found. Offscreen rendering with OpenGL will be disabled. configure: WARNING: JAVA_HOME environment variable not initialized. Auto-detection will proceed but is unreliable. configure: configure: NOTE: Libraries or auxiliary programs may be skipped if they are configure: NOTE: not found OR if they are missing required features on your configure: NOTE: system. si on passe les tests: Summary: PASS 12878 FAIL 0 XFAIL 14 SKIPPED 64 See the file /local/apps/src/octave-4.0.0/test/fntests.log for additional details. Expected failures (listed as XFAIL above) are known bugs. Please help improve Octave by contributing fixes for them. Tests are most often skipped because the features they require have been disabled. Features are most often disabled because they require dependencies that were not present when Octave was built. The configure script should have printed a summary at the end of its run indicating which dependencies were not found. 207 (of 874) .m files have no tests. Please help improve Octave by contributing tests for these files (see the list in the file /local/apps/src/octave-4.0.0/test/fntests.log). make[1]: Leaving directory `/local/apps/src/octave-4.0.0/test' quand on fait tourner un script matlab dans octave, si on a des warning: warning: Matlab-style short-circuit operation performed for operator & warning: Matlab-style short-circuit operation performed for operator & il suffit de faire: >> warning('off', 'Octave:possible-matlab-short-circuit-operator');