Fwd: help building very old R

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: help building very old R

David Hugh-Jones-3
Hi guys,

Perhaps someone here can help.

I am trying to build versions of R 1 for the rcheology package (just
arrived on CRAN).

For R prior to 1.5.0, I cannot configure support for tcl-tk.

I am building on Debian Woody (provided by Docker debian/eol) and have the
following packages installed:
r-base-dev tclx8.3-dev tk8.3-dev xvfb xbase-clients x-window-system-core

I download R source from http://cran.r-project.org/src/base/R-1 and run

./configure --with-tcl-tk=yes
--with-tcl-config=/usr/lib/tcl8.3/tclConfig.sh
      --with-tk-config=/usr/lib/tk8.3/tkConfig.sh

These are the locations for the relevant tkConfig.sh and tclConfig.sh files.
This gives output as follows:

R is now configured for x86_64-unknown-linux-gnu

  Source directory:          .
  Installation directory:    /usr/local

  C compiler:                gcc  -g -O2
  C++ compiler:              c++  -g -O2
  FORTRAN compiler:          g77  -g -O2
  X11 support:               yes
  Gnome support:             no
  Tcl/Tk support:            no
  R profiling support:       yes
  R as a shared library:     no

And config.log reveals:
configure:13099: checking for /usr/lib/tcl8.3/tclConfig.sh
configure:13134: checking for /usr/lib/tk8.3/tkConfig.sh
configure:13204: checking for /usr/include/tcl8.3/tcl.h
configure:13214: gcc -E -I/usr/local/include conftest.c >/dev/null
2>conftest.out
configure:13313: checking for /usr/include/tk8.3/tk.h
configure:13323: gcc -E -I/usr/local/include -I/usr/X11R6/include
-I/usr/include
/tcl8.3 conftest.c >/dev/null 2>conftest.out
configure:13319: /usr/include/tk8.3/tk.h: No such file or directory
configure: failed program was:
#line 13318 "configure"
#include "confdefs.h"
#include </usr/include/tk8.3/tk.h>
configure:13348: checking for /usr/include/tk.h
configure:13358: gcc -E -I/usr/local/include -I/usr/X11R6/include
-I/usr/include
/tcl8.3 conftest.c >/dev/null 2>conftest.out
configure:13354: /usr/include/tk.h: No such file or directory
configure: failed program was:
#line 13353 "configure"
#include "confdefs.h"
#include </usr/include/tk.h>
configure:13385: checking for tk.h
configure:13389: tk.h: No such file or directory

In fact, tk.h is in  /usr/include/tcl8.3/ , despite the failed program
compilation report.

R 1.5.0 and above work fine. Can anyone remember far back, if something
changed in the configure script?

Alternatively, those who are feeling brave can download the Docker image
creation scripts from github.com/hughjonesd/rcheology .

Cheers,

David
--
Sent from Gmail Mobile

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: help building very old R

Dirk Eddelbuettel

On 30 July 2018 at 05:35, David Hugh-Jones wrote:
| Hi guys,
|
| Perhaps someone here can help.
|
| I am trying to build versions of R 1 for the rcheology package (just
| arrived on CRAN).
|
| For R prior to 1.5.0, I cannot configure support for tcl-tk.
|
| I am building on Debian Woody (provided by Docker debian/eol) and have the
| following packages installed:
| r-base-dev tclx8.3-dev tk8.3-dev xvfb xbase-clients x-window-system-core
|
| I download R source from http://cran.r-project.org/src/base/R-1 and run
|
| ./configure --with-tcl-tk=yes
| --with-tcl-config=/usr/lib/tcl8.3/tclConfig.sh
|       --with-tk-config=/usr/lib/tk8.3/tkConfig.sh
|
| These are the locations for the relevant tkConfig.sh and tclConfig.sh files.
| This gives output as follows:
|
| R is now configured for x86_64-unknown-linux-gnu
|
|   Source directory:          .
|   Installation directory:    /usr/local
|
|   C compiler:                gcc  -g -O2
|   C++ compiler:              c++  -g -O2
|   FORTRAN compiler:          g77  -g -O2
|   X11 support:               yes
|   Gnome support:             no
|   Tcl/Tk support:            no
|   R profiling support:       yes
|   R as a shared library:     no
|
| And config.log reveals:
| configure:13099: checking for /usr/lib/tcl8.3/tclConfig.sh
| configure:13134: checking for /usr/lib/tk8.3/tkConfig.sh
| configure:13204: checking for /usr/include/tcl8.3/tcl.h
| configure:13214: gcc -E -I/usr/local/include conftest.c >/dev/null
| 2>conftest.out
| configure:13313: checking for /usr/include/tk8.3/tk.h
| configure:13323: gcc -E -I/usr/local/include -I/usr/X11R6/include
| -I/usr/include
| /tcl8.3 conftest.c >/dev/null 2>conftest.out
| configure:13319: /usr/include/tk8.3/tk.h: No such file or directory
| configure: failed program was:
| #line 13318 "configure"
| #include "confdefs.h"
| #include </usr/include/tk8.3/tk.h>
| configure:13348: checking for /usr/include/tk.h
| configure:13358: gcc -E -I/usr/local/include -I/usr/X11R6/include
| -I/usr/include
| /tcl8.3 conftest.c >/dev/null 2>conftest.out
| configure:13354: /usr/include/tk.h: No such file or directory
| configure: failed program was:
| #line 13353 "configure"
| #include "confdefs.h"
| #include </usr/include/tk.h>
| configure:13385: checking for tk.h
| configure:13389: tk.h: No such file or directory
|
| In fact, tk.h is in  /usr/include/tcl8.3/ , despite the failed program
| compilation report.
|
| R 1.5.0 and above work fine. Can anyone remember far back, if something
| changed in the configure script?
|
| Alternatively, those who are feeling brave can download the Docker image
| creation scripts from github.com/hughjonesd/rcheology .

