This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: makeing PVM 3.4.3 in cygwin 1.3.1 ?


Hello!

After contact the PVM guy: kohl@spank.epm.ornl.gov (James Arthur Kohl),
I can run PVM 3.4.3+6 (http://www.csm.ornl.gov/~kohl) under CYGWIN 1.3.1.
Here is my complete procedure to make pvm3.4.3+6 work in CYGWIN 1.3.1:

1. change the "-DIMA_$(PVM_ARCH)" in the CFLAGS of Makefile.aimk to 
   "-D$(PVM_ARCH)",
   these Makefile.aimk are located in console\ hoster\ libfpvm\ pvmgs\ rm\ shmd\ tasker\ tracer\ src\

2. get and install the "sunrpc-4.0.cygwin1.bin.tar.gz" from
ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin/porters/Vinschen_Corinna/B20/


3. comment all "sys_errlist" and "sys_nerr" in pvm3/src/pvmlog.c and pvm3/src/lpvmgen.c

4. "make", and pvm3 is successfully compiled, but when I try to run it, it shows me: 
--------------------------
$ pvm
libpvm [pid-1]: PVM_ROOT environment variable not set.
--------------------------

I am sure that the environment variable PVM_ROOT is set
--------------------------
$ printenv |grep PVM_ROOT
PVM_ROOT=/home/c00jhs00/pvm3
--------------------------------

so I try to search and see that the content in file "pvm3/src/pvmcruft.c"
--------------------------------
815 #ifdef CYGWIN
816                 rd = getenv("PVM_ROOT_U");
817 #else
818                 rd = getenv("PVM_ROOT");
819 #endif
--------------------------------

then I add the environment variable:
export PVM_ROOT_U=~/pvm3


try to run it again, but it still show me some errors,
--------------------------------
$ pvm
libpvm [pid1592] /tmp/pvmd.1000: 
libpvm [pid1592]: Console: Can't start pvmd

--------------------------------
Finally, I tried to start the pvmd in the background first, and it shows me :
$ pvmd &
[1] 3388

c00jhs00@palm180 ~
$ 7f000001:1348
--------------------------------
then everything works!!!


--------------------------------
$ pvm
pvmd already running.
pvm> conf
conf
1 host, 1 data format
                    HOST     DTID     ARCH   SPEED       DSIG
                 palm180    40000   CYGWIN    1000 0x00408841
pvm> add hpcd010
add hpcd010
1 successful
                    HOST     DTID
                 hpcd010    80000
pvm> ps -a
ps -a
                    HOST      TID   FLAG 0x COMMAND
pvm> conf
conf
2 hosts, 1 data format
                    HOST     DTID     ARCH   SPEED       DSIG
                 palm180    40000   CYGWIN    1000 0x00408841
                 hpcd010    80000    LINUX    1000 0x00408841
--------------------------------

I will try to run distributed program in CYGWIN these days.

I hope this procedure can be a reference to those people who want to use PVM under CYGWIN.

By the way, because I got the old one version "sunrpc-4.0.cygwin1.bin.tar.gz", that's for CYGWIN B20, now it's 1.3.1. 

Where can I find the new one ?

Thanks!



------------------------------------------------------------------------------------
Jr-Huang Shiau  [Chinese Big5]蕭志榥
No. 7, R&D. Rd. VI, Science Based Industrial Park, Hsinchu, 300,Taiwan.
[Chinese Big5] 台灣新竹市300科學園區研發六路七號
TEL:886-3-5776085 Ext:335,  FAX:886-3-5773538
E-mail: jhs@nchc.gov.tw; jhshiau@email.com
http://www2.nchc.gov.tw/~c00jhs00
Jr-Huang Shiau  [Chinese Big5]蕭志榥
No. 7, R&D. Rd. VI, Science Based Industrial Park, Hsinchu, 300,Taiwan.
[Chinese Big5] 台灣新竹市300科學園區研發六路七號
TEL:886-3-5776085 Ext:335,  FAX:886-3-5773538
E-mail: jhs@nchc.gov.tw; jhshiau@email.com
http://www2.nchc.gov.tw/~c00jhs00


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]