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

Ubuntu - installation fails with "No package freetype2 found" #1193

Closed
foo-jin opened this issue Mar 18, 2018 · 5 comments
Closed

Ubuntu - installation fails with "No package freetype2 found" #1193

foo-jin opened this issue Mar 18, 2018 · 5 comments

Comments

@foo-jin
Copy link

foo-jin commented Mar 18, 2018

Ubuntu 16.04, with all the dependencies listed in the README installed. The full error is

--- stderr
configure: error: Package requirements (freetype2) were not met:

No package 'freetype2' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FREETYPE_CFLAGS
and FREETYPE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** [/tmp/cargo-install.qGDQTA1ENDff/release/build/servo-fontconfig-sys-ac2ac06b8cdaf817/out/Makefile] Error 1
thread 'main' panicked at 'assertion failed: Command::new("make").args(&["-R", "-f",
"makefile.cargo"]).status().unwrap().success()', /home/frank/.cargo/git/checkouts/libfontconfig-3d5e920c02c2e53f/5c1845e/build.rs:17:5
note: Run with RUST_BACKTRACE=1 for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: failed to compile alacritty v0.1.0 (https://github.com/jwilm/alacritty#6debc4f3), intermediate artifacts can be found at /tmp/cargo-install.qGDQTA1ENDff

Caused by:
build failed

@chrisduerr
Copy link
Member

Have you tried rebooting after installing the freetype2 dependency? Also make sure the package was actually installed successfully.

@foo-jin
Copy link
Author

foo-jin commented Mar 18, 2018

Yes, all the dependencies installed succesfully (the freetype package listed for ubuntu was libfreetype6-dev instead of freetype2, although that shouldn't matter). Unfortunately I still ran into the same error after restarting.

Edit: the package was called libfreetype6-dev -- typo in comment, not the source of the problem

@chrisduerr
Copy link
Member

It should be libfreetype6-dev.

@foo-jin
Copy link
Author

foo-jin commented Mar 18, 2018

You're correct, I made a mistake in my comment. That is the package I had installed however, so that is not the source of this problem.

@foo-jin
Copy link
Author

foo-jin commented Mar 18, 2018

Manually exporting PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig solved it in my case.

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

No branches or pull requests

2 participants