[openmamba-devel-it] pvm
gil
puntogil a libero.it
Mar 8 Feb 2011 21:29:35 CET
ciao
scilab é ok pero c'é questo problema legato a pvm
Start PVM daemon if not already active
ok=pvm_start()
if ok==-28 then
disp("PVM daemon already active.")
end
if ok==-1 then
disp("Could not start PVM, check your environment variables.")
return
end
il problema é legato anche alla variavile PVM_ROOT che non é inizializzata
a vedere gli scipts del pacchetto in causa si dovrebbe riprofure un
ambiente in /usr/lib/pvm (meglio /usr/.../pvm3 a vedere dal file Readme)
o /usr/share/pvm3/{bin,lib,...}
modificare il file in src/ pvmcruft.c
alla linea 319
#define RSHCOMMAND "/usr/ucb/rsh"
#define RSHCOMMAND "/bin/rsh"
alla linea 881
struct stat st_buf;
alla linea 915
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm3.4.4-envvars.patch;h=dae45df1321a275f442aeb88818764dd19375e6d;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l25>
rd = strdup("/usr/share/pvm3");
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm3.4.4-envvars.patch;h=dae45df1321a275f442aeb88818764dd19375e6d;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l26>
if (stat(rd, &st_buf) == 0)
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm3.4.4-envvars.patch;h=dae45df1321a275f442aeb88818764dd19375e6d;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l27>
return rd;
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm3.4.4-envvars.patch;h=dae45df1321a275f442aeb88818764dd19375e6d;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l28>
free(rd);
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm3.4.4-envvars.patch;h=dae45df1321a275f442aeb88818764dd19375e6d;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l29>
rd = NULL;
mkdir -p %{buildroot}/var/run/pvm3
%pre
/usr/sbin/groupadd -g 22 2>/dev/null
/usr/sbin/useradd -u 24 -g 22
-d /usr/share/pvm3 -r -s /bin/bash pvm2>/dev/null
%post
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add spacenavd
/sbin/service spacenavd start
fi
exit 0
%preun
if [ $1 -eq 0 ]; then
/usr/sbin/userdel pvm > /dev/null 2>&1
/usr/sbin/groupdel pvm > /dev/null 2>&1 ||:
fi
%postun
sbin/chkconfig --del pvmd
sempre che siano corretti sono da aggiungere
da usare come wrapper
# ! /bin /....
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm.sh;h=5c4099c599a1963885eaa47871e5a13b09822587;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l1>
PVM_ROOT=/usr/share/pvm3
if [ "$PVM_RSH" = "" ]; then
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm.sh;h=5c4099c599a1963885eaa47871e5a13b09822587;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l6>
export PVM_RSH="/usr/bin/rsh"
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm.sh;h=5c4099c599a1963885eaa47871e5a13b09822587;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l7>fi
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm.sh;h=5c4099c599a1963885eaa47871e5a13b09822587;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l8>
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm.sh;h=5c4099c599a1963885eaa47871e5a13b09822587;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l9>export PVM_ROOT
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm.sh;h=5c4099c599a1963885eaa47871e5a13b09822587;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l10>
<http://pkgs.fedoraproject.org/gitweb/?p=pvm.git;a=blob;f=pvm.sh;h=5c4099c599a1963885eaa47871e5a13b09822587;hb=b98b6da1e5b02a757c71410c8d79d35f9c524ec6#l11>exec /usr/share/pvm3/lib/pvm "$@"
grazie
gil
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://tao/pipermail/openmamba-devel-it/attachments/20110208/a107acb3/attachment.html>
Maggiori informazioni sulla lista
openmamba-devel-it