<HTML><BODY><strong><em><span style="font-family: Arial, Tahoma, Verdana, sans-serif; " data-mce-style="font-family: Arial, Tahoma, Verdana, sans-serif;">Hi all</span></em></strong><br style="font-family: Arial, Tahoma, Verdana, sans-serif; " data-mce-style="font-family: Arial, Tahoma, Verdana, sans-serif;"><br style="font-family: Arial, Tahoma, Verdana, sans-serif; " data-mce-style="font-family: Arial, Tahoma, Verdana, sans-serif;"><p data-mce-style="font-family: Arial, Tahoma, Verdana, sans-serif;"><font face="Arial, Tahoma, Verdana, sans-serif"><strong><em>This is my Makefile</em></strong> <br><br><br></font></p><p>MODULE_TOPDIR = /usr/local/grass-6.4.2svn/<br>CC=mpicc --static<br>PGM = i.vi.mpi</p><p>LIBES = $(GISLIB) $(GMATHLIB)<br>DEPENDENCIES = $(GISDEP) $(GMATHDEP)</p><p>include $(MODULE_TOPDIR)/include/Make/Module.make</p><p>ifneq ($(USE_LARGEFILES),)<br> EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64<br>endif</p><p>default: cmd<br>CC=mpicc -L/usr/local/grass-6.4.2svn/lib/ /usr/local/grass-6.4.2svn/lib/libgrass_gis.6.4.2svn.so</p><p data-mce-style="font-family: Arial, Tahoma, Verdana, sans-serif;"><font face="Arial, Tahoma, Verdana, sans-serif"><br><em><strong>When I do a make</strong></em> <em><strong><span style="font-family: Arial, Tahoma, Verdana, sans-serif; " data-mce-style="font-family: Arial, Tahoma, Verdana, sans-serif;">I am getting this:<br><br><br></span></strong></em></font></p><p>/usr/local/grass-6.4.2svn//include/Make/Module.make:25: warning: overriding commands for target `install'<br>/usr/local/grass-6.4.2svn//include/Make/Rules.make:90: warning: ignoring old commands for target `install'<br>test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu<br>mpicc -L/usr/local/grass-6.4.2svn/lib/ /usr/local/grass-6.4.2svn/lib/libgrass_gis.6.4.2svn.so -I/usr/local/grass-6.4.2svn/include -g -O2 -D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\" -I/usr/local/grass-6.4.2svn/include -o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c<br>cc: /usr/local/grass-6.4.2svn/lib/libgrass_gis.6.4.2svn.so: linker input file unused because linking not done<br>mpicc -L/usr/local/grass-6.4.2svn/lib/ /usr/local/grass-6.4.2svn/lib/libgrass_gis.6.4.2svn.so -L/usr/local/grass-6.4.2svn/lib -Wl,--export-dynamic -Wl,-rpath-link,/usr/local/grass-6.4.2svn/lib -o /usr/local/grass-6.4.2svn/bin/i.vi.mpi OBJ.x86_64-unknown-linux-gnu/main.o -I/opt/mpich-1.2.7p1/include -lgrass_gis.6.4.2svn -lgrass_datetime.6.4.2svn -lz -lgrass_gmath.6.4.2svn -lgrass_gis.6.4.2svn -lgrass_datetime.6.4.2svn -lz -lm -lz <br>make htmlcmd<br>make[1]: Entering directory `/localuser/ripsime/mpitest'<br>/usr/local/grass-6.4.2svn//include/Make/Module.make:25: warning: overriding commands for target `install'<br>/usr/local/grass-6.4.2svn//include/Make/Rules.make:90: warning: ignoring old commands for target `install'<br>make /usr/local/grass-6.4.2svn/docs/html/i.vi.mpi.html HTMLSRC=/usr/local/grass-6.4.2svn/bin/i.vi.mpi<br>make[2]: Entering directory `/localuser/ripsime/mpitest'<br>/usr/local/grass-6.4.2svn//include/Make/Module.make:25: warning: overriding commands for target `install'<br>/usr/local/grass-6.4.2svn//include/Make/Rules.make:90: warning: ignoring old commands for target `install'<br>if [ "/usr/local/grass-6.4.2svn/bin/i.vi.mpi" != "" ] ; then GISRC=/usr/local/grass-6.4.2svn/demolocation/.grassrc64 GISBASE=/usr/local/grass-6.4.2svn PATH="/usr/local/grass-6.4.2svn/bin:$PATH" LD_LIBRARY_PATH="/usr/local/grass-6.4.2svn/bin:/usr/local/grass-6.4.2svn/lib:/opt/d-cache/dcap/lib:/opt/d-cache/dcap/lib64:/opt/glite/lib:/opt/glite/lib64:/opt/globus/lib:/opt/lcg/lib:/opt/lcg/lib64:/opt/classads/lib64/:/opt/c-ares/lib/" LC_ALL=C /usr/local/grass-6.4.2svn/bin/i.vi.mpi --html-description < /dev/null | grep -v '</body>\|</html>' > i.vi.mpi.tmp.html ; true ; fi<br>ERROR: G_getenv(): Variable LOCATION_NAME not set<br>/usr/local/grass-6.4.2svn//tools/mkhtml.sh i.vi.mpi ; mkdir -p /usr/local/grass-6.4.2svn/docs/html ; /usr/bin/install -c -m 644 i.vi.mpi.tmp.html /usr/local/grass-6.4.2svn/docs/html/i.vi.mpi.html ; for file in *.png *.jpg ; do head -n 1 $file | grep '^#!' > /dev/null ; if [ $? -ne 0 ] ; then /usr/bin/install -c -m 644 $file /usr/local/grass-6.4.2svn/docs/html ; fi done 2> /dev/null ; true<br>make[2]: Leaving directory `/localuser/ripsime/mpitest'<br>make[1]: Leaving directory `/localuser/ripsime/mpitest'<br>make mancmd<br>make[1]: Entering directory `/localuser/ripsime/mpitest'<br>/usr/local/grass-6.4.2svn//include/Make/Module.make:25: warning: overriding commands for target `install'<br>/usr/local/grass-6.4.2svn//include/Make/Rules.make:90: warning: ignoring old commands for target `install'<br>make /usr/local/grass-6.4.2svn/man/man1/i.vi.mpi.1 MANSRC=/usr/local/grass-6.4.2svn/docs/html/i.vi.mpi.html<br>make[2]: Entering directory `/localuser/ripsime/mpitest'<br>/usr/local/grass-6.4.2svn//include/Make/Module.make:25: warning: overriding commands for target `install'<br>/usr/local/grass-6.4.2svn//include/Make/Rules.make:90: warning: ignoring old commands for target `install'<br>mkdir -p /usr/local/grass-6.4.2svn/man/man1<br>GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.2svn sh /usr/local/grass-6.4.2svn//tools/g.html2man /usr/local/grass-6.4.2svn/docs/html/i.vi.mpi.html /usr/local/grass-6.4.2svn/man/man1/i.vi.mpi.1 1<br>/usr/local/grass-6.4.2svn//tools/g.html2man: /usr/local/grass-6.4.2svn//tools/g.html2man: is a directory<br>make[2]: *** [/usr/local/grass-6.4.2svn/man/man1/i.vi.mpi.1] Error 126<br>make[2]: Leaving directory `/localuser/ripsime/mpitest'<br>make[1]: *** [mancmd] Error 2<br>make[1]: Leaving directory `/localuser/ripsime/mpitest'<br>make: *** [cmd] Error 2</p><p data-mce-style="font-family: Arial, Tahoma, Verdana, sans-serif;"><font face="Arial, Tahoma, Verdana, sans-serif"><br><br><em><strong> and this is my run.sh file</strong></em><br><br><br><br></font></p><p>export GISBASE=/localuser/ripsime/grass64_release/dist.x86_64-unknown-linux-gnu<br>export PATH=$PATH:$GISBASE/bin:$GISBASE/scripts<br>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GISBASE/lib:/usr/local/grass-6.4.2svn/lib/<br>export GIS_LOCK=$$<br>export GRASS_PNGFILE=/tmp/grass6output.png<br>export GRASS_TRUECOLOR=TRUE<br>export GRASS_WIDTH=900<br>export GRASS_HEIGHT=1200<br>export GRASS_PNG_COMPRESSION=1<br>export GRASS_MESSAGE_FORMAT=plain</p><p>foo=3<br> filename=ndvi1-new-$foo<br> echo "mpirun -np $foo /usr/local/grass-6.4.2svn/bin/i.vi.mpi viname=ndvi red=outsevanozero.2 nir=outsevanozero.3 vi=$filename tmp=1"</p><p>#time <br> /opt/mpich-1.2.7p1/bin/mpirun -np $foo /usr/local/grass-6.4.2svn/bin/i.vi.mpi viname=ndvi red=outsevanozero.2 nir=outsevanozero.3 vi=$filename tmp=1</p><p>exit 0<br></p><p data-mce-style="font-family: Arial, Tahoma, Verdana, sans-serif;"><font face="Arial, Tahoma, Verdana, sans-serif"> </font></p><em><strong><span style="font-family: Arial, Tahoma, Verdana, sans-serif; " data-mce-style="font-family: Arial, Tahoma, Verdana, sans-serif;"> When I am running the script I am getting this error:<br><br><br><br></span></strong></em><br style="font-family: Arial, Tahoma, Verdana, sans-serif; " data-mce-style="font-family: Arial, Tahoma, Verdana, sans-serif;"><p><span style="font-size: 18px; ">mpirun -np 3 /usr/local/grass-6.4.2svn/bin/i.vi.mpi viname=ndvi red=outsevanozero.2 nir=outsevanozero.3 vi=ndvi1-new-3 tmp=1</span><br><span style="font-size: 18px; ">/usr/local/grass-6.4.2svn/bin/i.vi.mpi: error while loading shared libraries: libgrass_gis.6.4.2svn.so: cannot open shared object file: No such file or directory</span><br><span style="font-size: 18px; ">p0_29144: p4_error: Child process exited while making connection to remote process on wn1.yerphi-cluster.grid.am: 0</span><br><span style="font-size: 18px; ">p0_29144: (4.289062) net_send: could not write to fd=4, errno = 32</span><br></p><font face="Arial, Tahoma, Verdana, sans-serif"><br></font><p id="mailru-webagent-gen-33" style="font-family: Arial, Tahoma, Verdana, sans-serif; " data-mce-style="font-family: Arial, Tahoma, Verdana, sans-serif;"><br><br><br><em><strong>So please any suggestion or help.</strong></em><br><br><br><em><strong>Regards,</strong></em><br><em><strong>Ripsime </strong></em></p></BODY></HTML>