Bill.Glessner at cwu.EDU
2010-Jun-09 18:51 UTC
[Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)
First I tried 'setenv R_SHELL /usr/local/bin/bash', as bash is the
weapon
of choice for the faculty wishing to use R, then ran ./configure as before.
The ./configure output line
using as R_SHELL for scripts ... /usr/local/bin/bash
would seem to indicate that the R_SHELL environment variable was recognized
and acknowledged. However, I got the same build error:
gnumake[2]: Entering directory
`/usrX/JunqueYard/R-2.11.1/src/library/Recommended'
begin installing recommended package MASS
/usrX/JunqueYard/R-2.11.1/bin/Rcmd: @: not found
gnumake[2]: *** [MASS.ts] Error 1
gnumake[2]: Leaving directory
`/usrX/JunqueYard/R-2.11.1/src/library/Recommended'
Rcmd for this build:
#!/usr/local/bin/bash
#
# ${R_HOME}/bin/Rcmd
## Shell script wrapper for all R CMD commands.
## For internal use only.
R_CMD="${R_HOME}/bin/Rcmd"
export R_CMD
R_VERSION=2.11.1
export R_VERSION
R_OSTYPE="unix"
export R_OSTYPE
## Add 'share/perl' to the perl library path.
if test -n "${PERL5LIB}"; then
PERL5LIB="${R_SHARE_DIR}/perl:${PERL5LIB}"
export PERL5LIB
else
PERLLIB="${R_SHARE_DIR}/perl:${PERLLIB}"
export PERLLIB
fi
## Append 'share/texmf' to TeX's input search path.
if test -z "$TEXINPUTS}"; then
TEXINPUTS=".:${R_SHARE_DIR}/texmf:"
else
TEXINPUTS=".:${TEXINPUTS}:${R_SHARE_DIR}/texmf:"
fi
export TEXINPUTS
. "${R_HOME}/etc${R_ARCH}/Renviron"
export `sed 's/^ *#.*//; s/^\(.*\)=.*/\1/'
"${R_HOME}/etc${R_ARCH}/Renviron"`
extracase "${1}" in
perl)
cmd="${PERL}" ;;
awk)
cmd="${AWK}" ;;
## this was a separate command prior to 2.10.0
Rd2txt)
cmd="${R_HOME}/bin/Rdconv"
extra="-t txt"
;;
Rd2pdf)
cmd="${R_HOME}/bin/Rd2dvi"
extra="--pdf"
;;
*)
if test -x "${R_HOME}/bin/${1}"; then
cmd="${R_HOME}/bin/${1}"
else
cmd="${1}"
fi
;;
esac
shift
exec "${cmd}" ${extra} "${@}"
### Local Variables: ***
### mode: sh ***
### sh-indentation: 2 ***
### End: ***
I tried removing the R_SHELL environment variable and editing the
./src/scripts/Rcmd.in, changing the {1}'s to {1+@}'s. ./configure
produced the following line showing that R_SHELL was back to ksh:
using as R_SHELL for scripts ... /bin/ksh
But that also produced the same build error
gnumake[2]: Entering directory
`/usrX/JunqueYard/R-2.11.1/src/library/Recommended'
begin installing recommended package MASS
/usrX/JunqueYard/R-2.11.1/bin/Rcmd: @: not found
gnumake[2]: *** [MASS.ts] Error 1
gnumake[2]: Leaving directory
`/usrX/JunqueYard/R-2.11.1/src/library/Recommended'
Rcmd for this build:
Rcmd for this build:
#!/bin/ksh
#
# ${R_HOME}/bin/Rcmd
## Shell script wrapper for all R CMD commands.
## For internal use only.
R_CMD="${R_HOME}/bin/Rcmd"
export R_CMD
R_VERSION=2.11.1
export R_VERSION
R_OSTYPE="unix"
export R_OSTYPE
## Add 'share/perl' to the perl library path.
if test -n "${PERL5LIB}"; then
PERL5LIB="${R_SHARE_DIR}/perl:${PERL5LIB}"
export PERL5LIB
else
PERLLIB="${R_SHARE_DIR}/perl:${PERLLIB}"
export PERLLIB
fi
## Append 'share/texmf' to TeX's input search path.
if test -z "$TEXINPUTS}"; then
TEXINPUTS=".:${R_SHARE_DIR}/texmf:"
else
TEXINPUTS=".:${TEXINPUTS}:${R_SHARE_DIR}/texmf:"
fi
export TEXINPUTS
. "${R_HOME}/etc${R_ARCH}/Renviron"
export `sed 's/^ *#.*//; s/^\(.*\)=.*/\1/'
"${R_HOME}/etc${R_ARCH}/Renviron"`
extracase "${1+@}" in
perl)
cmd="${PERL}" ;;
awk)
cmd="${AWK}" ;;
## this was a separate command prior to 2.10.0
Rd2txt)
cmd="${R_HOME}/bin/Rdconv"
extra="-t txt"
;;
Rd2pdf)
cmd="${R_HOME}/bin/Rd2dvi"
extra="--pdf"
;;
*)
if test -x "${R_HOME}/bin/${1+@}"; then
cmd="${R_HOME}/bin/${1+@}"
else
cmd="${1+@}"
fi
;;
esac
shift
exec "${cmd}" ${extra} "${@}"
### Local Variables: ***
### mode: sh ***
### sh-indentation: 2 ***
### End: ***
I also tried 'setenv R_SHELL /bin/sh' with the same results.
Bill
>Return-path: <ripley at stats.ox.ac.uk>
>Date: Tue, 08 Jun 2010 22:02:13 +0100 (BST)
>From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
>Subject: Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)
system
>To: Bill.Glessner at cwu.edu
>Cc: r-devel at r-project.org
>
>Ah, so configure has chosen /bin/ksh as the shell, and that does not
>like this sh syntax on your system. Try setting R_SHELL=/bin/sh when
>configuring (or the path to bash, if you have that).
>
>Alternatively, use ${1+@} in Rcmd.in (we have that as a workaround in
>R.sh.in).
>
>On Tue, 8 Jun 2010, Bill.Glessner at cwu.edu wrote:
>
>>
>> Here is the Rcmd from the ./bin subdirectory of the build tree
>> /usrX/JunqueYard/R-2.11.1:
>>
>> ...snip...
>>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>>
>>>
>>> --
>>> Brian D. Ripley, ripley at stats.ox.ac.uk
>>> Professor of Applied Statistics,
http://www.stats.ox.ac.uk/~ripley/
>>> University of Oxford, Tel: +44 1865 272861 (self)
>>> 1 South Parks Road, +44 1865 272866 (PA)
>>> Oxford OX1 3TG, UK Fax: +44 1865 272595
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
>--
>Brian D. Ripley, ripley at stats.ox.ac.uk
>Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
>University of Oxford, Tel: +44 1865 272861 (self)
>1 South Parks Road, +44 1865 272866 (PA)
>Oxford OX1 3TG, UK Fax: +44 1865 272595
Peter Dalgaard
2010-Jun-09 21:10 UTC
[Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)
Bill.Glessner at cwu.edu wrote:> First I tried 'setenv R_SHELL /usr/local/bin/bash', as bash is the weapon > of choice for the faculty wishing to use R, then ran ./configure as before. > The ./configure output line > > using as R_SHELL for scripts ... /usr/local/bin/bash > > would seem to indicate that the R_SHELL environment variable was recognized > and acknowledged. However, I got the same build error:Two ideas (longshots...) (a) You're building in the source directory. Try not doing that an start with clean sources. (b) insert "set -v" at the top of Rcmd so that you see the script as it is executed. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
Bill.Glessner at cwu.EDU
2010-Jun-10 17:52 UTC
[Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)
I created a separate build directory, started with a fresh source directory,
changed directory into the build directory, ran configure from the source
directory.
Then put 'set -v' at the top of <build-directory>/src/scripts/Rcmd
before
issuing the gnumake.
The build had the same problem with the packages and provided the following
output at that stage:
gnumake[1]: Leaving directory `/usrX/JunqueYard/R-2.11.1_build/src/library'
gnumake[1]: Entering directory `/usrX/JunqueYard/R-2.11.1_build/src/library/Reco
mmended'
gnumake[2]: Entering directory `/usrX/JunqueYard/R-2.11.1_build/src/library/Reco
mmended'
begin installing recommended package MASS
# ${R_HOME}/bin/Rcmd
## Shell script wrapper for all R CMD commands.
## For internal use only.
R_CMD="${R_HOME}/bin/Rcmd"
export R_CMD
R_VERSION=2.11.1
export R_VERSION
R_OSTYPE="unix"
export R_OSTYPE
## Add 'share/perl' to the perl library path.
if test -n "${PERL5LIB}"; then
PERL5LIB="${R_SHARE_DIR}/perl:${PERL5LIB}"
export PERL5LIB
else
PERLLIB="${R_SHARE_DIR}/perl:${PERLLIB}"
export PERLLIB
fi
## Append 'share/texmf' to TeX's input search path.
if test -z "$TEXINPUTS}"; then
TEXINPUTS=".:${R_SHARE_DIR}/texmf:"
else
TEXINPUTS=".:${TEXINPUTS}:${R_SHARE_DIR}/texmf:"
fi
export TEXINPUTS
. "${R_HOME}/etc${R_ARCH}/Renviron"
export `sed 's/^ *#.*//; s/^\(.*\)=.*/\1/'
"${R_HOME}/etc${R_ARCH}/Renviron"`
extracase "${1}" in
perl)
cmd="${PERL}" ;;
awk)
cmd="${AWK}" ;;
## this was a separate command prior to 2.10.0
Rd2txt)
cmd="${R_HOME}/bin/Rdconv"
extra="-t txt"
;;
Rd2pdf)
cmd="${R_HOME}/bin/Rd2dvi"
extra="--pdf"
;;
*)
if test -x "${R_HOME}/bin/${1}"; then
cmd="${R_HOME}/bin/${1}"
else
cmd="${1}"
fi
;;
esac
shift
exec "${cmd}" ${extra} "${@}"
/usr/local/JunqueYard/R-2.11.1_build/bin/Rcmd: @: not found
gnumake[2]: *** [MASS.ts] Error 1
gnumake[2]: Leaving directory `/usrX/JunqueYard/R-2.11.1_build/src/library/Recom
mended'
gnumake[1]: *** [recommended-packages] Error 2
gnumake[1]: Leaving directory `/usrX/JunqueYard/R-2.11.1_build/src/library/Recom
mended'
gnumake: *** [stamp-recommended] Error 2
I think that I am following the instructions in the "R Installation and
Administration" manual, but results would suggest otherwise. I greatly
appreciate any suggestions.
Regards,
Bill
>Return-path: <pdalgd at gmail.com>
>Date: Wed, 09 Jun 2010 23:10:12 +0200
>From: Peter Dalgaard <pdalgd at gmail.com>
>Subject: Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)
>To: Bill.Glessner at cwu.edu
>Cc: r-devel at r-project.org
>
>Bill.Glessner at cwu.edu wrote:
>> First I tried 'setenv R_SHELL /usr/local/bin/bash', as bash is
the weapon
>> of choice for the faculty wishing to use R, then ran ./configure as
before.
>> The ./configure output line
>>
>> using as R_SHELL for scripts ... /usr/local/bin/bash
>>
>> would seem to indicate that the R_SHELL environment variable was
recognized
>> and acknowledged. However, I got the same build error:
>
>Two ideas (longshots...)
>
>(a) You're building in the source directory. Try not doing that an start
>with clean sources.
>
>(b) insert "set -v" at the top of Rcmd so that you see the script
as it
>is executed.
>
>--
>Peter Dalgaard
>Center for Statistics, Copenhagen Business School
>Phone: (+45)38153501
>Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com