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

Martin Maechler maechler at stat.math.ethz.ch
Thu Mar 12 17:46:39 CET 1998

>>>>> "Hubert" == Hubert Palme <palme at 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 at 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
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 at stat.math.ethz.ch

More information about the R-help mailing list