astaines Tux's lil' helper
Joined: 18 Apr 2004 Posts: 101 Location: Ireland
|
Posted: Tue Feb 02, 2016 10:14 pm Post subject: ec.h not found error in dev-lang/R [SOLVED] |
|
|
Hi,
I recently tried to add the rvest package to my R installation. This in turn requires the R openssl package to be added. This failed with the following error :-
I took me a while to find the source of the error, so I'll put what I found here.
ec.h is the piece of openssl that does elliptic curve cryptography.
In Gentoo this piece is not complied in the default dev-libs/openssl-1.0.2f configuration, for patent reasons. Specifically the USE flag
is set, and this switches off the elliptic curve functions, so there is no ec.h for the R package opensll (See https://cran.r-project.org/web/packages/openssl/index.html ) to find.
To fix this, I added the line
Code: |
#
dev-libs/openssl -bindist
|
to /etc/portage/package.use/manual.
Re-emerging threw up two further error messages, as both net-misc/openssh and dev-qt/qtnetwork depended on having a version of openssl with the bindist use flag set. Adding the lines
Code: |
#
net-misc/openssh -bindist
dev-qt/qtnetwork -bindist
#
|
to /etc/portage/package.use/manual fixed those promptly. R happily installed the necessary packages.
Regards,
Anthony Staines |
|