rstudio / httpuv

HTTP and WebSocket server package for R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

automake: Perl lib version (5.28.2) doesn't match executable

xiucz opened this issue · comments

commented

Hi,

When I want to install the package, it shows the following error:

R version 4.1

CC="gcc -std=gnu99" CFLAGS="-g -O2  -fpic -fvisibility=hidden" AR="ar" RANLIB="ranlib" LDFLAGS="-L/usr/local/lib64" ./configure "--quiet"
automake found. Running autogen.sh.
/usr/bin/automake: Perl lib version (5.28.2) doesn't match executable '/usr/bin/perl' version (5.16.3) at ~/PERL/perl-5.28.2/lib/Config.pm line 62.
Compilation failed in require at ~/PERL/perl-5.28.2/lib/threads.pm line 13.
Compilation failed in require at /usr/bin/automake line 138.
BEGIN failed--compilation aborted at /usr/bin/automake line 143.
autogen.sh: line 33: test: : integer expression expected
autogen.sh: line 34: test: : integer expression expected
+ libtoolize --copy

My perl version, I know it is related to the perl version , I use my own perl , not the systerm perl(/usr/bin/perl).

$ which perl 
~/PERL/perl-5.28.2/bin/perl

But I dont know how to modify the code, can you give me some advice?

Thank you,
xiucz

commented

Solved by


$ PERL5LIB=''
#then start R and install
$ R