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édente Prochaine révisionLes deux révisions suivantes | ||
scilab [2009/01/10 09:32] – gerard | scilab [2012/04/01 07:48] – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== scilab ====== | ====== scilab ====== | ||
- | sur nemo, 4.0, juillet 06 | + | |
+ | | ||
+ | |||
+ | |||
+ | __sur <del>nemo</ | ||
+ | <del>4.0, juillet 06</ | ||
+ | |||
+ | __sur octopus__ | ||
+ | Utiliser **module** pour choisir une version | ||
+ | < | ||
+ | [henry@octopus octopus]$ module avail | ||
+ | |||
+ | ------------------------- / | ||
+ | ------------------------- | ||
+ | 3.2.6 | ||
+ | |||
+ | -------------------- / | ||
+ | --------------------- | ||
+ | dot | ||
+ | gcc | ||
+ | hpc | ||
+ | |||
+ | [henry@octopus octopus]$ module load scilab5 | ||
+ | |||
+ | [henry@octopus octopus]$ scilab -version | ||
+ | Scilab version " | ||
+ | scilab-5.2.0 | ||
+ | |||
+ | </ | ||
Lancer scilab en batch: | Lancer scilab en batch: | ||
< | < | ||
- | nemo-henry% | + | nohup scilab -nwni -f histoire.sce > resul.out & |
</ | </ | ||
avec le script histoire.sce contenant par exemple: | avec le script histoire.sce contenant par exemple: | ||
Ligne 658: | Ligne 686: | ||
</ | </ | ||
c'est un bug connu de scilab, il suffit de faire: "make install -k" | c'est un bug connu de scilab, il suffit de faire: "make install -k" | ||
+ | |||
====== problème à l' | ====== problème à l' | ||
- | Il ne trouve pas gluegen.jar, | + | <del>Il ne trouve pas gluegen.jar, |
< | < | ||
henry@delljm: | henry@delljm: | ||
Ligne 676: | Ligne 705: | ||
at java.lang.ClassLoader.loadLibrary(ClassLoader.java: | at java.lang.ClassLoader.loadLibrary(ClassLoader.java: | ||
... | ... | ||
- | </ | + | </code></ |
c'est réglé, il faut vraiment suivre la doc et ne pas oublier de recopier les libs dans bin avant le make | c'est réglé, il faut vraiment suivre la doc et ne pas oublier de recopier les libs dans bin avant le make | ||
+ | |||
+ | |||
+ | ====== Segmentation Fault sur solaris 10 ====== | ||
+ | < | ||
+ | creating scilab-bin | ||
+ | ./ | ||
+ | Warning: Localization issue: Error while binding the domain from / | ||
+ | ./ | ||
+ | make[1]: [macros] Error 139 (ignored) | ||
+ | </ | ||
+ | Ce problème apparait à la fin du make. Une rapide utilisation du debugger montre: | ||
+ | < | ||
+ | Program received signal SIGSEGV, Segmentation fault. | ||
+ | 0xfa855891 in strlen () from / | ||
+ | (gdb) where | ||
+ | #0 0xfa855891 in strlen () from / | ||
+ | #1 0xfac62160 in callFunctionFromGateway () | ||
+ | from / | ||
+ | #2 0xfd297571 in gw_io () | ||
+ | from / | ||
+ | #3 0xfac51df3 in callinterf_ () | ||
+ | from / | ||
+ | #4 0xfac5ef42 in scirun_ () | ||
+ | from / | ||
+ | #5 0xfac4d54b in realmain () | ||
+ | from / | ||
+ | #6 0xfd242ad0 in mainscic () | ||
+ | from / | ||
+ | #7 0x08050d7d in main () | ||
+ | </ | ||
+ | |||
+ | On recompile avec l' | ||
+ | < | ||
+ | CC="cc -g" \ | ||
+ | CFLAGS=" | ||
+ | CXX=" | ||
+ | CXXFLAGS=" | ||
+ | </ | ||
+ | pour que le fichier soit correctement généré. | ||
+ | \\ | ||
+ | Maintenant, on a: | ||
+ | < | ||
+ | t@1 (l@1) program terminated by signal SEGV (no mapping at the fault address) | ||
+ | 0xfa705891: strlen+0x0031: | ||
+ | Current function is callFunctionFromGateway | ||
+ | | ||
+ | </ | ||
+ | et Tab est une variable globale définie dans le fichier ./ | ||
+ | < | ||
+ | static gw_generic_table Tab[]= | ||
+ | { | ||
+ | ... | ||
+ | }; | ||
+ | </ | ||
+ | tableau défini dans modules/ | ||
+ | \\ | ||
+ | Pour moi, ça veut dire qu'on parcourt le tableau au delà de sa dimension (pourquoi?) | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====== scilab-5.1 ====== | ||
+ | * http:// | ||
+ | * problèmes avec le clavier (touche alt-gr) | ||
+ | < | ||
+ | henry@delljm: | ||
+ | xmodmap: | ||
+ | |||
+ | shift | ||
+ | lock Caps_Lock (0x42) | ||
+ | control | ||
+ | mod1 Alt_L (0x40) | ||
+ | mod2 Num_Lock (0x4d) | ||
+ | mod3 Mode_switch (0x71) | ||
+ | mod4 Meta_L (0x73), | ||
+ | mod5 | ||
+ | |||
+ | henry@delljm: | ||
+ | henry@delljm: | ||
+ | xmodmap: | ||
+ | |||
+ | shift | ||
+ | lock Caps_Lock (0x42) | ||
+ | control | ||
+ | mod1 Alt_L (0x40) | ||
+ | mod2 Num_Lock (0x4d) | ||
+ | mod3 Alt_R (0x71) | ||
+ | mod4 Meta_L (0x73), | ||
+ | mod5 | ||
+ | </ | ||
+ | |||
+ | Ce problème se règle de la façon suivante: | ||
+ | < | ||
+ | mombasa-henry% setenv _AWT_USE_TYPE4_PATCH false | ||
+ | mombasa-henry% ssh nemo / | ||
+ | </ | ||
+ | Cela ne fonctionne que si Java est > à 1.5.03. | ||
+ | \\ | ||
+ | Pour éviter le contournement avec la variable d' | ||
+ | |||
+ | ===== tests ===== | ||
+ | * avec mataela.sci | ||
+ | * avec [[http:// | ||
+ | |||
+ | ==== serveur nemo (solaris 10, java 1.6) client sunray (solaris 10, sparc) ==== | ||
+ | |||
+ | inutilisable | ||
+ | |||
+ | ==== serveur opensolaris (os2008.11, b101) client sunray (solaris 10, sparc) ==== | ||
+ | |||
+ | fonctionne, mais avec un crash à la sortie à cause de Java | ||
+ | < | ||
+ | henry@delljm: | ||
+ | Xlib: extension " | ||
+ | X11 connection rejected because of wrong authentication. | ||
+ | # | ||
+ | # An unexpected error has been detected by Java Runtime Environment: | ||
+ | # | ||
+ | # SIGSEGV (0xb) at pc=0xafbf9808, | ||
+ | # | ||
+ | # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode solaris-x86) | ||
+ | # Problematic frame: | ||
+ | # C [libGL.so.1+0x79808] | ||
+ | # | ||
+ | # An error report file with more information is saved as: | ||
+ | # / | ||
+ | # | ||
+ | # If you would like to submit a bug report, please visit: | ||
+ | # | ||
+ | # The crash happened outside the Java Virtual Machine in native code. | ||
+ | # See problematic frame for where to report the bug. | ||
+ | # | ||
+ | / | ||
+ | </ | ||
+ |