Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
scilab [2009/01/09 18:44] – gerard | scilab [2016/06/22 14:50] – gerard | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== scilab ====== | ====== scilab ====== | ||
- | sur nemo, 4.0, juillet 06 | ||
- | Lancer scilab en batch: | + | * installé sur les postes de travail administrés et sur les serveurs de calcul |
- | <code> | + | * sur les serveurs de calcul, plusieurs versions sont disponibles, |
- | nemo-henry% | + | <Code> |
- | </code> | + | module avail scilab |
- | avec le script histoire.sce contenant par exemple: | + | module load scilab/5.4. |
- | < | + | |
- | getf histoire.sci | + | |
- | rosehaplo(10000, | + | |
- | quit | + | |
- | </ | + | |
+ | </ | ||
Ligne 19: | Ligne 14: | ||
- | ====== divers ====== | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | * [[reserve: | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ====== scilab-4.1.2 ====== | ||
- | < | ||
- | bash-3.00$ ./configure \ | ||
- | --prefix=/ | ||
- | --with-x \ | ||
- | --without-pvm \ | ||
- | --with-tcl-library=/ | ||
- | --with-tk-library=/ | ||
- | CC=cc CXX=CC LDFLAGS=" | ||
- | </ | ||
- | |||
- | En utilisant la référence ci-dessus, on modifie les fichiers suivants, avant l' | ||
- | < | ||
- | ./ | ||
- | ./ | ||
- | ./ | ||
- | ./ | ||
- | </ | ||
- | après l' | ||
- | < | ||
- | ./ | ||
- | </ | ||
- | Pour le source ./ | ||
- | |||
- | |||
- | ====== scilab-5.0.3 ====== | ||
- | Le site de l' | ||
- | * prerequirements-scilab-5.0.3-src.tar.gz | ||
- | * scilab-5.0.3-src.tar.gz | ||
- | DAns la première archive, ce qui est interessant est dans thirdparty. Ce qui est dans bin et java est inutilisable pour notre plateforme, et libs contient seulement les headers de matio | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ===== sur solaris 10 ===== | ||
- | on ne récupére que le dossier thirparty de l' | ||
- | < | ||
- | bash-3.00$ pwd | ||
- | / | ||
- | bash-3.00$ tar xzf ../ | ||
- | bash-3.00$ tar xzf ../ | ||
- | </ | ||
- | Pour les autres pre-requis: | ||
- | * < | ||
- | * ncurses id. | ||
- | * Num. Lib. : on prend la sunperf de SS12 | ||
- | * Tcl/Tk de Blastwave (ceux de Solaris sont trop anciens) | ||
- | * Java: / | ||
- | |||
- | pour Jogl: | ||
- | < | ||
- | devel1@nemo: | ||
- | devel1@nemo: | ||
- | devel1@nemo: | ||
- | devel1@nemo: | ||
- | </ | ||
- | |||
- | < | ||
- | bash-3.00$ . / | ||
- | </ | ||
- | et on ajoute / | ||
- | < | ||
- | bash-3.00$ export PATH=$PATH:/ | ||
- | </ | ||
- | |||
- | On modifie le configure à cause d'un test qui échoue: | ||
- | < | ||
- | bash-3.00$ diff -u configure-dist configure | ||
- | --- configure-dist | ||
- | +++ configure | ||
- | @@ -9987,7 +9987,7 @@ | ||
- | test -z " | ||
- | fi | ||
- | fi | ||
- | -cxx_present=$ac_cv_prog_cxx_present | ||
- | +cxx_present=" | ||
- | if test -n " | ||
- | { echo " | ||
- | echo " | ||
- | </ | ||
- | |||
- | et ça donne: | ||
- | < | ||
- | devel1@nemo: | ||
- | --prefix=/ | ||
- | --enable-build-localization \ | ||
- | --enable-build-help | ||
- | --with-x \ | ||
- | --without-matio \ | ||
- | --with-jdk=/ | ||
- | --with-ant=/ | ||
- | --with-tcl-library=/ | ||
- | --with-tk-library=/ | ||
- | CC=cc \ | ||
- | CXX=CC \ | ||
- | LDFLAGS=" | ||
- | LIBS=" | ||
- | 2>&1 | tee CONFIGURE.LOG | ||
- | |||
- | |||
- | Scilab is configured as follows. Please verify that this configuration | ||
- | matches your expectations. | ||
- | |||
- | Host system type : i386-pc-solaris2.10 | ||
- | |||
- | Option | ||
- | ------------------------------------------------------------------------- | ||
- | Shared libraries....... | ||
- | Static libraries....... | ||
- | GNU ld................. | ||
- | Enable debug .......... | ||
- | Enable debug C......... | ||
- | Enable debug C++....... | ||
- | Enable debug Fortran... | ||
- | Enable stop on warning. | ||
- | |||
- | Compiler Configuration: | ||
- | Intel (--with-intelcompilers) .... = | ||
- | GNU gcc (--with-gcc) ............. = | ||
- | GNU Fortran 77 (--with-g77) ...... = | ||
- | GNU Fortran 95 (--with-gfortran) . = | ||
- | |||
- | Options: | ||
- | Use PVM (--with-pvm) ............................. = | ||
- | PVM include (--with-pvm-include) ................. = | ||
- | PVM library (--with-pvm-library) ................. = | ||
- | Do not use TCL/TK (--without-tk) ................. = | ||
- | Do not compile with Ocaml (--without-ocaml) ...... = | ||
- | TCL include (--with-tcl-include) ................. = / | ||
- | TCL library (--with-tcl-library) ................. = / | ||
- | TK include (--with-tk-include) ................... = / | ||
- | TK library (--with-tk-library) ................... = / | ||
- | Install XML Help (--with-install-help-xml) ....... = | ||
- | Make the package relocatable (--enable-relocatable)= no | ||
- | Use FFTW (--with-fftw) ........................... = | ||
- | Don't use MATIO (--without-matio) ................ = | ||
- | |||
- | Scicos enable | ||
- | |||
- | Ocaml Configuration (for Modelica compiler): | ||
- | OCAMLC ............. = ocamlc | ||
- | OCAMLOPT ........... = ocamlopt | ||
- | OCAMLDEP ........... = ocamldep | ||
- | |||
- | Not using PVM | ||
- | |||
- | Not using FFTW | ||
- | |||
- | Not using MATIO | ||
- | |||
- | Not using UMFPACK | ||
- | |||
- | BLAS/ | ||
- | BLAS LIBS ............. = | ||
- | BLAS TYPE ............. = Linked | ||
- | LAPACK LIBS ........... = | ||
- | LAPACK TYPE ........... = Default link | ||
- | |||
- | |||
- | Gettext/ | ||
- | xgettext ............... = / | ||
- | msgfmt | ||
- | msgfmt_opts ............ = | ||
- | msgcat | ||
- | |||
- | Docbook XSL path ....... = / | ||
- | Batik (SVG) ............ = / | ||
- | Saxon XSLT ............. = / | ||
- | FOP (XML => PDF) ....... = / | ||
- | Jeuclid (MathML) ....... = / | ||
- | Commons I/O ............ = / | ||
- | XML graphics commons ... = / | ||
- | |||
- | Java Configuration: | ||
- | JAVA_HOME ........... = / | ||
- | JAVAC ............... = / | ||
- | JAVA_CLASSPATH ...... = | ||
- | JAVA_VERSION ........ = 1.5 | ||
- | JAVAC_FLAGS ......... = -g | ||
- | JAVA_JNI_INCLUDE .... = -I/ | ||
- | JAVA_JNI_LIBS ....... = -L/ | ||
- | JAVA_JNI_LIBS_PRELOAD = | ||
- | JAVA ................ = / | ||
- | JAR ................. = / | ||
- | ANT ................. = / | ||
- | |||
- | TCL/TK configuration: | ||
- | TK_INC_PATH ........ = -I/ | ||
- | TCL_INC_PATH ....... = -I/ | ||
- | TCLTK_LIBS ......... = -L/ | ||
- | TCL_SERIAL_VERSION . = 8.4.15 | ||
- | TK_SERIAL_VERSION .. = 8.4.15 | ||
- | |||
- | XML configuration: | ||
- | XML_FLAGS .......... = -I/ | ||
- | XML_LIBS ........... = -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl | ||
- | XML_VERSION ........ = 2.6.23 | ||
- | |||
- | PCRE configuration: | ||
- | PCRE_CFLAGS ........ = | ||
- | PCRE_LIBS .......... = -L/usr/lib -R/usr/lib -lpcreposix -lpcre | ||
- | PCRE_VERSION ....... = 7.4 | ||
- | |||
- | SWIG Configuration: | ||
- | SWIG generation disabled | ||
- | |||
- | GIWS Configuration: | ||
- | GIWS generation disabled | ||
- | |||
- | Libtool config: | ||
- | objext .............. = o | ||
- | libext (static) ..... = a | ||
- | shrext_cmds ......... = .so | ||
- | exeext .............. = | ||
- | |||
- | Compilation paths: | ||
- | srcdir .............. = . | ||
- | srcdir_full ......... = / | ||
- | builddir ............ = / | ||
- | |||
- | Platform informations: | ||
- | host ........... = i386-pc-solaris2.10 | ||
- | host_cpu ....... = i386 | ||
- | host_vendor .... = pc | ||
- | host_os ... .... = solaris2.10 | ||
- | hostname ....... = nemo | ||
- | CPU 64 bits .... = false | ||
- | |||
- | Options used to compile and link: | ||
- | prefix ......... = / | ||
- | localedir ...... = ${datarootdir}/ | ||
- | VERSION ........ = 5 | ||
- | CC ............. = cc | ||
- | CFLAGS ......... = -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris -I$(top_srcdir)/ | ||
- | PCFLAGS ........ = | ||
- | DEFS ........... = -DHAVE_CONFIG_H | ||
- | LD ............. = / | ||
- | LDFLAGS ........ = -R/ | ||
- | LIBS ........... = -lsocket -lnsl -lX11 -xlic_lib=sunperf -lsunmath -lintl | ||
- | CXX ............ = CC | ||
- | CXXFLAGS ....... = -g -I$(top_srcdir)/ | ||
- | F77 ............ = f77 | ||
- | FFLAGS ......... = -g -DNDEBUG -I$(top_srcdir)/ | ||
- | F77_LDFLAGS .... = | ||
- | TERMCAP_LIB .... = -lncurses | ||
- | |||
- | </ | ||
- | une erreur sur un fichier entraîne la modif suivante: | ||
- | < | ||
- | devel1@nemo: | ||
- | --- modules/ | ||
- | +++ modules/ | ||
- | @@ -14,6 +14,10 @@ | ||
- | # | ||
- | # | ||
- | +#if defined(__SunOS_5_10) && defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x580 | ||
- | + #include < | ||
- | +#endif | ||
- | + | ||
- | |||
- | | ||
- | { | ||
- | </ | ||
- | |||
- | et aussi | ||
- | < | ||
- | devel1@nemo: | ||
- | --- src/ | ||
- | +++ src/ | ||
- | @@ -24,6 +24,9 @@ | ||
- | # | ||
- | # | ||
- | |||
- | +#if defined(__SunOS_5_10) && defined(__SUNPRO_C) && __SUNPRO_C >= 0x580 | ||
- | +#undef solaris | ||
- | +#endif | ||
- | #if defined(solaris) | ||
- | # | ||
- | int isinf(double x) { return !finite(x) && x==x; } | ||
- | </ | ||
- | |||
- | ==== installation ==== | ||
- | |||
- | |||
- | enfin, il faut recopier les dépendances (ce que ne fait pas le make install), cad les libs java dans le répertoire lib d' | ||
- | < | ||
- | devel1@nemo: | ||
- | libgluegen-rt.so | ||
- | devel1@nemo: | ||
- | pkgconfig/ scilab/ | ||
- | devel1@nemo: | ||
- | </ | ||
- | |||
- | ===== sur opensolaris ===== | ||
- | il n y a que ocaml à ajouter ("pkg install IPSFocaml" | ||
- | |||
- | < | ||
- | henry@ultra20: | ||
- | henry@ultra20: | ||
- | |||
- | ... | ||
- | Host system type : i386-pc-solaris2.11 | ||
- | |||
- | Option | ||
- | ------------------------------------------------------------------------- | ||
- | Shared libraries....... | ||
- | Static libraries....... | ||
- | GNU ld................. | ||
- | Enable debug .......... | ||
- | Enable debug C......... | ||
- | Enable debug C++....... | ||
- | Enable debug Fortran... | ||
- | Enable stop on warning. | ||
- | |||
- | Compiler Configuration: | ||
- | Intel (--with-intelcompilers) .... = | ||
- | GNU gcc (--with-gcc) ............. = | ||
- | GNU Fortran 77 (--with-g77) ...... = | ||
- | GNU Fortran 95 (--with-gfortran) . = | ||
- | |||
- | Options: | ||
- | Use PVM (--with-pvm) ............................. = | ||
- | PVM include (--with-pvm-include) ................. = | ||
- | PVM library (--with-pvm-library) ................. = | ||
- | Do not use TCL/TK (--without-tk) ................. = | ||
- | Do not compile with Ocaml (--without-ocaml) ...... = | ||
- | TCL include (--with-tcl-include) ................. = | ||
- | TCL library (--with-tcl-library) ................. = | ||
- | TK include (--with-tk-include) ................... = | ||
- | TK library (--with-tk-library) ................... = | ||
- | Install XML Help (--with-install-help-xml) ....... = | ||
- | Make the package relocatable (--enable-relocatable)= no | ||
- | Use FFTW (--with-fftw) ........................... = | ||
- | Don't use MATIO (--without-matio) ................ = | ||
- | |||
- | Scicos enable | ||
- | |||
- | Ocaml Configuration (for Modelica compiler): | ||
- | OCAMLC ............. = ocamlc | ||
- | OCAMLOPT ........... = ocamlopt | ||
- | OCAMLDEP ........... = ocamldep | ||
- | |||
- | Not using PVM | ||
- | |||
- | Not using FFTW | ||
- | |||
- | Not using MATIO | ||
- | |||
- | Not using UMFPACK | ||
- | |||
- | BLAS/ | ||
- | BLAS LIBS ............. = -xlic_lib=sunperf -lsunmath | ||
- | BLAS TYPE ............. = Sun Performance library | ||
- | LAPACK LIBS ........... = | ||
- | LAPACK TYPE ........... = Default link | ||
- | |||
- | |||
- | Won't generate localization files | ||
- | |||
- | No documentation generated | ||
- | |||
- | Java Configuration: | ||
- | JAVA_HOME ........... = / | ||
- | JAVAC ............... = / | ||
- | JAVA_CLASSPATH ...... = | ||
- | JAVA_VERSION ........ = 1.5 | ||
- | JAVAC_FLAGS ......... = -g | ||
- | JAVA_JNI_INCLUDE .... = -I/ | ||
- | JAVA_JNI_LIBS ....... = -L/ | ||
- | JAVA_JNI_LIBS_PRELOAD = | ||
- | JAVA ................ = / | ||
- | JAR ................. = / | ||
- | ANT ................. = / | ||
- | |||
- | TCL/TK configuration: | ||
- | TK_INC_PATH ........ = -I/ | ||
- | TCL_INC_PATH ....... = -I/ | ||
- | TCLTK_LIBS ......... = -L/usr/lib -ltk8.4 | ||
- | TCL_SERIAL_VERSION . = 8.4.18 | ||
- | TK_SERIAL_VERSION .. = 8.4.18 | ||
- | |||
- | XML configuration: | ||
- | XML_FLAGS .......... = -I/ | ||
- | XML_LIBS ........... = -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl | ||
- | XML_VERSION ........ = 2.6.31 | ||
- | |||
- | PCRE configuration: | ||
- | PCRE_CFLAGS ........ = -I/ | ||
- | PCRE_LIBS .......... = -L/usr/lib -R/usr/lib -lpcreposix -lpcre | ||
- | PCRE_VERSION ....... = 7.4 | ||
- | |||
- | SWIG Configuration: | ||
- | SWIG generation disabled | ||
- | |||
- | GIWS Configuration: | ||
- | GIWS generation disabled | ||
- | |||
- | Libtool config: | ||
- | objext .............. = o | ||
- | libext (static) ..... = a | ||
- | shrext_cmds ......... = .so | ||
- | exeext .............. = | ||
- | |||
- | Compilation paths: | ||
- | srcdir .............. = . | ||
- | srcdir_full ......... = / | ||
- | builddir ............ = / | ||
- | |||
- | Platform informations: | ||
- | host ........... = i386-pc-solaris2.11 | ||
- | host_cpu ....... = i386 | ||
- | host_vendor .... = pc | ||
- | host_os ... .... = solaris2.11 | ||
- | hostname ....... = ultra20 | ||
- | CPU 64 bits .... = false | ||
- | |||
- | Options used to compile and link: | ||
- | prefix ......... = / | ||
- | localedir ...... = ${datarootdir}/ | ||
- | VERSION ........ = 5 | ||
- | CC ............. = cc | ||
- | CFLAGS ......... = -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris -I$(top_srcdir)/ | ||
- | PCFLAGS ........ = | ||
- | DEFS ........... = -DHAVE_CONFIG_H | ||
- | LD ............. = / | ||
- | LDFLAGS ........ = -R/ | ||
- | LIBS ........... = | ||
- | CXX ............ = CC | ||
- | CXXFLAGS ....... = -g -I$(top_srcdir)/ | ||
- | F77 ............ = f77 | ||
- | FFLAGS ......... = -DNDEBUG -I$(top_srcdir)/ | ||
- | F77_LDFLAGS .... = | ||
- | TERMCAP_LIB .... = -lcurses | ||
- | |||
- | </ | ||
- | |||
- | Le problème isinf() est toujours là! (modules/ | ||
- | |||
- | ===== problèmes ===== | ||
- | |||
- | |||
- | ==== pcre ==== | ||
- | |||
- | |||
- | |||
- | |||
- | ==== ncurses ==== | ||
- | celui de Blastwave est installé, mais il ne le trouve pas car la ligne d' | ||
- | < | ||
- | /bin/bash ../ | ||
- | / | ||
- | ld: fatal: library -lncurses: not found | ||
- | ld: fatal: File processing errors. No output written to .libs/ | ||
- | </ | ||
- | un contournement est de faire un lien " | ||
- | < | ||
- | # bash-3.00$ pfexec ln -s / | ||
- | </ | ||
- | |||
- | une suggestion à tester: modifier CFLAGS | ||
- | < | ||
- | CFLAGS=" | ||
- | </ | ||
- | |||
- | ==== isinf ==== | ||
- | < | ||
- | src/ | ||
- | </ | ||
- | |||
- | |||
- | meme contournement que pour scilab-4.x | ||
- | |||
- | < | ||
- | bash-3.00$ diff -u modules/ | ||
- | --- modules/ | ||
- | +++ modules/ | ||
- | @@ -24,10 +24,6 @@ | ||
- | |||
- | # | ||
- | # | ||
- | |||
- | -#if defined(solaris) | ||
- | -#include < | ||
- | -int isinf(double x) { return !finite(x) && x==x; } | ||
- | -#endif | ||
- | #if defined(__alpha) | ||
- | int isinf(double x) { return !finite(x) && x==x; } | ||
- | # | ||
- | |||
- | </ | ||
- | |||
- | ==== scilab-bin ==== | ||
- | la ligne suivante echoue: | ||
- | < | ||
- | cc -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris -I./ |