Robin,

Thanks much for the reply.  It turns out, for reasons which are still  
unknown to me, that on this machine, doing the following:

% g++ bessel.cpp   -o bessel -lgsl -lgslcblas

will tell me it can't find -lgsl, in spite of its path being on my  
LD_LIBRARY_PATH.  So, being explicit solves the problem and build the  
executable:

% g++ -v bessel.cpp   -o bessel -L<full-path> -lgsl -lgslcblas

This then gets back to my newbie question -  can I/how can I do a  
similar thing, i.e. manually specify a lib path for R?

-Randy

On Oct 3, 2007, at 9:42 AM, Robin Hankin wrote:

> Hello Randy
>
>
> I get emails like this quite a lot.
>
> The most likely problem is in the installation of
> the gsl library.  To verify that it is in fact installed,
> try to compile and run the little Bessel function
> example given in gsl-ref, section 2.1.
>
> Get this working first.  If it works, this means
> that everything is where it should be, and the
> configuration script of the R package
> should detect this fact.
>
>
> While I'm writing,  version 1-10 of
> GSL came out the other day,  and
> the current configure script fails with this version.
>
> I'll upload a fixed version of the gsl
> library to CRAN when I get a minute (patch
> from  Matt Clegg gratefully acknowledged).
>
>
> HTH
>
> rksh
>
>
>
> On 3 Oct 2007, at 14:24, Randy Heiland wrote:
>
>> 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 compiler default output... a.out
>> checking whether the C compiler works... yes
>> checking whether 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, cisco 7500, version 1 (SYSV), for GNU/
>> Linux 2.4.21, dynamically linked (uses shared libs), not stripped
>>
>> tia, Randy
>>      [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting- 
>> guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> --
> Robin Hankin
> Uncertainty Analyst
> National Oceanography Centre, Southampton
> European Way, Southampton SO14 3ZH, UK
>  tel  023-8059-7743
>


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to