Hi,
I installed PEER in R using the commands
https://github.com/PMBio/peer/wiki/Installation-instructions
which I encountered this error
$ R CMD INSTALL --no-multiarch R_peer_source_1.3.tgz
$ make: *** [/usr/lib/R/etc/Makeconf:181: array_helper.o] Error
1ERROR: compilation failed for package ‘peer’
* removing ‘/home/sahar/R/x86_64-pc-linux-gnu-library/4.0/peer’
$ R CMD INSTALL R_peer_source_1.3.tgz
$ make: *** [/usr/lib/R/etc/Makeconf:181: array_helper.o] Error
1ERROR: compilation failed for package ‘peer’
* removing ‘/home/sahar/R/x86_64-pc-linux-gnu-library/4.0/peer’
To solve this problem, this solution was suggested, which I used, but again I got this error
sudo update-alternatives --remove-all gcc
update-alternatives: error: no alternatives for gcc
sudo update-alternatives --remove-all g++
update-alternatives: error: no alternatives for g++
sudo apt-get install gcc-5.5 g++-5.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc-5.5
E: Couldn't find any package by glob 'gcc-5.5'
E: Couldn't find any package by regex 'gcc-5.5'
E: Unable to locate package g++-5.5
E: Couldn't find any package by glob 'g++-5.5'
E: Couldn't find any package by regex 'g++-5.5'
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5.5 10
update-alternatives: error: alternative path /usr/bin/gcc-5.5 doesn't exist
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5.5 10
update-alternatives: error: alternative path /usr/bin/g++-5.5 doesn't exist
sudo update-alternatives --config gcc
update-alternatives: error: no alternatives for gcc
sudo update-alternatives --config g++
update-alternatives: error: no alternatives for g++
gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
What solution do you suggest to solve this problem?
Thanks for answer.