Failure to install devtools on amazon linux 2

743 views
Skip to first unread message

Frank Slicer

unread,
Jan 11, 2021, 4:03:51 PM1/11/21
to devtools
Seems to be a problem when trying to install devtools on Amazon Linux 2.

Any guidances would be appreciated.   Thanks!
==========================================

> install.packages("devtools", dependencies = TRUE)


Warning messages:
1: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘textshaping’ had non-zero exit status
2: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘gert’ had non-zero exit status
3: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘ragg’ had non-zero exit status
4: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘usethis’ had non-zero exit status
5: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘pkgdown’ had non-zero exit status
6: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘devtools’ had non-zero exit status

=======Output Details=========
> install.packages("devtools", dependencies = TRUE)
Installing package into ‘/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)

also installing the dependencies ‘textshaping’, ‘gert’, ‘ragg’, ‘usethis’, ‘pkgdown’

Content type 'application/x-gzip' length 30526 bytes (29 KB)
==================================================
downloaded 29 KB

Content type 'application/x-gzip' length 61324 bytes (59 KB)
==================================================
downloaded 59 KB

Content type 'application/x-gzip' length 414213 bytes (404 KB)
==================================================
downloaded 404 KB

Content type 'application/x-gzip' length 556740 bytes (543 KB)
==================================================
downloaded 543 KB

Content type 'application/x-gzip' length 851091 bytes (831 KB)
==================================================
downloaded 831 KB

Content type 'application/x-gzip' length 373387 bytes (364 KB)
==================================================
downloaded 364 KB

* installing *source* package ‘textshaping’ ...
** package ‘textshaping’ successfully unpacked and MD5 sums checked
** using staged installation
Package harfbuzz was not found in the pkg-config search path.
Perhaps you should add the directory containing `harfbuzz.pc'
to the PKG_CONFIG_PATH environment variable
No package 'harfbuzz' found
Package fribidi was not found in the pkg-config search path.
Perhaps you should add the directory containing `fribidi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fribidi' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lfreetype -lharfbuzz -lfribidi
--------------------------- [ANTICONF] --------------------------------
Configuration failed to find the harfbuzz freetype2 fribidi library. Try installing:
 * deb: libharfbuzz-dev libfribidi-dev (Debian, Ubuntu, etc)
 * rpm: harfbuzz-devel fribidi-devel (Fedora, EPEL)
 * csw: libharfbuzz_dev libfribidi_dev (Solaris)
 * brew: harfbuzz fribidi (OSX)
If harfbuzz freetype2 fribidi is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a harfbuzz freetype2 fribidi.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
-------------------------- [ERROR MESSAGE] ---------------------------
<stdin>:1:10: fatal error: hb-ft.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘textshaping’
* removing ‘/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.6/textshaping’
* installing *source* package ‘gert’ ...
** package ‘gert’ successfully unpacked and MD5 sums checked
** using staged installation
Using PKG_CFLAGS=
Using PKG_LIBS=-lgit2
----------------------------- ANTICONF -------------------------------
Configuration failed to find libgit2 library. Try installing:
 * brew: libgit2 (MacOS)
 * deb: libgit2-dev (Debian, Ubuntu, etc)
 * rpm: libgit2-devel (Fedora, CentOS, RHEL)
If libgit2 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libgit2.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
-------------------------- [ERROR MESSAGE] ---------------------------
<stdin>:1:10: fatal error: git2.h: No such file or directory
compilation terminated.
----------------------------------------------------------------------
ERROR: configuration failed for package ‘gert’
* removing ‘/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.6/gert’
ERROR: dependency ‘textshaping’ is not available for package ‘ragg’
* removing ‘/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.6/ragg’
ERROR: dependency ‘gert’ is not available for package ‘usethis’
* removing ‘/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.6/usethis’
ERROR: dependency ‘ragg’ is not available for package ‘pkgdown’
* removing ‘/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.6/pkgdown’
ERROR: dependency ‘usethis’ is not available for package ‘devtools’
* removing ‘/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.6/devtools’

The downloaded source packages are in
‘/tmp/RtmpiGh1EB/downloaded_packages’
Warning messages:
1: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘textshaping’ had non-zero exit status
2: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘gert’ had non-zero exit status
3: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘ragg’ had non-zero exit status
4: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘usethis’ had non-zero exit status
5: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘pkgdown’ had non-zero exit status
6: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘devtools’ had non-zero exit status
>
Reply all
Reply to author
Forward
0 new messages