Have you considered the actual Debian packages from "way back then" ?
Debian has this nifty snapshot archive where you can get old binaries:

  http://snapshot.debian.org/

For (source package) r-base we see 3.5.1 all the way down to 0.61.2

  http://snapshot.debian.org/package/r-base/

Alternatively, the package itself is now (finally, my bad) in a git repo
which goes back to 0.61.2 as well (using snapshot as the feeder)

  https://salsa.debian.org/edd/r-base/commits/master

Hth,  Dirk

--
http://dirk.eddelbuettel.com | @eddelbuettel | [hidden email]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: help building very old R

David Hugh-Jones-3
Thanks for the tip. That could be a huge timesaver. But it lists only a
single package for versions 0.90.1-2 ... how does that work?
David


On Mon, 30 Jul 2018 at 12:27, Dirk Eddelbuettel <[hidden email]> wrote:

>
> On 30 July 2018 at 05:35, David Hugh-Jones wrote:
> | Hi guys,
> |
> | Perhaps someone here can help.
> |
> | I am trying to build versions of R 1 for the rcheology package (just
> | arrived on CRAN).
> |
> | For R prior to 1.5.0, I cannot configure support for tcl-tk.
> |
> | I am building on Debian Woody (provided by Docker debian/eol) and have
> the
> | following packages installed:
> | r-base-dev tclx8.3-dev tk8.3-dev xvfb xbase-clients x-window-system-core
> |
> | I download R source from http://cran.r-project.org/src/base/R-1 and run
> |
> | ./configure --with-tcl-tk=yes
> | --with-tcl-config=/usr/lib/tcl8.3/tclConfig.sh
> |       --with-tk-config=/usr/lib/tk8.3/tkConfig.sh
> |
> | These are the locations for the relevant tkConfig.sh and tclConfig.sh
> files.
> | This gives output as follows:
> |
> | R is now configured for x86_64-unknown-linux-gnu
> |
> |   Source directory:          .
> |   Installation directory:    /usr/local
> |
> |   C compiler:                gcc  -g -O2
> |   C++ compiler:              c++  -g -O2
> |   FORTRAN compiler:          g77  -g -O2
> |   X11 support:               yes
> |   Gnome support:             no
> |   Tcl/Tk support:            no
> |   R profiling support:       yes
> |   R as a shared library:     no
> |
> | And config.log reveals:
> | configure:13099: checking for /usr/lib/tcl8.3/tclConfig.sh
> | configure:13134: checking for /usr/lib/tk8.3/tkConfig.sh
> | configure:13204: checking for /usr/include/tcl8.3/tcl.h
> | configure:13214: gcc -E -I/usr/local/include conftest.c >/dev/null
> | 2>conftest.out
> | configure:13313: checking for /usr/include/tk8.3/tk.h
> | configure:13323: gcc -E -I/usr/local/include -I/usr/X11R6/include
> | -I/usr/include
> | /tcl8.3 conftest.c >/dev/null 2>conftest.out
> | configure:13319: /usr/include/tk8.3/tk.h: No such file or directory
> | configure: failed program was:
> | #line 13318 "configure"
> | #include "confdefs.h"
> | #include </usr/include/tk8.3/tk.h>
> | configure:13348: checking for /usr/include/tk.h
> | configure:13358: gcc -E -I/usr/local/include -I/usr/X11R6/include
> | -I/usr/include
> | /tcl8.3 conftest.c >/dev/null 2>conftest.out
> | configure:13354: /usr/include/tk.h: No such file or directory
> | configure: failed program was:
> | #line 13353 "configure"
> | #include "confdefs.h"
> | #include </usr/include/tk.h>
> | configure:13385: checking for tk.h
> | configure:13389: tk.h: No such file or directory
> |
> | In fact, tk.h is in  /usr/include/tcl8.3/ , despite the failed program
> | compilation report.
> |
> | R 1.5.0 and above work fine. Can anyone remember far back, if something
> | changed in the configure script?
> |
> | Alternatively, those who are feeling brave can download the Docker image
> | creation scripts from github.com/hughjonesd/rcheology .
>
> Have you considered the actual Debian packages from "way back then" ?
> Debian has this nifty snapshot archive where you can get old binaries:
>
>   http://snapshot.debian.org/
>
> For (source package) r-base we see 3.5.1 all the way down to 0.61.2
>
>   http://snapshot.debian.org/package/r-base/
>
> Alternatively, the package itself is now (finally, my bad) in a git repo
> which goes back to 0.61.2 as well (using snapshot as the feeder)
>
>   https://salsa.debian.org/edd/r-base/commits/master
>
> Hth,  Dirk
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | [hidden email]
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: help building very old R

