I have a Perl script in scripts.par being run by parl. The script calls make, and make in turn calls parl to run a different script in the same scripts.par.

Things work fine if I manually execute the call to make, but when nested as above, I get this error:

Can't locate PAR.pm in @INC (@INC contains: f:\R\svn\r-devel\R\share\perl .) at -e line 882.

(More details below.)

Is this something I'm not allowed to do, i.e. will the two instances of parl working on the same scripts.par file conflict with each other?

Sorry I haven't put together a reproducible demonstration, but this is a complicated setup...

Duncan Murdoch

Here's a more complete transcript of the output, with some comments added:

<--- rcmd is a C program that will call parl scripts.par INSTALL --->
$ Rcmd INSTALL venn
installing to 'f:/R/svn/r-devel/R/library'

<--- I have INSTALL printing the make command --->
make --no-print-directory -C f:/R/svn/r-devel/R/src/gnuwin32 PKGDIR=d:/svn/MyR R LIB=f:/R/svn/r-devel/R/library venn-SAVE=false DPKG=f:/R/svn/r-devel/R/library/
venn HELP=YES WINHELP=CHM pkg-venn

---------- Making package venn ------------
  adding build stamp to DESCRIPTION
  installing R files
  installing man source files
  installing indices
  installing help
<--- Here make is calling parl again --->
R_OSTYPE=windows parl f:/R/svn/r-devel/R/share/perl/scripts.par build-help
-windows.pl -txt -html -latex -example -chm d:/svn/MyR/venn f:/R/svn/r-devel/R/l
ibrary f:/R/svn/r-devel/R/library/venn venn
Can't locate PAR.pm in @INC (@INC contains: f:\R\svn\r-devel\R\share\perl .) at
-e line 882.
Done
Can't locate PAR.pm in @INC (@INC contains: f:\R\svn\r-devel\R\share\perl .) at
-e line 882.
<--- Some more stuff below deleted --->
...

Reply via email to