similar to: R CMD -lgsl -lgslcblas *.c returns a fatal error: gsl/gsl_rng.h no such file or directory exists

Displaying 20 results from an estimated 700 matches similar to: "R CMD -lgsl -lgslcblas *.c returns a fatal error: gsl/gsl_rng.h no such file or directory exists"

2012 Jun 09
0
-lgsl -lgslcblas fatal error no such file or directory
Hello, Novice programmer. I'm writing C source code and compiling it in as *.dll in the terminal by R CMD SHLIB foo.c. It works, I'm on a 64 bits windows system. I have the lastest R 2.15.0 and Rtools using the gcc 4.6.3 compiler. However, that was a hello world run, and I installed GSL for the 64 bit system for fast MCMC. The Rcpp package was easy to use, but I opted for a C with GSL
2009 Dec 22
0
Rcpp 0.7.0: R/C++ integration now even easier
Rcpp version 0.7.0 went onto CRAN this weekend. The key new features are o inline support, taken from Oleg Sklyar's neat inline package and adapted/extented to support Rcpp as well as external libraries (see below for an example); this even works on Windows (provided you have Rtools installed and configured); o addition of a new simple type RcppSexp for importing or
2009 Dec 22
0
Rcpp 0.7.0: R/C++ integration now even easier
Rcpp version 0.7.0 went onto CRAN this weekend. The key new features are o inline support, taken from Oleg Sklyar's neat inline package and adapted/extented to support Rcpp as well as external libraries (see below for an example); this even works on Windows (provided you have Rtools installed and configured); o addition of a new simple type RcppSexp for importing or
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
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
2005 Dec 25
4
Portability and Memory Issues for R-package
I have an upcoming JASA paper with an iid sampling algorithm for Bayesian Generalized Linear models (e.g., Logit, Poisson Regression, and Conditional Logit models with multivariate normal priors). At this point, I have implemented the algorithms in C and hope to make the functions and corresponding source code available through an R package. I have successfully created the code necessary to
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
2002 Apr 16
1
Problem with dyn.load()
I tried to dynamically load a c++ function. Everything seems to be OK when dyn.load() is executed but then I get this error Error in .C("integral", sumInMean, sumInVar, boundError, numberSampleClasses, : C/Fortran function name not in load table The code of the function is something like this: #include <cmath> extern "C" { #include
2012 Jul 24
1
Trouble with Installing R Package gsl
Dear R users: I have a problem when installing the R package *gsl*. The procedure is as follows: (1) Since it needs a GSL vesion >=1.12, and the GSL library on the serve I use is too old, I download GSL 1.15 and install it in my own account, such as $HOME/local/gsl. Because I do not have root access, so it cannot be installed in standard folder. (2) Then I download the source code of R
2009 Jan 06
1
Installation of R package gsl and its corresponding GSL library
Hi I want to install the R package gsl, which is a wrapper to the library GSL. Installation fails as it seems that I did not install the right GSL library: * Installing *source* package 'gsl' ... checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of
2006 Dec 24
2
FW: Passing lists from R to C, extracting elements, and sending lists back again
Thank you to everyone who responded to my previous post regarding the integration into R of C programs that use external libraries. I have another issue that I simply have not been able to figure out using documentation, list archives, and so forth. I have data that is stored in R lists. I would like to pass the list to C code using the .Call function, perform mathematical operations on the
2007 Oct 03
1
error installing gsl pkg
Newbie here (to R) and running Linux... > install.packages("gsl","~/R") ... trying URL 'http://cran.wustl.edu/src/contrib/gsl_1.8-4.tar.gz' Content type 'application/x-tar' length 57051 bytes opened URL ================================================== downloaded 55Kb * Installing *source* package 'gsl' ... checking for gcc... gcc checking for C
2006 Jun 23
3
problem installing gsl package under Ubuntu Breezy Badger
I am trying to install the gls package (a wrapper for GNU scientific library special functions) package under Ubuntu 5.10. I have gls-bin (the debian GNU Scientific Library binary package). When I try to install the R package, I receive the following. > install.packages("gsl",dependencies=T) Warning in install.packages("gsl", dependencies = T) : argument
2007 Nov 22
1
package gsl assumes incorrect gcc version during install (PR#10451)
Full_Name: Levi Waldron Version: 2.5.1 OS: Ubuntu Gutsy Submission from: (NULL) (206.248.157.88) I installed libgsl0-dev then tried to install the gsl cran package, unsuccessfully (see output below). As a workaround I created a symbolic link to /usr/bin/gcc-4.2, ie: sudo ln -s /usr/bin/gcc-4.1 /usr/bin/gcc-4.2 The correct behavior of the gsl package should be to use the executable
2005 Dec 22
1
(no subject)
Hi, I am new in writing R extension. I read the "Writing R Extensions", and search 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
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...
2007 Nov 23
0
package gsl assumes incorrect gcc version during install (PR#10456)
On 22 November 2007 at 20:00, leviwaldron at gmail.com wrote: | Full_Name: Levi Waldron | Version: 2.5.1 | OS: Ubuntu Gutsy | Submission from: (NULL) (206.248.157.88) | | | I installed libgsl0-dev then tried to install the gsl cran package, | unsuccessfully (see output below). As a workaround I created a symbolic link to | /usr/bin/gcc-4.2, ie: | | sudo ln -s /usr/bin/gcc-4.1 /usr/bin/gcc-4.2
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
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
2012 Jul 25
0
gsl lib version detected wrong during install
Hello everyone, I've tried to install the R gsl package but without success because R claims there needs to be a gsl library version >= 1.12 installed on the system. Actually gsl library version 1.12 is installed locally in my home directory and I set PATH and LD_LIBRARY_PATH in .bash_profile to point to corresponding bin and lib directory. gsl-config is accessible from everywhere in the