Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Dependency in description. #126

Open
ralmond opened this issue Feb 20, 2023 · 3 comments
Open

Missing Dependency in description. #126

ralmond opened this issue Feb 20, 2023 · 3 comments

Comments

@ralmond
Copy link

ralmond commented Feb 20, 2023

I was trying to install ragg under R 4.2.1 and Pop_OS 22.04 (Pop_OS is downstream from Ubuntu and Debian).

I'm getting the following error:

> install.packages(c("pkgdown","ragg"),repos="https://cloud.r-project.org")
Installing packages into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/pkgdown_2.0.7.tar.gz'
Content type 'application/x-gzip' length 871465 bytes (851 KB)
==================================================
downloaded 851 KB

trying URL 'https://cloud.r-project.org/src/contrib/ragg_1.2.5.tar.gz'
Content type 'application/x-gzip' length 427859 bytes (417 KB)
==================================================
downloaded 417 KB

* installing *source* package ‘ragg’ ...
** package ‘ragg’ successfully unpacked and MD5 sums checked
** using staged installation
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lfreetype -lpng16 -ltiff -lz -ljpeg -lbz2
-----------------------------[ ANTICONF ]-------------------------------
Configuration failed to find one of freetype2 libpng libtiff-4 libjpeg. Try installing:
 * deb: libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev (Debian, Ubuntu, etc)
 * rpm: freetype-devel libpng-devel libtiff-devel libjpeg-turbo-devel (Fedora, CentOS, RHEL)
 * csw: libfreetype_dev libpng16_dev libtiff_dev libjpeg_dev (Solaris)
If freetype2 libpng libtiff-4 libjpeg is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a freetype2 libpng libtiff-4 libjpeg.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: ft2build.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘ragg’
* removing ‘/usr/local/lib/R/site-library/ragg’

The information in the suggestions after ANTI-CONF is not quite correct. libfreetype6-dev should be libfreetype-dev.

When I install that library, it compiles without error.

@thomasp85
Copy link
Member

@jeroen do you know anything of the difference between the libfreetype and libfreetype6 packages?

Pretty sure it generally work with libfreetype6-dev so don't know why it doesn't for you

@ralmond
Copy link
Author

ralmond commented Mar 7, 2023

I'm getting:

(base) [ralmond@cherry: ~]$ apt-cache show libfreetype6-dev
Package: libfreetype6-dev
Architecture: amd64
Version: 2.11.1+dfsg-1ubuntu0.1
Multi-Arch: same
Priority: optional
Section: libdevel
Source: freetype
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Hugh McMaster <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 60
Depends: libfreetype-dev (= 2.11.1+dfsg-1ubuntu0.1)
Filename: pool/main/f/freetype/libfreetype6-dev_2.11.1+dfsg-1ubuntu0.1_amd64.deb
Size: 8298
MD5sum: 3909e9a7d76b8f92a3a802e6eb09c087
SHA1: 63a9b7d66be1c452bfa3bc6920b4c9421a02d6af
SHA256: 3f9e9e347bcebff4cab42d7bee6c7b3cfd7437101966ec2b19ef515cadc6bd3d
SHA512: 76652aa3dc3a9ef87c671ab93237c0ee49ae029c5c82ae4b529b93c653ddd7455aaf1199e42ea2c3c96ab4115e28288379a93b391fa3606e7c495477b948584d
Homepage: https://www.freetype.org
Description-en: FreeType 2 font engine, development files (transitional package)
 The FreeType project is a team of volunteers who develop free,
 portable and high-quality software solutions for digital typography.
 They specifically target embedded systems and focus on providing small,
 efficient and ubiquitous products.
 .
 This package contains all of the supplementary files you need to develop your
 own programs using the FreeType 2 library.
 .
 This is a transitional package. It can safely be removed.
Description-md5: 28f874a479b758590006ecadff6e409a

Package: libfreetype6-dev
Architecture: amd64
Version: 2.11.1+dfsg-1build1
Multi-Arch: same
Priority: optional
Section: libdevel
Source: freetype
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Hugh McMaster <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 60
Depends: libfreetype-dev (= 2.11.1+dfsg-1build1)
Filename: pool/main/f/freetype/libfreetype6-dev_2.11.1+dfsg-1build1_amd64.deb
Size: 8302
MD5sum: d3ebe0f8f1ceffbfecba30ed1059051e
SHA1: 91b23cda16a69036bf6272ad4da24fa9c0d8cc76
SHA256: 2066b14e1a62151662fc6cb4c560748f1b37b502876daf06e5a5f81164a655be
SHA512: 1f53dba9ab3a0783c93ae15cb1dd917f3ca1358befdccb0f6d9b3940c7b993e61887c86e298a91a697eb67a5321f33940c754c06d58f6bc81a0bf5984677a5d8
Homepage: https://www.freetype.org
Description-en: FreeType 2 font engine, development files (transitional package)
 The FreeType project is a team of volunteers who develop free,
 portable and high-quality software solutions for digital typography.
 They specifically target embedded systems and focus on providing small,
 efficient and ubiquitous products.
 .
 This package contains all of the supplementary files you need to develop your
 own programs using the FreeType 2 library.
 .
 This is a transitional package. It can safely be removed.
Description-md5: 28f874a479b758590006ecadff6e409a

(base) [ralmond@cherry: ~]$ apt-cache show libfreetype-dev
Package: libfreetype-dev
Architecture: amd64
Version: 2.11.1+dfsg-1ubuntu0.1
Multi-Arch: same
Priority: optional
Section: libdevel
Source: freetype
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Hugh McMaster <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2017
Provides: libfreetype6-dev (= 2.11.1+dfsg-1ubuntu0.1)
Depends: libfreetype6 (= 2.11.1+dfsg-1ubuntu0.1), libbrotli-dev, libc6-dev | libc-dev, libpng-dev, zlib1g-dev | libz-dev
Suggests: freetype2-doc (= 2.11.1+dfsg-1ubuntu0.1)
Breaks: libfreetype6-dev (<< 2.10.1)
Replaces: libfreetype6-dev (<< 2.10.1)
Filename: pool/main/f/freetype/libfreetype-dev_2.11.1+dfsg-1ubuntu0.1_amd64.deb
Size: 555422
MD5sum: d60bbcfb4168e973076e70b4d45a5d69
SHA1: fec51956f6bebd751af1ba5ed390126143f53dc7
SHA256: 42e486f535363a4da6ec722064af3245b565216fad5b1c5257f648086a77339d
SHA512: d6a4016587a14076d7f8d95bbfbacd882fc8aa209a01eaebdbeebb93be3872f54f789fbc199501c684156828d55d53f75141d42e174cd5680c55bd90623a8d12
Homepage: https://www.freetype.org
Description-en: FreeType 2 font engine, development files
 The FreeType project is a team of volunteers who develop free,
 portable and high-quality software solutions for digital typography.
 They specifically target embedded systems and focus on providing small,
 efficient and ubiquitous products.
 .
 This package contains all of the supplementary files you need to develop your
 own programs using the FreeType 2 library.
Description-md5: 8875ea8826893bae306fe23dfd81f96f

Package: libfreetype-dev
Architecture: amd64
Version: 2.11.1+dfsg-1build1
Multi-Arch: same
Priority: optional
Section: libdevel
Source: freetype
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Hugh McMaster <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2017
Provides: libfreetype6-dev (= 2.11.1+dfsg-1build1)
Depends: libfreetype6 (= 2.11.1+dfsg-1build1), libbrotli-dev, libc6-dev | libc-dev, libpng-dev, zlib1g-dev | libz-dev
Suggests: freetype2-doc (= 2.11.1+dfsg-1build1)
Breaks: libfreetype6-dev (<< 2.10.1)
Replaces: libfreetype6-dev (<< 2.10.1)
Filename: pool/main/f/freetype/libfreetype-dev_2.11.1+dfsg-1build1_amd64.deb
Size: 555320
MD5sum: 822f4331b8979d30acf138818289f7a7
SHA1: 98566dceebc67ef877fbab4e76fde17bd486dc0e
SHA256: c43edf5c51902fe495a826fb89bd452ef23fe8afe49aec4a3e30ad249da4b8cb
SHA512: fb1da2c6e7b0090a00b92af6eae9cc851aa6c30eb706a3a3a692e44211ba3e0df3035e48887b2fed206d0267e6ebd6a3cb43c626804dee73ad3cc997322fd53b
Homepage: https://www.freetype.org
Description-en: FreeType 2 font engine, development files
 The FreeType project is a team of volunteers who develop free,
 portable and high-quality software solutions for digital typography.
 They specifically target embedded systems and focus on providing small,
 efficient and ubiquitous products.
 .
 This package contains all of the supplementary files you need to develop your
 own programs using the FreeType 2 library.
Description-md5: 8875ea8826893bae306fe23dfd81f96f

I don't know libfreetype6-dev wasn't working. It might be that I had the amd64 version installed and I also needed the i386 version.

I suspect that the version without the number is an alias for the current version (which is currently 6)

@hgreenia
Copy link

hgreenia commented Apr 19, 2024

Hey, I received some of those errors. chatgpt assisted me, and it said i need to install libtiff in my PKG_CONFIG_PATH.
it suggests brew install libtiff. It looks like there is a file in brew called "pkg-config", and I assumed this is analogous to PKG_CONFIG_PATH.
first install libtiff in terminal: brew install libtiff
So once you install libtiff, you need to copy it: cp -r /opt/homebrew/opt/libtiff /opt/homebrew/opt/pkg-config
I had to do this as well for freetype. Once i did that, those error messages cleared up. However, i think i am having an intel vs apple silicon based processor issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants