Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

757
Views
no se puede cargar la biblioteca libcairo

Tengo un problema al intentar ejecutar un sitio web en Django:

 OSError: no library called "libcairo-2" was found cannot load library 'libcairo.so.2': /lib/x86_64-linux-gnu/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var cannot load library 'libcairo.so': /lib/x86_64-linux-gnu/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var cannot load library 'libcairo.2.dylib': libcairo.2.dylib: cannot open shared object file: No such file or directory cannot load library 'libcairo-2.dll': libcairo-2.dll: cannot open shared object file: No such file or directory

Aunque el paquete está instalado.

he instalado weasyprint

 pip3 install weasyprint python -m pip install WeasyPrint sudo apt-get install build-essential python3-dev python3-pip python3-setuptools python3-wheel python3-cffi libcairo2 libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf2.0-0 libffi-dev shared-mime-info

yo también probé

 sudo apt install libcairo2-dev sudo apt install libgirepository1.0-dev

Tengo el sistema Lubuntu. ¿Alguna idea de cómo puedo solucionarlo? Gracias por adelantado

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

La solución fue eliminar el archivo libfreetype.so.6 del directorio home/user/anaconda3/envs/myvenv/lib (idea tomada de https://kb.tecplot.com/2019/09/11/undefined-symbol-ft_done_mm_var/ )

over 4 years ago · Santiago Trujillo Report

0

Para cualquiera que venga aquí y reciba el error:

 /lib/x86_84-linux-gnu/libcairo.so.2: undefined symbol: FT_Done_MM_Var

Ejecute el comando:

 sudo find / -name *freetype*

Como mencionó Uli Schlachter, se debe a que las fuentes se construyeron en una versión más nueva y se usaron en una versión anterior. Usé el comentario de alis01 para averiguarlo para mí:

 /usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libfreetype.so.6

estaba causando el problema. Le cambié el nombre a libfreetype.so.6.bak y todo ha ido bien desde entonces.

over 4 years ago · Santiago Trujillo Report

0

Para la distribución basada en Ubuntu 20 y Debian, intente:

 sudo apt-get install libpangocairo-1.0-0
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!