search for: lgsl

Displaying 20 results from an estimated 25 matches for "lgsl".

Did you mean: lgpl
2012 Jun 09
0
-lgsl -lgslcblas fatal error no such file or directory
...C simulation I'm attempting would have been astronomically time consuming with the JAGS Sampler. A couple webpages suggested the C/GSL might be optimal. My issue is that even though the R CMD SHLIB *c built the *dll for simple examples, when I installed GSL for the (64 bit system), the R CMD -lgsl -lgslcblas *c returns a fatal error: gsl/gsl_rng.h no such file or directory exists. My paths are: Does the order matter? I think Rtools needed to go first (in their order) in the path list. PATH = c:\R\Rtools\bin;c:\R\Rtools\gcc-4.6.3\bin;C:/R/R-2.15.0/bin/x64;C:\Program Files (x86)\MiKTeX 2.8\m...
2012 Jun 16
0
R CMD -lgsl -lgslcblas *.c returns a fatal error: gsl/gsl_rng.h no such file or directory exists
...months in my previous attempts with the JAGS sampler. A couple webpages suggested the C/GSL might be optimal. My issue is that even though the R CMD SHLIB *c. built the *.dll for the simple example, when I installed GSL for the (64-bit system), the apparently appropriate terminal command, R CMD -lgsl -lgslcblas *c, returns a fatal error: gsl/gsl_rng.h no such file or directory exists. I understand the issue may be with the way my windows paths are set up. My paths are: PATH = c:\R\Rtools\bin;c:\R\Rtools\gcc-4.6.3\bin;C:/R/R-2.15.0/bin/x64;C:\Program Files (x86)\MiKTeX 2.8\miktex\bin;C:\Progra...
2008 Nov 20
3
Turning off compiler optimization
Hi. I am writing some code in C that I would like to link into R. My Makevars file is: PKG_CPPFLAGS=-I/usr/local/include PKG_LIBS=-L/usr/local/lib -lgsl PKG_CFLAGS = -Wall -O0 -g -p -pg The source file is core.c,. and I am compiling using R CMD SHLIB core.c The output is gcc -arch x86_64 -O3 -g -p -std=gnu99 -I/Library/Frameworks/ R.framework/Resources/include -I/Library/Frameworks/R.framework/ Resources/include/x86_64 -I/usr/local/include -...
2004 Sep 09
3
Dyn.load of sharing object with GSL library
Following the recommendation of Prof. Ripley, I have created the Makevars file with the line: PKG_LIBS="-L/usr/lib/libm -lm -L/usr/local/lib/libgsl -lgsl -L/usr/local/lib /libgslcblas -lgslcblas" in the working directory. Now I have the code file Example3.c which computes the Bessel function value (the example is taken from the GSL reference book). I am running: R CMD SHLIB Example3.c and all looks good. The dyn.load("Example3.so") fa...
2013 Jun 09
1
Dyn.load of sharing object with GSL library
Dear R-list, I want to use shared library of gsl in R(2.15.1) on unix .I have a makefile such as CC = gcc CFLAGS = -fPIC -O2 PKG_LIBS -lgsl -lgslcblas -lm -lpthread ? OBJS_SPB = calc_spb.o k.o dk.o ddk.o ? ? calc_spb.so : $(OBJS_SPB) ? ????? $(CC) -shared -o calc_spb.so $(LIBS) $(OBJS_SPB) ? clean : ????? rm -f ../*.o *.o ? clean.so: ????? rm -f *.so ? I use R CMD SHLIB calc_spb.c in terminal window of unix and in my directory was buil...
2005 Dec 25
4
Portability and Memory Issues for R-package
...ince I make extensive use of the gsl library in my C code, I have the gsl library installed (within the MinGw directory so it is included in the path) on my local machine. Within the package, I am then including a Makevars file with the following code in order to link to the gsl library: PKG_LIBS=-lgsl -lgslcblas I also know that there is an R package (gsl) making use of some gsl functions which contains a Makevars.win file with the following code: PKG_LIBS=-LF:/MinGW/usr/local/lib -lgsl -lgslcblas # CPPFLAGS=-I$(R_HOME)/include -IF:/MinGW/usr/local/include PKG_CPPFLAGS=-IF:/MinGW/usr/local/inc...
2006 Jun 23
3
problem installing gsl package under Ubuntu Breezy Badger
...hether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for gsl_sf_airy_Ai_e in -lgsl... no configure: error: Cannot find Gnu Scientific Library. ERROR: configuration failed for package 'gsl' The downloaded packages are in /tmp/RtmpbxQ4fl/downloaded_packages Warning message: installation of package 'gsl' had non-zero exit status in: install.packages("gsl...
2009 Jan 06
1
Installation of R package gsl and its corresponding GSL library
...hether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for gsl_sf_airy_Ai_e in -lgsl... no configure: error: Cannot find Gnu Scientific Library. However, I installed both gsl-bin and libgsl0ldbl with apt-get. Do you see which library I should install? Could the package gsl be added to the usefull collection of R packages accessible from the debian repos? by the way, I'm...
2007 Oct 03
1
error installing gsl pkg
...hether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for gsl_sf_airy_Ai_e in -lgsl... no configure: error: Cannot find Gnu Scientific Library. ERROR: configuration failed for package 'gsl' and I have gsl: LD_LIBRARY_PATH=/N/soft/linux-sles9-ppc64/gsl-1.8-xlc/lib and, fwiw: /N/soft/linux-sles9-ppc64/R-2.5.0-ibm-64/lib/R/bin/exec> file R R: ELF 64-bit MSB executable,...
2002 Apr 16
1
Problem with dyn.load()
...on modify its arguments ( the arguments are pointers ) I put my function with the C header directives in extern{}. gsl is a library written in C, so I put the gsl's header directives also inside extern{}. I placed in my compiling directory a Makevars file with this content: PKG_LIBS = -lm -lgsl -lgslcblas and my R code looks like: dyn.load('/usr/local/lib/libgslcblas.so',F,) dyn.load('/usr/local/lib/libgsl.so',F,) dyn.load('/home/f/p/integral.so') Any hint? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Rea...
2005 Dec 22
1
(no subject)
...earch online but just cannot find the answer. I am trying to add c-code, which depend on GSL C library, into my R package. I am using Max OS-X 10.4.3, powerpc-apple-darwin8-gcc-4.0.1 I begin wtih package.skeleton, and then add my c file into folder src and then add file Makevars: PKG_LIBS=-lgsl -lgslcblas -lm In the zzz.R file, I add the function .First.lib: .First.lib <- function(lib, pkg) { library.dynam("anovaGSL", pkg, lib) } I think these two things are enough. then I just run R CMD check anovaGSL (my package name) followed is the error message: Error: .First.li...
2017 Sep 13
0
(no subject)
On 13/09/2017 9:10 AM, David Brayford wrote: > Hi Duncan, > > The output of gsl-config --version > 2.3 > > The output of gsl-config --cflags > -I/lrz/sys/libraries/gsl/2.3/include > > The output of gsl-config --libs > -L/lrz/sys/libraries/gsl/2.3/lib -lgsl -lgslcblas -lm > > gsl_version.h cat output > #define GSL_VERSION "2.3" > #define GSL_MAJOR_VERSION 2 > #define GSL_MINOR_VERSION 3 > > It's puzzling. Sure is. I can't see what would be going wrong. Duncan Murdoch > > David > > On 09/13/201...
2017 Sep 13
0
(no subject)
On 13/09/2017 5:23 AM, Brayford, David wrote: > When I try to install gsl in R I get the error Need GSL version >= 1.12 . However, I have version 2.3 of gsl installed on the system, which is picked up earlier in the configure process (see below). Is it possible for someone to fix this error in the configure script? > > checking for gsl-config...
2006 Dec 24
2
FW: Passing lists from R to C, extracting elements, and sending lists back again
.../include -I/usr/lib64/R/include -I/usr/include -I/usr/local/include -fpic -O2 -g -c sexp1.c -o sexp1.o sexp1.c: In function `invMatList': sexp1.c:37: warning: passing arg 3 of `SET_VECTOR_ELT' from incompatible pointer type gcc -shared -L/usr/local/lib64 -o sexp1.so sexp1.o -L/usr/lib64 -lgsl -lgslcblas -L/usr/lib -L/usr/lib64/R/lib -lR So, not only would it be helpful to understand how to solve this specific problem, but I would greatly appreciate some general guidance on how to best more data from lists or C datatypes and back again (especially arrays). Also, are the functions and...
2007 Nov 22
1
package gsl assumes incorrect gcc version during install (PR#10451)
...ether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for gsl_sf_airy_Ai_e in -lgsl... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h....
2004 Sep 09
1
Adding GSL library path to SHLIB
Dear R-list people, I asked a similar question a few hours before. I will try to be more specific. We like to add the GSL library to the file SHLIB in order to make it possible to run the C code using GSL functions from R. We read that the path to the libgsl.a should be added to the line shlib_libadd=' ' in the file SHLIB but it does not work on our system. Dyn.load fails with error
2009 Dec 22
0
Rcpp 0.7.0: R/C++ integration now even easier
...cfunction(signature(s="numeric", n="numeric"), gslrng, includes="#include <gsl/gsl_rng.h>", Rcpp=TRUE, cppargs="-I/usr/include", libargs="-lgsl -lgslcblas") print(funx(0, 5)) Brief notes on this: 1) The character variable gslrng contains valid C++ code. 2) The call to cfunction converts this C++ code into a function that calls it -- and this function is compiled, linked and loaded automagically simply using h...
2009 Dec 22
0
Rcpp 0.7.0: R/C++ integration now even easier
...cfunction(signature(s="numeric", n="numeric"), gslrng, includes="#include <gsl/gsl_rng.h>", Rcpp=TRUE, cppargs="-I/usr/include", libargs="-lgsl -lgslcblas") print(funx(0, 5)) Brief notes on this: 1) The character variable gslrng contains valid C++ code. 2) The call to cfunction converts this C++ code into a function that calls it -- and this function is compiled, linked and loaded automagically simply using h...
2009 Nov 20
1
how to link C code with gsl from R CMD and dyn.load
Hi, I am writing a function in C that is meant to be called by R. In the C function, I used a gsl function gsl_stats_mean. The code is as simple as below void gsl(double *m, int *dim){ int r, c; r = dim[0]; c = dim[1]; double mean = gsl_stats_mean(&m[0], 1, r); Rprintf("mean = %f\n", mean); } The C code is succesfully compiled and the output is as follows. $ R CMD SHLIB
2007 Nov 23
0
package gsl assumes incorrect gcc version during install (PR#10456)
...cross compiling... no | checking for suffix of executables... | checking for suffix of object files... o | checking whether we are using the GNU C compiler... yes | checking whether gcc accepts -g... yes | checking for gcc option to accept ANSI C... none needed | checking for gsl_sf_airy_Ai_e in -lgsl... yes | checking how to run the C preprocessor... gcc -E | checking for egrep... grep -E | checking for ANSI C header files... yes | checking for sys/types.h... yes | checking for sys/stat.h... yes | checking for stdlib.h... yes | checking for string.h... yes | checking for memory.h... yes | check...