Re: R-beta: POSIX regular expressions not available [INSTALLATION!]

Martin Maechler (maechler@stat.math.ethz.ch)
Thu, 12 Mar 1998 17:46:39 +0100


Date: Thu, 12 Mar 1998 17:46:39 +0100
Message-Id: <199803121646.RAA12896@sophie.ethz.ch>
From: Martin Maechler <maechler@stat.math.ethz.ch>
To: palme@uni-wuppertal.de
Subject: Re: R-beta: POSIX regular expressions not available [INSTALLATION!]

>>>>> "Hubert" == Hubert Palme <palme@uni-wuppertal.de> writes:

    Hubert> When trying grep(), I get the following:
    >> grep("[a-z]", letters)
    Hubert> Error in grep(pattern, x, ignore.case, extended, value) : POSIX
    Hubert> regular expressions not available

    Hubert> I can't find any pointer in the installation kit. How can I
    Hubert> configure R to make it "avaliable"?

    Hubert> I run R in an Irix 5.3 system.

Half an answer:

If POSIX regular expression is used, depends on

#ifdef HAVE_REGCOMP	(in  src/main/character.c)

This is defined during installation when './configure' is run
(./configure writes this result into  src/include/Platform.h ).

In the many output lines of configure, you have probably seen

----------------------- --
checking for regcomp... no
----------------------- ##
where you'd rather would want to see "yes".

------------------
A short (not so helpful) answer is
	``Get a better C compiler + libraries''.

Do you have GNU's cc (gcc) 2.7.1 or newer?
[type "gcc -v"]

Sorry that I don't know more.

Martin Maechler <maechler@stat.math.ethz.ch>			<><
Seminar fuer Statistik, ETH-Zentrum SOL G1;	Sonneggstr.33
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1086
http://www.stat.math.ethz.ch/~maechler/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._