eddelbuettel / rdieharder

R interface to the Dieharder RNG test suite
9 stars 3 forks source link

Package fails to install on Ubuntu Xenial #2

Closed kgolyaev closed 8 years ago

kgolyaev commented 8 years ago

Here is what I get on my Ubuntu machine:

> install.packages("RDieHarder")
Installing package into ‘/home/deep-admin/RLibrary’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/RDieHarder_0.1.3.tar.gz'
Content type 'application/x-gzip' length 390268 bytes (381 KB)
==================================================
downloaded 381 KB

n*** Successfully loaded .Rprofile ***n
* 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 "/libdieharder.h"... no
configure: error: File libdieharder.h not in .
ERROR: configuration failed for package ‘RDieHarder’
* removing ‘/home/deep-admin/RLibrary/RDieHarder’

I have previously installed dieharder via sudo apt-get install dieharder, and I can run it successfully by calling dieharder.

Any idea what I might be missing?

eddelbuettel commented 8 years ago

Just to cover the obvious, you have both the library and the dev package installed?

edd@max:~$ COLUMNS=120 dpkg -l | grep dieharder | cut -c-70
ii  dieharder                3.31.1-7          amd64             Rando
ii  libdieharder-dev         3.31.1-7          amd64             Rando
ii  libdieharder3            3.31.1-7          amd64             Rando
edd@max:~$ 

That is from my 16.04 box. I haven't upgraded to 16.10 yet.

And running

edd@max:~/git$ install.r RDieHarder

(where install.r is a wrapper from the littler package) works just fine and installs the package.

These things also tend to be re-tested at CRAN. There should be no issue, so I close this.