Skip to content

R-beta does not install on FreeBSD

4 messages · Rainer Hurling, Brian Ripley, Peter Dalgaard

#
I am trying to install R-beta_2008-08-16_r46368.tar.gz on FreeBSD 
8.0-CURRENT (i386). The code stops compiling with the following message:


--------------------------------------------------------------------
[.. snip ..]
building package 'tcltk'
mkdir ../../../library/tcltk
mkdir ../../../library/tcltk/R
mkdir ../../../library/tcltk/demo
mkdir ../../../library/tcltk/exec
mkdir ../../../library/tcltk/po
mkdir ../../../library/tcltk/man
making init.d from init.c
making tcltk.d from tcltk.c
making tcltk_unix.d from tcltk_unix.c
`Makedeps' is up to date.
gcc -std=gnu99 -I../../../../include -I/usr/local/include/tcl8.4 
-I/usr/local/include/tk8.4 -I/usr/local/include -I/usr/local/include 
-fpic  -g -O2 -c init.c -o init.o
gcc -std=gnu99 -I../../../../include -I/usr/local/include/tcl8.4 
-I/usr/local/include/tk8.4 -I/usr/local/include -I/usr/local/include 
-fpic  -g -O2 -c tcltk.c -o tcltk.o
gcc -std=gnu99 -I../../../../include -I/usr/local/include/tcl8.4 
-I/usr/local/include/tk8.4 -I/usr/local/include -I/usr/local/include 
-fpic  -g -O2 -c tcltk_unix.c -o tcltk_unix.o
gcc -std=gnu99 -shared -L/usr/local/lib -o tcltk.so init.o tcltk.o 
tcltk_unix.o  -L/usr/local/lib -ltcl84 -L/usr/local/lib -ltk84 
-L/usr/local/lib -lX11 -lm
mkdir ../../../../library/tcltk/libs
installing parsed NAMESPACE files
"Makefile", line 28: Need an operator
make: fatal errors encountered -- cannot continue
*** Error code 1

Stop in /usr/local/R-beta.
--------------------------------------------------------------------


This happens with all recent beta versions. R version 2.7.1 Patched 
(2008-08-10 r46284) installed and worked fine.

Could this be a bug with R-beta or is there something wrong with my 
FreeBSD version?

Any help is appreciated.

Thanks in advance,
Rainer Hurling
#
Can you track down which Makefile this is and what line 28 is?

My guess is that your make does not like the comment character at 
line 24 in po/Makefile.in.in, in which case please delete the line.

But the BSD-like makes on Solaris and MacOS have no problem with it.
On Sun, 17 Aug 2008, Rainer Hurling wrote:

            

  
    
#
I see that Brian already fixed this for the next prerelease. Thank you 
to both of you.

    -pd
Prof Brian Ripley wrote:

  
    
#
Direct hit! Your guess was right.

After removing line 24 in po/Makefile.in.in all went fine. 
R-beta_2008-08-16_r46368.tar.gz now compiles and installs perfect on 
FreeBSD 8.0-CURRENT.

Thank you very much for your response.

Rainer
On 17.08.2008 14:02 (UTC+1), Prof Brian Ripley wrote: