Probleme installation mupdf

Bonjour,

j’essaye d’installer Mupdf sur un serveur dédié (Debian 6) et je rencontre quelques problèmes.

root@server.loc:/tmp/mupdf# sudo make prefix=/usr/local install
CC build/debug/dev_text.o
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
fitz/dev_text.c:7:22: error: ft2build.h: Aucun fichier ou dossier de ce type
fitz/dev_text.c:8:10: error: #include expects "FILENAME" or <FILENAME>
fitz/dev_text.c:9:10: error: #include expects "FILENAME" or <FILENAME>
fitz/dev_text.c: In function 'fz_text_extract':
fitz/dev_text.c:305: error: 'FT_Face' undeclared (first use in this function)
fitz/dev_text.c:305: error: (Each undeclared identifier is reported only once
fitz/dev_text.c:305: error: for each function it appears in.)
fitz/dev_text.c:305: error: expected ';' before 'face'
fitz/dev_text.c:325: warning: implicit declaration of function 'FT_Set_Char_Size'
fitz/dev_text.c:328: error: 'face' undeclared (first use in this function)
fitz/dev_text.c:404: error: 'FT_Fixed' undeclared (first use in this function)
fitz/dev_text.c:404: error: expected ';' before 'ftadv'
fitz/dev_text.c:405: error: 'FT_LOAD_NO_BITMAP' undeclared (first use in this function)
fitz/dev_text.c:405: error: 'FT_LOAD_NO_HINTING' undeclared (first use in this function)
fitz/dev_text.c:405: error: 'FT_LOAD_IGNORE_TRANSFORM' undeclared (first use in this function)
fitz/dev_text.c:414: warning: implicit declaration of function 'FT_Get_Advance'
fitz/dev_text.c:414: error: 'ftadv' undeclared (first use in this function)
fitz/dev_text.c: In function 'font_is_bold':
fitz/dev_text.c:553: error: 'FT_Face' undeclared (first use in this function)
fitz/dev_text.c:553: error: expected ';' before 'face'
fitz/dev_text.c:554: error: 'face' undeclared (first use in this function)
fitz/dev_text.c:554: error: 'FT_STYLE_FLAG_BOLD' undeclared (first use in this function)
fitz/dev_text.c: In function 'font_is_italic':
fitz/dev_text.c:563: error: 'FT_Face' undeclared (first use in this function)
fitz/dev_text.c:563: error: expected ';' before 'face'
fitz/dev_text.c:564: error: 'face' undeclared (first use in this function)
fitz/dev_text.c:564: error: 'FT_STYLE_FLAG_ITALIC' undeclared (first use in this function)
make: *** [build/debug/dev_text.o] Erreur 1

Je comprends qu’il ne trouve pas “freetype2” pour réaliser l’installation correctement.
Cepenant je ne trouve d’informations concernant l’installation de ce paquet.
un apt-get install freetype2 ne marche pas.

Merci

Re,

root@localhost:/home/guest# aptitude search mupdf
p   libmupdf-dev                                                                - development files for the MuPDF viewer                                               
p   mupdf                                                                       - lightweight PDF viewer                                                               
p   mupdf-tools                                                                 - commmand line tools for the MuPDF viewer                                             
root@localhost:/home/guest#

Il est dans les dépots, donc tape :

apt-get install mupdf

root@domaine.loc:/tmp/mupdf# apt-get install mupdf
Lecture des listes de paquets… Fait
Construction de l’arbre des d?pendances
Lecture des informations d’?tat… Fait
E: Impossible de trouver le paquet mupdf

mupdf est dans le dépot backports de debian.

Si tu n’as pas encore mis ce dépot backports dans ton fichier /etc/apt/sources.list, alors rajoute dans ta sources.list, cette ligne :

deb http://backports.debian.org/debian-backports squeeze-backports main

Puis tapes :

apt-get update
apt-get upgrade
apt-get install mupdf

Par ailleurs, si c’est sur un serveur dédié où tu n’as pas accès au bureau graphique, mais que tu souhaite utiliser mupdf en ligne de commande, il y a le paquet mupdf-tools.

Merci.
Il me manque encore freetype2.
une piste ? :slightly_smiling:

[quote=“perko”]Merci.
Il me manque encore freetype2.
une piste ? :slightly_smiling:[/quote]
=> bizarre, tu n’as pas réussi à installer mupdf avec apt-get install mupdf ?

Pour freetype 2 :

root@localhost:/home/guest# aptitude search freetype
p   freetype2-demos                                                             - FreeType 2 demonstration programs                                                    
i A libfont-freetype-perl                                                       - Read font files and render glyphs from Perl using FreeType2                          
i A libfreetype6                                                                - FreeType 2 font engine, shared library files                                         
i A libfreetype6-dev                                                            - FreeType 2 font engine, development files                                            
p   libisfreetype-5.2-java                                                      - Java wrapper for FreeType font handling library                                      
p   libisfreetype-java                                                          - Java wrapper for FreeType font handling library                                      
p   libisfreetype-java-doc                                                      - Javadoc API description for isFreeType                                               
p   libtaoframework-freetype-cil-dev                                            - Tao CLI binding for FreeType - development files                                     
p   libtaoframework-freetype2.3-cil                                             - Tao CLI binding for FreeType                                                         
root@localhost:/home/guest# 

oui mupdf s’est bien installé avec les informations fournie au dessus.
Mais j’ai toujours des problèmes avec la plateforme que j’essaye de faire fonctionner (Padcms) magrès cette install :

À la base, je suis ce guide :
dev.padcms.net/projects/padcms-b … version=21

Avec le paragraphe :

Compile MuPdf utils

    mkdir /tmp/mupdf && cd /tmp/mupdf
    git clone git://git.ghostscript.com/mupdf.git .
    wget http://mupdf.googlecode.com/files/mupdf-thirdparty-2012-04-23.zip
    unzip mupdf-thirdparty-2012-04-23.zip
    sudo make prefix=/usr/local install
    mudraw

la partie “sudo make prefix=/usr/local install” me retourne :

CC build/debug/dev_text.o 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 fitz/dev_text.c:7:22: error: ft2build.h: Aucun fichier ou dossier de ce type fitz/dev_text.c:8:10: error: #include expects "FILENAME" or <FILENAME> fitz/dev_text.c:9:10: error: #include expects "FILENAME" or <FILENAME> fitz/dev_text.c: In function 'fz_text_extract': fitz/dev_text.c:305: error: 'FT_Face' undeclared (first use in this function) fitz/dev_text.c:305: error: (Each undeclared identifier is reported only once fitz/dev_text.c:305: error: for each function it appears in.) fitz/dev_text.c:305: error: expected ';' before 'face' fitz/dev_text.c:325: warning: implicit declaration of function 'FT_Set_Char_Size' fitz/dev_text.c:328: error: 'face' undeclared (first use in this function) fitz/dev_text.c:404: error: 'FT_Fixed' undeclared (first use in this function) fitz/dev_text.c:404: error: expected ';' before 'ftadv' fitz/dev_text.c:405: error: 'FT_LOAD_NO_BITMAP' undeclared (first use in this function) fitz/dev_text.c:405: error: 'FT_LOAD_NO_HINTING' undeclared (first use in this function) fitz/dev_text.c:405: error: 'FT_LOAD_IGNORE_TRANSFORM' undeclared (first use in this function) fitz/dev_text.c:414: warning: implicit declaration of function 'FT_Get_Advance' fitz/dev_text.c:414: error: 'ftadv' undeclared (first use in this function) fitz/dev_text.c: In function 'font_is_bold': fitz/dev_text.c:553: error: 'FT_Face' undeclared (first use in this function) fitz/dev_text.c:553: error: expected ';' before 'face' fitz/dev_text.c:554: error: 'face' undeclared (first use in this function) fitz/dev_text.c:554: error: 'FT_STYLE_FLAG_BOLD' undeclared (first use in this function) fitz/dev_text.c: In function 'font_is_italic': fitz/dev_text.c:563: error: 'FT_Face' undeclared (first use in this function) fitz/dev_text.c:563: error: expected ';' before 'face' fitz/dev_text.c:564: error: 'face' undeclared (first use in this function) fitz/dev_text.c:564: error: 'FT_STYLE_FLAG_ITALIC' undeclared (first use in this function) make: *** [build/debug/dev_text.o] Erreur 1

Salut,

Comme dit … :033

[code]acp mupdf
mupdf:
Installé : (aucun)
Candidat : 0.8.15-1~bpo60+1
Table de version :
0.9-2 0
90 http://ftp.fr.debian.org/debian/ wheezy/main i386 Packages
50 http://ftp.fr.debian.org/debian/ sid/main i386 Packages
0.8.15-1~bpo60+1 0
100 http://backports.debian.org/debian-backports/ squeeze-backports/main i386 Packages

[/code]

-s = simulation

# aptitude -s install mupdf Les NOUVEAUX paquets suivants vont être installés : libjbig2dec0{a} libopenjpeg2{a} libxext6{a} mupdf 0 paquets mis à jour, 4 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de télécharger 3 557 ko d'archives. Après dépaquetage, 7 045 ko seront utilisés. Voulez-vous continuer ? [Y/n/?] y Charger/installer/enlever des paquets. #

Mais pourquoi vouloir chercher à compiler les sources, alors que mupdf est dans le dépot backports ?

j’ai un peu de mal à vous suivre :slightly_smiling:
dans /usr/bin je n’ai pas mudraw après l’install :frowning:

un which mudraw en renvoi rien.

Cependant j’ai trouvé un pdfdraw, c’est le même programme ?

Le paquet mupdf fournit le binaire mupdf,
le paquet mupdf-tools fournit les binaires pdfclean, pdfdraw & pdfshow.