unable to download "pgirmess" packages

Hello,
I tried but can't solve my problem by myself as I systematically fail to download the pgirmess packages (which I really need).

It starts well :

install.packages("pgirmess")
Installing package into ‘/home/kazewind/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘sf’, ‘rgdal’, ‘rgeos’, ‘spdep'

but then :

checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘sf’

Same goes for rgeos
and finally :

The downloaded source packages are in
‘/tmp/Rtmpsd52kL/downloaded_packages’
Warning messages:
1: In install.packages("pgirmess") :
installation of package ‘sf’ had non-zero exit status
2: In install.packages("pgirmess") :
installation of package ‘rgdal’ had non-zero exit status
3: In install.packages("pgirmess") :
installation of package ‘rgeos’ had non-zero exit status
4: In install.packages("pgirmess") :
installation of package ‘spdep’ had non-zero exit status
5: In install.packages("pgirmess") :
installation of package ‘pgirmess’ had non-zero exit status

Seriously it would be such a great help if I can solve this. Thank you for all the help~

(I have the same issue for LMERConvenienceFunctions package but with :

checking for X... no
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package ‘rgl’

I guess it is the same kind of trick needed)

Maybe skip compilation from source and get the library binary?
install.packages("pgirmess", type="binary")

Hey,
it sends :

install.packages("pgirmess", type = "binary")
Error in install.packages : type 'binary' is not supported on this platform

sad... but nice try !

What is your platform?

You are missing a system dependency, the gdal library, how to install it is going to depende on your operating system, on the sf github repo there are installation instructions for several operating systems

1 Like

Hi,
I am on Bionic Beaver LTS, Linux, and thank you veryyyy much ! It worked with the github.com tips !!
Have a nice day~

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

Alright !
Done
For potential similar problems, I entered in a Terminal :

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev

(For Linux, Ubuntu LTS version) and then I installed the packages on R, which now worked.

I will do another post for the LMERConvenienceFunctions problem then. It's gonna be clearer.

Many Thanks

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.