[R] Re: failed rpm installation of R 1.2-1 (fwd)

Albrecht Gebhardt albrecht.gebhardt at uni-klu.ac.at
Wed Feb 7 07:52:23 CET 2001


On Wed, 7 Feb 2001, Faheem Mitha wrote:

> Dear Albrecht,
> 
> Just sent the following message out to r-help. Have you any idea what this
> problem could be?
> 
>                          Sincerely, Faheem Mitha.
> 
> ---------- Forwarded message ----------
> Date: Wed, 7 Feb 2001 00:04:35 -0500 (EST)
> From: Faheem Mitha <faheem at email.unc.edu>
> To: r-help at stat.math.ethz.ch
> Subject: failed rpm installation of R 1.2-1
> 
> Dear People,
> 
> Just tried to compile an rpm for R 1.2-1 (using Albrecht Gebhardt's spec
> file). The compile went successfully and produced a binary rpm, but when I
> tried to install it, I got an error
> 
> error: failed dependencies:
>         BEGIN is needed by R-base-1.2.1-1
> 
> I see this was also listed in the Requires list at the end of the rpm
> compilation: 
> 
> Requires: /bin/sh /usr/bin/perl BEGIN ...
> 
> Of course I could force installation of the package, but I would like to
> know what I am doing first. Albrecht does not say anything about BEGIN in
> his spec file, so this must be somethin internal to R. Does anyone have
> any idea what? I have no idea.
>

I guess, there is some executable file (a snippet of some script with mode
755 or similar) which starts with a line "BEGIN". ....

Well, I just found it, it is an awk script:
find -type f -exec grep -l BEGIN {} \;
...
./bin/maketitle.awk

Clearly it doesn't need the executable bits so simply add

chmod 644 $RPM_BUILD_ROOT/%{prefix}/R/bin/maketitle.awk

to the end of the %install section of my spec file.


Albrecht

// Albrecht Gebhardt          Tel.: (++43 463) 2700/3118
// Institut fuer Mathematik   Fax : (++43 463) 2700/3198
// Universitaet Klagenfurt    mailto:albrecht.gebhardt at uni-klu.ac.at
// Universitaetsstr. 65       http://www-stat.uni-klu.ac.at/~agebhard
// A-9020 Klagenfurt, Austria 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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