Problems at instation in R 4.1.1 at ubuntu

147 views
Skip to first unread message

Ana Hernández Ledesma

unread,
Sep 28, 2021, 10:13:28 PM9/28/21
to mxmaps

Good night!!
I'm trying to install mxmaps on my rstudio but I keep getting the same error mistake, I'm using the following command:

if (!require(devtools)) {
  install.packages("devtools")
}
devtools::install_github('diegovalle/mxmaps')

and the error I got in screen is:

Configuration failed because libudunits2.so was not found. Try installing:

* deb: libudunits2-dev (Debian, Ubuntu, ...)

* rpm: udunits2-devel (Fedora, EPEL, ...)

* brew: udunits (OSX)

If udunits2 is already installed in a non-standard location, use:

--configure-args='--with-udunits2-lib=/usr/local/lib'

if the library was not found, and/or:

--configure-args='--with-udunits2-include=/usr/include/udunits2'

if the header was not found, replacing paths with appropriate values.

You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.

--------------------------------------------------------------------------------

See `config.log' for more details

ERROR: configuration failed for package ‘units’

* removing ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1/units’

ERROR: dependency ‘units’ is not available for package ‘sf’

* removing ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1/sf’

ERROR: dependencies ‘rgdal’, ‘sf’ are not available for package ‘tigris’

* removing ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1/tigris’

ERROR: dependencies ‘sf’, ‘tigris’, ‘units’ are not available for package ‘tidycensus’

* removing ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1/tidycensus’

ERROR: dependencies ‘tigris’, ‘tidycensus’ are not available for package ‘choroplethr’

* removing ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1/choroplethr’

The downloaded source packages are in

‘/tmp/RtmpKjF14v/downloaded_packages’

✓ checking for file ‘/tmp/RtmpKjF14v/remotese8841ad7791/diegovalle-mxmaps-6d56d09/DESCRIPTION’ ...

─ preparing ‘mxmaps’:

✓ checking DESCRIPTION meta-information ...

─ checking for LF line-endings in source and make files and shell scripts

─ checking for empty or unneeded directories

─ building ‘mxmaps_2020.1.1.tar.gz’

Installing package into ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
ERROR: dependency ‘choroplethr’ is not available for package ‘mxmaps’
* removing ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1/mxmaps’
Warning messages:
1: In i.p(...) : installation of package 'rgdal' had non-zero exit status
2: In i.p(...) : installation of package 'units' had non-zero exit status
3: In i.p(...) : installation of package 'sf' had non-zero exit status
4: In i.p(...) : installation of package 'tigris' had non-zero exit status
5: In i.p(...) : installation of package 'tidycensus' had non-zero exit status
6: In i.p(...) : installation of package 'choroplethr' had non-zero exit status
7: In i.p(...) : installation of package '/tmp/RtmpKjF14v/filee883a83522f/mxmaps_2020.1.1.tar.gz' had non-zero exit status

I thank you in advance for your time and help.

Have a nice night,

Ana Hernández

Reply all
Reply to author
Forward
0 new messages