Dirk Eddelbuettel

On 30 July 2018 at 16:26, David Hugh-Jones wrote:
| Thanks for the tip. That could be a huge timesaver. But it lists only a
| single package for versions 0.90.1-2 ... how does that work?

The lookip is source or binary-package based. Eg here are three binaries
built from source 'r-base':

  http://snapshot.debian.org/binary/r-base-core/
  http://snapshot.debian.org/binary/r-base-dev/
  http://snapshot.debian.org/binary/r-mathlib/

etc pp

Dirk

--
http://dirk.eddelbuettel.com | @eddelbuettel | [hidden email]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: help building very old R

Peter Dalgaard-2
In reply to this post by David Hugh-Jones-3
[Oops, I seem to have managed not to send this yesterday...]

Not sure how to fix, but note that configure is not lying to you:

> configure:13319: /usr/include/tk8.3/tk.h: No such file or directory

tk8.3, not tcl8.3

-pd

> On 30 Jul 2018, at 06:35 , David Hugh-Jones <[hidden email]> wrote:
>
> Hi guys,
>
> Perhaps someone here can help.
>
> I am trying to build versions of R 1 for the rcheology package (just
> arrived on CRAN).
>
> For R prior to 1.5.0, I cannot configure support for tcl-tk.
>
> I am building on Debian Woody (provided by Docker debian/eol) and have the
> following packages installed:
> r-base-dev tclx8.3-dev tk8.3-dev xvfb xbase-clients x-window-system-core
>
> I download R source from http://cran.r-project.org/src/base/R-1 and run
>
> ./configure --with-tcl-tk=yes
> --with-tcl-config=/usr/lib/tcl8.3/tclConfig.sh
>      --with-tk-config=/usr/lib/tk8.3/tkConfig.sh
>
> These are the locations for the relevant tkConfig.sh and tclConfig.sh files.
> This gives output as follows:
>
> R is now configured for x86_64-unknown-linux-gnu
>
>  Source directory:          .
>  Installation directory:    /usr/local
>
>  C compiler:                gcc  -g -O2
>  C++ compiler:              c++  -g -O2
>  FORTRAN compiler:          g77  -g -O2
>  X11 support:               yes
>  Gnome support:             no
>  Tcl/Tk support:            no
>  R profiling support:       yes
>  R as a shared library:     no
>
> And config.log reveals:
> configure:13099: checking for /usr/lib/tcl8.3/tclConfig.sh
> configure:13134: checking for /usr/lib/tk8.3/tkConfig.sh
> configure:13204: checking for /usr/include/tcl8.3/tcl.h
> configure:13214: gcc -E -I/usr/local/include conftest.c >/dev/null
> 2>conftest.out
> configure:13313: checking for /usr/include/tk8.3/tk.h
> configure:13323: gcc -E -I/usr/local/include -I/usr/X11R6/include
> -I/usr/include
> /tcl8.3 conftest.c >/dev/null 2>conftest.out
> configure:13319: /usr/include/tk8.3/tk.h: No such file or directory
> configure: failed program was:
> #line 13318 "configure"
> #include "confdefs.h"
> #include </usr/include/tk8.3/tk.h>
> configure:13348: checking for /usr/include/tk.h
> configure:13358: gcc -E -I/usr/local/include -I/usr/X11R6/include
> -I/usr/include
> /tcl8.3 conftest.c >/dev/null 2>conftest.out
> configure:13354: /usr/include/tk.h: No such file or directory
> configure: failed program was:
> #line 13353 "configure"
> #include "confdefs.h"
> #include </usr/include/tk.h>
> configure:13385: checking for tk.h
> configure:13389: tk.h: No such file or directory
>
> In fact, tk.h is in  /usr/include/tcl8.3/ , despite the failed program
> compilation report.
>
> R 1.5.0 and above work fine. Can anyone remember far back, if something
> changed in the configure script?
>
> Alternatively, those who are feeling brave can download the Docker image
> creation scripts from github.com/hughjonesd/rcheology .
>
> Cheers,
>
> David
> --
> Sent from Gmail Mobile
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: [hidden email]  Priv: [hidden email]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel