[Rd] On Windows, need external access to the BLAS, LAPACK and LINPACK linear algebra functions included in R
Hi, For my use, outside of the R environment, I am trying access the BLAS, LAPACK and LINPACK linear algebra functions included in R I am following the instructions here . . . 6.17 Using these functions in your own C code https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Standalone-Mathlib AND 9.1 Unix-alike https://cran.r-project.org/doc/manuals/R-admin.html#Unix_002dalike-standalone to get . . . 6.7 Numerical analysis subroutines https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Numerical-analysis-subroutines However, when I run configure, I (eventually) get this error, and configure stops . . . ``` ComputerUser@COMPUTER MINGW64 /c/APPLICATIONS/r-source-R-4-0-branch $ ./configure --with-x=no checking for BSD networking... configure: error: BSD networking functions are required ``` What do I need to do next? Thanks, Andre Mikulec [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] On Windows, need external access to the BLAS, LAPACK and LINPACK linear algebra functions included in R
Ivan and all, Thanks, I compiled R from source on windows. Next, I followed: https://cran.r-project.org/doc/manuals/R-admin.html#Windows-standalone That works. Thanks, Andre Mikulec From: Ivan Krylov Sent: Monday, December 21, 2020 1:27 AM To: Andre Mikulec Cc: r-devel@r-project.org LINPACK linear algebra functions included in R Hello Andre Mikulec! On Mon, 21 Dec 2020 00:20:35 + Andre Mikulec wrote: > ComputerUser@COMPUTER MINGW64 /c/APPLICATIONS/r-source-R-4-0-branch > > checking for BSD networking... configure: error: BSD networking > functions are required > > What do I need to do next? MinGW64 seems to be not sufficiently Unix-alike for ./configure to conclude that it has sockets API (WinSock header names and some type definitions are different from its expectations). You seem to be on section? Apologies if I'm missing some context, but it seems to me that the -- Best regards, Ivan [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] On Windows, need external access to the BLAS, LAPACK and LINPACK linear algebra functions included in R
All, Actually, I mis-read the instructions, I now have access to many R functions, but not BLAS, LAPACK and LINPACK (directly). That is something else I am still working on. From: R-devel on behalf of Andre Mikulec Sent: Monday, December 21, 2020 6:09 PM To: r-devel@r-project.org LINPACK linear algebra functions included in R Ivan and all, Thanks, I compiled R from source on windows. Next, I followed: That works. Thanks, Andre Mikulec From: Ivan Krylov Sent: Monday, December 21, 2020 1:27 AM To: Andre Mikulec Cc: r-devel@r-project.org LINPACK linear algebra functions included in R Hello Andre Mikulec! On Mon, 21 Dec 2020 00:20:35 + Andre Mikulec wrote: > ComputerUser@COMPUTER MINGW64 /c/APPLICATIONS/r-source-R-4-0-branch > > checking for BSD networking... configure: error: BSD networking > functions are required > > What do I need to do next? MinGW64 seems to be not sufficiently Unix-alike for ./configure to conclude that it has sockets API (WinSock header names and some type definitions are different from its expectations). You seem to be on section? Apologies if I'm missing some context, but it seems to me that the -- Best regards, Ivan [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Looking for R for Windows (rversion: 4.2.2) in base/old/%rversion%/R-%rversion%-win.exe
Peter Dalgaard, R-devel team, et al., Hi, my name is Andre Mikulec. I am an `common` committer to Postgres PL/R . . . https://github.com/postgres-plr/plr/commits?author=AndreMikulec https://github.com/postgres-plr/plr `PL/R - PostgreSQL support for R as a procedural language (PL)` However, now and different from the past, the `windows/base/old` R 4.2.2 download location URL link now, redirects to the wrong `R 4.2.1` location. Historically, Previous and Current(still called `old`) Windows versions of R have been stored here (below) and the current(old) version of R would have been 4.2.2. and would have pointed to R 4.2.2. https://cran.r-project.org/bin/windows/base/old/ ``` In this directory (and its URL redirect (->)): R 4.2.2 (October, 2022) -> https://cran.r-project.org/bin/windows/base/old/4.2.1 (NEED 4.2.2) R 4.2.1 (June, 2022) -> https://cran.r-project.org/bin/windows/base/old/4.2.1/ ``` So, something has changed `R 4.2.2 (October, 2022)` now redirects to `base/old/4.2.1`. Now and in the past, Appveyor builds of PL/R rely a specific version of R in an exact location: https://github.com/postgres-plr/plr/blob/4ac054e61c62f72a9cd3a38f66476d037b3e27a5/appveyor.yml#L25 ``` - pg: REL_15_0 PlatformToolset: v141 configuration: Release APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 rversion: 4.2.1 ``` Notice (above and) below the variable `rversion: 4.2.1` and the hard coded location `base/old/%rversion%/R-%rversion%-win.exe`. https://github.com/postgres-plr/plr/blob/4ac054e61c62f72a9cd3a38f66476d037b3e27a5/appveyor.yml#L108 ``` - if not exist R-%rversion%-win.exe appveyor downloadfile https://cran.r-project.org/bin/windows/base/old/%rversion%/R-%rversion%-win.exe ``` E.g. the most recent PL/R build (a month ago) using R 4.2.1 `PL/R - PostgreSQL support for R as a procedural language (PL)` build: https://ci.appveyor.com/project/davecramer/plr-daun5/build/job/7lqs9pkgartjhxwt?fullLog=true#L15 ``` Cache 'R-4.2.1-win.exe' - Restored Running Install scripts if not exist R-%rversion%-win.exe appveyor downloadfile https://cran.r-project.org/bin/windows/base/old/%rversion%/R-%rversion%-win.exe R-%rversion%-win.exe /VERYSILENT ``` Now, where may One find a `specific version of R in an exact location`? Please help. Thanks, Andre Mikulec [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Debug an R windows (Fortran) DLL within R with gdb?
Hi, I have a Fortran 77 subroutine (dll). On windows XP, how would I 'debug it(Fortran) within R' using gdb? This is how I made it. -- R CMD SHLIB main.f gfortran -m32 -O3 -mtune=core2 -c main.f -o main.o gcc -m32 -shared -s -static-libgcc -o main.dll tmp.def main.o -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -lgfortran -LF:/ProgramFiles/R/R-3.1.1/bin/i386 -lR Here is the contents of the file main.f - SUBROUTINE NGCD(NA, NB, NGCDO) IA = NA IB = NB 1 IF (IB.NE.0) THEN ITEMP = IA IA = IB IB = MOD(ITEMP, IB) GOTO 1 END IF NGCDO = IA RETURN END Thank you, Andre Mikulec andre_miku...@hotmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Debug an R windows (Fortran) DLL within R with gdb?
Help, My Rgui.exe, main.f, main.o, and main.dll are all in the same directory. When I try to set a breakpoint, I get this response (gdb) b main.f:3 No source file named main.f I tried the -gdwarf-2 requirement in both the compiling and linking statements. This did not fix the problem. The cygwin site recommended the -g option. I tried this. This did not fix the problem. I did not use R CMD SHLIB ( I ran the statements manually ). Andre Mikulec andre_miku...@hotmail.com > From: r-devel-requ...@r-project.org > Subject: R-devel Digest, Vol 139, Issue 15 > To: r-devel@r-project.org > Date: Tue, 16 Sep 2014 12:00:06 +0200 > > Send R-devel mailing list submissions to > r-devel@r-project.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://stat.ethz.ch/mailman/listinfo/r-devel > or, via email, send a message with subject or body 'help' to > r-devel-requ...@r-project.org > > You can reach the person managing the list at > r-devel-ow...@r-project.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of R-devel digest..." > > > Today's Topics: > > 1. Debug an R windows (Fortran) DLL within R with gdb? > (Andre Mikulec) > 2. Re: Debug an R windows (Fortran) DLL within R with gdb? > (Duncan Murdoch) > > > ---------- > > Message: 1 > Date: Mon, 15 Sep 2014 17:25:49 -0400 > From: Andre Mikulec > To: "r-devel@r-project.org" > Subject: [Rd] Debug an R windows (Fortran) DLL within R with gdb? > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > > Hi,? > I have a Fortran 77 subroutine (dll). > > On windows XP, how ?would I 'debug it(Fortran) within R' using gdb? > > This is how I made it. > -- > > R CMD SHLIB main.f > > gfortran -m32 ? ? -O3 ?-mtune=core2 -c main.f -o main.o > > gcc -m32 -shared -s -static-libgcc -o main.dll tmp.def main.o > -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 > -Ld:/RCompile/CRANpkg/extralibs64/local/lib -lgfortran > -LF:/ProgramFiles/R/R-3.1.1/bin/i386 -lR > > > Here is the contents of the file ?main.f > - > > ? ? ? SUBROUTINE NGCD(NA, NB, NGCDO)? > ? ? ? ? IA = NA > ? ? ? ? IB = NB > ? ? 1 ? IF (IB.NE.0) THEN > ? ? ? ? ? ITEMP = IA > ? ? ? ? ? IA = IB > ? ? ? ? ? IB = MOD(ITEMP, IB) > ? ? ? ? ? GOTO 1 > ? ? ? ? END IF > ? ? ? ? NGCDO = IA ? > ? ? ? ? RETURN > ? ? ? END > > Thank you, > Andre Mikulec > andre_miku...@hotmail.com > > > > > > -- > > Message: 2 > Date: Mon, 15 Sep 2014 18:05:36 -0400 > From: Duncan Murdoch > To: Andre Mikulec , "r-devel@r-project.org" > > Subject: Re: [Rd] Debug an R windows (Fortran) DLL within R with gdb? > Message-ID: <541762b0.1050...@gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > On 15/09/2014, 5:25 PM, Andre Mikulec wrote: >> >> Hi, >> I have a Fortran 77 subroutine (dll). >> >> On windows XP, how would I 'debug it(Fortran) within R' using gdb? >> >> This is how I made it. >> -- >> >> R CMD SHLIB main.f >> >> gfortran -m32 -O3 -mtune=core2 -c main.f -o main.o >> >> gcc -m32 -shared -s -static-libgcc -o main.dll tmp.def main.o >> -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 >> -Ld:/RCompile/CRANpkg/extralibs64/local/lib -lgfortran >> -LF:/ProgramFiles/R/R-3.1.1/bin/i386 -lR >> >> >> Here is the contents of the file main.f >> - >> >> SUBROUTINE NGCD(NA, NB, NGCDO) >> IA = NA >> IB = NB >> 1 IF (IB.NE.0) THEN >> ITEMP = IA >> IA = IB >> IB = MOD(ITEMP, IB) >> GOTO 1 >> END IF >> NGCDO = IA >> RETURN >> END > > I don't think you put in any compile options to include symbolic > information. You need to do that. I think the option you want is > -gdwarf-2, but I rarely use Fortran, and never use SHLIB, so I could be > wrong. I'll assume you can figure out how to do that. > > Run R under gdb using > > gdb Rgui > > Load your DLL. > > Break to gdb using the menu entry "Misc | Break to debugger". > > Set a breakpoint, e.g. > > b main.f:3 > > to set it on line 3. Then use c to let R continue, and make a call to > your code. Then the usual gdb commands will work after it breaks. > > Duncan Murdoch > > > > -- > > ___ > R-devel@r-project.org mailing list DIGESTED > https://stat.ethz.ch/mailman/listinfo/r-devel > > > End of R-devel Digest, Vol 139, Issue 15 > __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Trying to make DEBUG=T a debug version of R
Hi, I am trying to make a debug version of R ( for use with gdb later ) on windows. I am executing the following. src\gnuwin32>make clean src\gnuwin32>make DEBUG=T In the output, I see many -O3 flags I do not see any -g -O0 flags which ( I believe/I think ) that is what I need to debug R in gdb. What is the proper way to 'make' a 'Debug version of R'? Thank you, Andre Mikulec andre_miku...@hotmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] windows compile R from source, where do I put the Tcl directory?
Hi, I am trying to compile R from source on Windows. I am following the instructions here 3.1 Building from source 3 Installing R under Windows file:///F:/ProgramFiles/R/R-2.15.3/doc/manual/R-admin.html It only says, " The Tcl/Tk support files are contained in Rtools30.exe and available as .zips from http://www.stats.ox.ac.uk/pub/Rtools. Please make sure you install the right version: there is a 32-bit version and a 64-bit version. " Anyways, I collected the support files from here. http://www.stats.ox.ac.uk/pub/Rtools/R_Tcl_8-5-8.zip The instructions do not say "where to put my Tcl folder." So I just guessed, based on ( include, doc, and bin are parallel directories ) in F:\ProgramFiles\R\R-2.15.3\Tcl I guessed ( and guessed wrong ) ... M:\YDrive\All_Economics\eclipse_workspace\R-2.15.3\src\Tcl When Try to compile with M:\YDrive\All_Economics\eclipse_workspace\R-2.15.3\src\gnuwin32>make all recommended I eventually get ... "tcltk.h:23:17: fatal error: tcl.h: No such file or directory" in the message building package 'tcltk' making init.d from init.c making tcltk.d from tcltk.c making tcltk_win.d from tcltk_win.c gcc -I"../../../../include" -DNDEBUG -I "../../../../Tcl"/include -DWin32 -O3 -Wall -gdwarf-2 -std=gnu99 -c init.c -o init.o In file included from init.c:22:0: tcltk.h:23:17: fatal error: tcl.h: No such file or directory compilation terminated. make[4]: *** [init.o] Error 1 make[3]: *** [mksrc-win2] Error 1 make[2]: *** [all] Error 2 make[1]: *** [R] Error 1 make: *** [all] Error 2 Please, help. Thank you. Andre Mikulec andre_miku...@hotmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] windows compile R from source, where do I put the Tcl directory?
>>Prof Brian Ripley ripley at stats.ox.ac.uk >>Thu Apr 11 13:32:02 CEST 2013 >>Previous message: [Rd] windows compile R from source, where do I put the Tcl >>directory? >>Next message: [Rd] Trying to make DEBUG=T a debug version of R >>Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] >>On 11/04/2013 00:27, Andre Mikulec wrote: >>> Hi, >>> >>> I am trying to compile R from source on Windows. >>> I am following the instructions here >>> >>> 3.1 Building from source >>> 3 Installing R under Windows >>> file:///F:/ProgramFiles/R/R-2.15.3/doc/manual/R-admin.html >>> >>> It only says, >>> >>> " >>> The Tcl/Tk support files are contained in Rtools30.exe and >>> available as .zips from http://www.stats.ox.ac.uk/pub/Rtools. >>> Please make sure you install the right version: there is a 32-bit >>> version and a 64-bit version. >>> " >>> >>> Anyways, >>> I collected the support files from here. >>> http://www.stats.ox.ac.uk/pub/Rtools/R_Tcl_8-5-8.zip >>> >>> The instructions do not say "where to put my Tcl folder." >> >>Rtools30.exe does this for you. But you put it at the top level in the >>sources. >> >>> So I just guessed, based on ( include, doc, and bin are parallel >>> directories ) >>> in F:\ProgramFiles\R\R-2.15.3\Tcl >>> >>> I guessed ( and guessed wrong ) ... >>> M:\YDrive\All_Economics\eclipse_workspace\R-2.15.3\src\Tcl >> >>Why in src? It is a binary distriution. >> >>> When Try to compile with >>> >>> M:\YDrive\All_Economics\eclipse_workspace\R-2.15.3\src\gnuwin32>make all >>> recommended >>> >>> I eventually get ... >>> >>> "tcltk.h:23:17: fatal error: tcl.h: No such file or directory" >>> >>> in the message >>> >>> building package 'tcltk' >>> making init.d from init.c >>> making tcltk.d from tcltk.c >>> making tcltk_win.d from tcltk_win.c >>> gcc -I"../../../../include" -DNDEBUG -I "../../../../Tcl"/include -DWin32 >>> -O3 -Wall -gdwarf-2 -std=gnu99 -c init.c -o init.o >>> In file included from init.c:22:0: >>> tcltk.h:23:17: fatal error: tcl.h: No such file or directory >>> compilation terminated. >>> make[4]: *** [init.o] Error 1 >>> make[3]: *** [mksrc-win2] Error 1 >>> make[2]: *** [all] Error 2 >>> make[1]: *** [R] Error 1 >>> make: *** [all] Error 2 >>> >>> Please, help. >>> >>> Thank you. >>> Andre Mikulec >>> Andre_Mikulec at Hotmail.com >>> __ >>> R-devel at r-project.org mailing list >>> https://stat.ethz.ch/mailman/listinfo/r-devel >>> >> >> >>-- >>Brian D. Ripley, ripley at stats.ox.ac.uk >>Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ >>University of Oxford, Tel: +44 1865 272861 (self) >>1 South Parks Road, +44 1865 272866 (PA) >>Oxford OX1 3TG, UK Fax: +44 1865 272595 "Why in src? It is a binary distriution." Yes, I have the binary distribution ( but it is not found in RTools ) " Rtools30.exe does this for you. But you put it at the top level in the sources. " Maybe I do not know where the 'top level' is located. Please, help. I used "tree /f" and search for "tk" and "tcl" files in my F:\RTools folder This is only what I have found tk -- msstkppg.h libatkctrs.a libsoftkbd.a tcl --- batclass.h certcli.h napenforcementclient.h portcls.h libcertcli.a libeventcls.a libstclient.a ( no tlc.h and no tk.h files are found ) Here is a "tree" of the directory structure ( If the 'tcl and tk' binaries were once there, they are not there now. ) Note, the RTools GUI installer has a leak in the installation. In the middle of the installation it spills out my PATH onto the GUI install form. I can not see any more words or checkboxes or options. I only have the realistic option to press Finish and end the installation there. Anyways, Here is a tree of my F:\RTools folder F:\Rtools>tree F:. ├───bin └───gcc-4.6.3 ├───bin ├───bin32 ├───bin64 ├───i686-w64-mingw32 │ ├───bin │ ├───include │ │ ├───ddk │ │ ├───gdiplus │ │ ├───GL │ │ ├───psdk_inc │ │ ├───sdks │ │ ├───sec_api
[Rd] Trying to make DEBUG=T a debug version of R
>>Duncan Murdoch murdoch.duncan at gmail.com >>Thu Apr 11 14:01:36 CEST 2013 >>Previous message: [Rd] Trying to make DEBUG=T a debug version of R >>Next message: [Rd] Trying to make DEBUG=T a debug version of R >>Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] >>On 13-04-10 8:02 PM, Andre Mikulec wrote: >>> Hi, >>> >>> I am trying to make a debug version of R ( for use with gdb later ) on >>> windows. >>> >>> I am executing the following. >>> >>> src\gnuwin32>make clean >>> src\gnuwin32>make DEBUG=T >>> >>> In the output, I see many >>> >>> -O3 flags >>> >>> I do not see any >>> >>> -g -O0 flags >>> >>> which ( I believe/I think ) that is what I need to debug R in gdb. >>> >>> What is the proper way to 'make' a 'Debug version of R'? >> >>You don't need -O0 to debug in gdb, you just need the -g flag set >>properly, which DEBUG=T will do for you. That's how I generally do it. >> >>Setting -O0 might make debugging easier (because it eliminates >>optimizations). To do that, you'll need to change the CFLAGS setting in >>src/gnuwin32/Makefiles. (You may also be able to do it with a CFLAGS >>environment variable, I haven't tried.) I don't usually do this, since >>it changes the code: if you need gdb, chances are the bug is subtle, >>and its behaviour may change with optimization level. But you may have >>a different preference. >> >>Duncan Murdoch >> >>Previous message: [Rd] Trying to make DEBUG=T a debug version of R >>Next message: [Rd] Trying to make DEBUG=T a debug version of R >>Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] >>More information about the R-devel mailing list I am still having trouble, ( on Windows ) > Setting -O0 might make debugging easier (because it eliminates > optimizations). To do that, you'll need to change the CFLAGS setting in > src/gnuwin32/Makefiles. > > Duncan Murdoch I tried that. Changing the CFLAGS setting works early in the compile process. But later in the compile process when trying to compile the packages 'base' and 'stats' the optimization revert back to '-O3' (You may also be able to do it with a CFLAGS > environment variable, > > Duncan Murdoch I tried setting th environment variable set CFLAGS=-O0 This did not work. I tried both on the commandline followed by typing make all and the "System Properties" dialog. Followed by opening a new command line and typing make all I tried several things In the Windows compiling and linking with the gnu tools, the following hacks seem to work ( early in the compiling process ) but not later. Of the C99FLAGS lines, at their ends, I just added " -ggdb" src\gnuwin32\MkRules.rules C99FLAG=-std=gnu99 -ggdb src\gnuwin32\MkRules.local C99FLAG=-std=gnu99 -ggdb In one place I just changed the optimization level. src\gnuwin32\Makefile CFLAGS=-O0 -Wall -pedantic $(EOPTS) FFLAGS=-O0 $(EOPTS) But again, these only work in the early stages of compiling. Eventually, when I start compiling "base" -ggdb disappers and -O0 optimization goes back to -O3 Does anyone have any ideas? Thank you, Andre Mikulec andre_miku...@hotmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Compile R with a BLAS.dll and LAPACK.dll on windows?
Hi, I want to install my own windows BLAS.dll and LAPACK.dll within a compilation of R. I am following the instructions here. file:///F:/ProgramFiles/R/R-2.15.3/doc/manual/R-admin.html#Shared-BLAS If I had linux or a Mac OS, I understand that this is what I would need to run. configure --with-blas="-L/path/to/BLAS/libs -lblas" --with-lapack="-L/path/to/LAPACK/libs -llapack" I have my own compiled DLLs already ( I compiled them myself). But I have windows. I can't SEEM to run configure? Is there some other way? How could I compile my own BLAS.dll and LAPACK.dll into Windows? Thank you, Andre Mikulec andre_miku...@hotmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] windows compile R from source, where do I put the Tcl directory?
>Message: 2 >Date: Sun, 14 Apr 2013 07:14:28 -0400 >From: Duncan Murdoch >To: Andre Mikulec >Cc: "r-devel@r-project.org" >Subject: Re: [Rd] windows compile R from source, where do I put the >Tcl directory? >Message-ID: <516a8f94.1040...@gmail.com> >Content-Type: text/plain; charset=KOI8-R; format=flowed > >On 13-04-13 10:03 PM, Andre Mikulec wrote: >>>> Prof Brian Ripley ripley at stats.ox.ac.uk >>>> Thu Apr 11 13:32:02 CEST 2013 >>>> Previous message: [Rd] windows compile R from source, where do I put the >>>> Tcl directory? >>>> Next message: [Rd] Trying to make DEBUG=T a debug version of R >>>> Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] >>>> On 11/04/2013 00:27, Andre Mikulec wrote: >>>>> Hi, >>>>> >>>>> I am trying to compile R from source on Windows. >>>>> I am following the instructions here >>>>> >>>>> 3.1 Building from source >>>>> 3 Installing R under Windows >>>>> file:///F:/ProgramFiles/R/R-2.15.3/doc/manual/R-admin.html >>>>> >>>>> It only says, >>>>> >>>>> " >>>>> The Tcl/Tk support files are contained in Rtools30.exe and >>>>> available as .zips from http://www.stats.ox.ac.uk/pub/Rtools. >>>>> Please make sure you install the right version: there is a 32-bit >>>>> version and a 64-bit version. >>>>> " >>>>> >>>>> Anyways, >>>>> I collected the support files from here. >>>>> http://www.stats.ox.ac.uk/pub/Rtools/R_Tcl_8-5-8.zip >>>>> >>>>> The instructions do not say "where to put my Tcl folder." >>>> >>>> Rtools30.exe does this for you. But you put it at the top level in the >>>> sources. >>>> >>>>> So I just guessed, based on ( include, doc, and bin are parallel >>>>> directories ) >>>>> in F:\ProgramFiles\R\R-2.15.3\Tcl >>>>> >>>>> I guessed ( and guessed wrong ) ... >>>>> M:\YDrive\All_Economics\eclipse_workspace\R-2.15.3\src\Tcl >>>> >>>> Why in src? It is a binary distriution. >>>> >>>>> When Try to compile with >>>>> >>>>> M:\YDrive\All_Economics\eclipse_workspace\R-2.15.3\src\gnuwin32>make all >>>>> recommended >>>>> >>>>> I eventually get ... >>>>> >>>>> "tcltk.h:23:17: fatal error: tcl.h: No such file or directory" >>>>> >>>>> in the message >>>>> >>>>> building package 'tcltk' >>>>> making init.d from init.c >>>>> making tcltk.d from tcltk.c >>>>> making tcltk_win.d from tcltk_win.c >>>>> gcc -I"../../../../include" -DNDEBUG -I "../../../../Tcl"/include -DWin32 >>>>> -O3 -Wall -gdwarf-2 -std=gnu99 -c init.c -o init.o >>>>> In file included from init.c:22:0: >>>>> tcltk.h:23:17: fatal error: tcl.h: No such file or directory >>>>> compilation terminated. >>>>> make[4]: *** [init.o] Error 1 >>>>> make[3]: *** [mksrc-win2] Error 1 >>>>> make[2]: *** [all] Error 2 >>>>> make[1]: *** [R] Error 1 >>>>> make: *** [all] Error 2 >>>>> >>>>> Please, help. >>>>> >>>>> Thank you. >>>>> Andre Mikulec >>>>> Andre_Mikulec at Hotmail.com >>>>> __ >>>>> R-devel at r-project.org mailing list >>>>> https://stat.ethz.ch/mailman/listinfo/r-devel >>>>> >>>> >>>> >>>> -- >>>> Brian D. Ripley, ripley at stats.ox.ac.uk >>>> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ >>>> University of Oxford, Tel: +44 1865 272861 (self) >>>> 1 South Parks Road, +44 1865 272866 (PA) >>>> Oxford OX1 3TG, UK Fax: +44 1865 272595 >> >> >> "Why in src? It is a binary distriution." >> >> Yes, I have the binary distribution ( but it is not found in RTools ) >> >> " >> Rtools30.exe does this for you. But you put it at the top level in the >> sources. >> " >> Maybe I do not know where the 'top level' is located. >> >> Please, help. >> >> I used "tree /f" and search for >> "tk" and "tcl" files in my >> >> F:\RTools folder > >The Tcl/Tk files are in Rtools.exe, and are installed to the top level >of the R directory tree, unless you chose (when running Rtools.exe) not >to install them. They are not installed to the Rtools directory tree. > >Duncan Murdoch > I have spent 3 attempts to compile R and end up at the very same spot. "tcltk.h:23:17: fatal error: tcl.h: No such file or directory" RTools.exe does not install a tcl.h file. It is not there. I looked and looked and looked. R-2.15.3 source code does not have a tcl.h file. I looked and looked and looked. R_Tcl_8-5-8.zip does have a tcl.h file. 2. My folder contents are the following. 1. RTools folder, 2. R-2.15.3 source code folder 3. Tcl folder ( from R_Tcl_8-5-8.zip ) Their locations are the following. 1. F:\RTools 2. M:\YDrive\All_Economics\eclipse_workspace\R\R-2.15.3 3. M:\YDrive\All_Economics\eclipse_workspace\Tcl Where do I stick the "Tcl" folder? What is a "top level of the R directory tree?" Where is it? Thank you, Andre Mikulec andre_miku...@hotmail.com [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel