Hello, 

I am having trouble installing the package from CRAN. As the package compiles I 
get: 

* installing *source* package ‘RDieHarder’ ...
** package ‘RDieHarder’ successfully unpacked and MD5 sums checked
checking for gcc... gcc
checking for C compiler default output file name... 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 ISO C89... none needed
checking for gsl-config... /usr/bin/gsl-config
configure: checking for DieHarder header files
checking for "/usr/include/dieharder/libdieharder.h"... yes
configure: checking for DieHarder library file
checking for "/libdieharder.so"... no
configure: error: Library libdieharder.so not in .
ERROR: configuration failed for package ‘RDieHarder’
* removing ‘/usr/lib64/R/library/RDieHarder’

The downloaded source packages are in
        ‘/tmp/RtmpE4HX9e/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("RDieHarder") :
  installation of package ‘RDieHarder’ had non-zero exit status
> 

However, I do have DieHarder installed, and the script finds the .h file. It 
does not find 
the libdieharder.so because it's looking in the wrong place ("./"). I have 
tried to pass the 
the options through configure.args but that did not work:

> conf.arg
--with-dieharder-include  --with-dieharder-libdir 
"/usr/include/dieharder"             "/usr/lib64" 
> 

then, 

> install.packages("RDieHarder", configure.args=conf.arg)
trying URL 
'http://cran.revolutionanalytics.com/src/contrib/RDieHarder_0.1.2.tar.gz'
Content type 'application/x-gzip' length 385288 bytes (376 Kb)
opened URL
==================================================
downloaded 376 Kb

* installing *source* package ‘RDieHarder’ ...
** package ‘RDieHarder’ successfully unpacked and MD5 sums checked
checking for gcc... gcc
checking for C compiler default output file name... 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 ISO C89... none needed
checking for gsl-config... /usr/bin/gsl-config
configure: checking for DieHarder header files
checking for "/usr/include/dieharder/libdieharder.h"... yes
configure: checking for DieHarder library file
checking for "/libdieharder.so"... no
configure: error: Library libdieharder.so not in .
ERROR: configuration failed for package ‘RDieHarder’
* removing ‘/usr/lib64/R/library/RDieHarder’



if I try to configure the package from cli, not through R I can configure it 
fine:

[mike@localhost RDieHarder]$ ./configure --with-dieharder-
include=/usr/include/dieharder --with-dieharder-libdir=/usr/lib64
checking for gcc... gcc
checking for C compiler default output file name... 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 ISO C89... none needed
checking for gsl-config... /usr/bin/gsl-config
checking for "/usr/include/dieharder/libdieharder.h"... yes
checking for "/usr/lib64/libdieharder.so"... yes
configure: creating ./config.status
config.status: creating src/Makevars
[mike@localhost RDieHarder]$ 

but then, how can I install the package from there, since it's not a zip file 
anymore?

Thank you for your time, 
        [[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