Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package compilation issues #28

Closed
karthik2527 opened this issue Jun 3, 2021 · 1 comment
Closed

Package compilation issues #28

karthik2527 opened this issue Jun 3, 2021 · 1 comment

Comments

@karthik2527
Copy link

I am trying to install ade4_1.7-10.tar.gz and seeing below error,

 R CMD INSTALL ade4_1.7-10.tar.gz
* installing to library ‘/opt/R/3.4.3/lib/R/library’
* installing *source* package ‘ade4’ ...
** package ‘ade4’ successfully unpacked and MD5 sums checked
** libs
gcc -I/opt/R/3.4.3/lib/R/include -DNDEBUG   -I/usr/local/include   -fpic  -g -O2  -c adesub.c -o adesub.o
In file included from /usr/include/bits/posix1_lim.h:161,
                 from /usr/include/limits.h:183,
                 from /usr/lib/gcc/x86_64-redhat-linux/8/include/limits.h:194,
                 from /usr/lib/gcc/x86_64-redhat-linux/8/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/8/include/limits.h:34,
                 from /opt/R/3.4.3/lib/R/include/R.h:57,
                 from adesub.h:5,
                 from adesub.c:5:
/usr/include/bits/local_lim.h:87:1: error: unknown type name ‘define’
 define TTY_NAME_MAX  256
 ^~~~~~
/usr/include/bits/local_lim.h:87:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before numeric constant
 define TTY_NAME_MAX  256
                      ^~~
make: *** [/opt/R/3.4.3/lib/R/etc/Makeconf:159: adesub.o] Error 1
ERROR: compilation failed for package ‘ade4’
* removing ‘/opt/R/3.4.3/lib/R/library/ade4’

Could someone please advise on this, I know its a old version of the package but that is our requirement for now and also I did try to install the newer version but it resulted in the same error.

Steps I have tried to resolve the issue

dnf install blas-devel
dnf install lapack-devel
dnf install gcc-gfortran
dnf install lapack-devel
R CMD INSTALL ade4_1.7-10.tar.gz

This is a RHEL 8 environment and gcc version it has is 8.3.1 20191121 (Red Hat 8.3.1-5)

@thioulouse
Copy link
Collaborator

Looks like there is a problem in your dev setup.
Please check R setup and try the preferred install procedure given here: https://github.com/sdray/ade4

@sdray sdray closed this as completed Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants