Re: [R] make error: ../../../bin/R: bad substitution

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon, 24 Mar 2008 18:45:12 +0000 (GMT)

Since you have posted about this before with errors earlier in the build process and not told us those were resolved, very likely something prior to this is the problem.

You will find people here more responsive if you don't disregard the posting guide, e.g. by sending HTML mail.

On Mon, 24 Mar 2008, tomkur2006-takehome_at_yahoo.com wrote:

> Hi,
>
> I am getting this error when I run 'make' under src/library/base:
> ../../../library/base/R/base is unchanged
> ../../../bin/R: bad substitution
> make: *** [all] Error 1
>
> I traced it down to the following line in src/library/base/Makefile:
> @cat $(srcdir)/makebasedb.R | \
> R_DEFAULT_PACKAGES=NULL LC_ALL=C $(R_EXE) --slave > /dev/null
>
> I am trying to build R-2.6.2 on a Solaris 9 box.
> Can anyone advise on what may go wrong? Thank you.

That doesn't help at all: we already know the problem is in bin/R, which will affect any attempt to run R. You will have to track down the 'bad substitution' (and no one else is going to be able to do it for you).

BTW, R 2.6.2 runs perfectly well on Solaris 8 and 10, and we know R 2.6.0 works on Solaris 9 because sunfreeware.com distribute it. This points pretty firmly to something non-standard about your system.

>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
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-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 24 Mar 2008 - 18:49:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 24 Mar 2008 - 19:31:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive