GithubHelp home page GithubHelp logo

Comments (3)

veltman avatar veltman commented on June 17, 2024

Can you make sure you have all the canvas dependencies installed by running this first:

sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++

After that, what happens if you run just npm install canvas?

from audiogram.

forteller avatar forteller commented on June 17, 2024

Thank you for that fast reply, @veltman!

Running that apt command I get this:

build-essential is already the newest version (12.4ubuntu1).
g++ is already the newest version (4:7.2.0-1ubuntu1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libcairo2-dev : Depends: libcairo2 (= 1.14.10-1ubuntu1) but 1.15.6-0intel1 is to be installed
                 Depends: libcairo-gobject2 (= 1.14.10-1ubuntu1) but 1.15.6-0intel1 is to be installed
E: Unable to correct problems, you have held broken packages.

I really don't understand that about held broken packages. I don't get a message like that when I apt update, upgrade or install anything else.

from audiogram.

veltman avatar veltman commented on June 17, 2024

Hmm, hard to say exactly but it seems like some sort of dependency issue that hasn't graduated to the latest release. A few things you can try:

Ask the libcairo maintainers on Launchpad, link in sidebar here: https://packages.ubuntu.com/artful/libcairo2-dev

Try some of these package cleaning steps: https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa

from audiogram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.