IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Bibliothèques Discussion :

Installation de HeaderDoc sous Ubuntu 12.04.1


Sujet :

Bibliothèques

  1. #1
    Expert confirmé
    Homme Profil pro
    Développeur informatique en retraite
    Inscrit en
    Avril 2008
    Messages
    2 101
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Côtes d'Armor (Bretagne)

    Informations professionnelles :
    Activité : Développeur informatique en retraite

    Informations forums :
    Inscription : Avril 2008
    Messages : 2 101
    Points : 5 849
    Points
    5 849
    Par défaut Installation de HeaderDoc sous Ubuntu 12.04.1
    Je n'arrive pas à installer HeaderDoc sous Ubuntu... et il y a très longtemps que je n'ai pas compilé un programme C...

    J'ai installé ce que je pensais qu'il manquait:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    sudo apt-get install libxml2-dev
    sudo apt-get install libxml2-utils
    sudo apt-get install checkinstall
    sudo chown -R jack:jack /opt/headerdoc-8.9.14
    Il n'y a pas de ./configure

    Voici le résultat du make:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    $ make
    cd xmlman ; make all CC=`if [ "$DEVELOPER_BIN_DIR" != "" -a "0" != "0" ] ; then echo "gcc-4.0" ; else echo "cc"; fi` ARCH=`uname` VERS=`{ echo "10.6"; sw_vers -productVersion | sed 's/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1.\2/'; } | sort | head -n 1` ; cd ..
    /bin/sh: 1: sw_vers: not found
    make[1]: Entering directory `/opt/headerdoc-8.9.14/xmlman'
    cc  -lxml2 -lpthread   xml2man.o strcompat.o   -o xml2man
    xml2man.o: In function `writeData_sub':
    /opt/headerdoc-8.9.14/xmlman/xml2man.c:730: undefined reference to `xmlUnlinkNode'
    /opt/headerdoc-8.9.14/xmlman/xml2man.c:738: undefined reference to `xmlFreeNode'
    xml2man.o: In function `main':
    /opt/headerdoc-8.9.14/xmlman/xml2man.c:116: undefined reference to `xmlCheckVersion'
    /opt/headerdoc-8.9.14/xmlman/xml2man.c:126: undefined reference to `xmlParseFile'
    /opt/headerdoc-8.9.14/xmlman/xml2man.c:147: undefined reference to `xmlParseMemory'
    /opt/headerdoc-8.9.14/xmlman/xml2man.c:149: undefined reference to `xmlDocGetRootElement'
    /opt/headerdoc-8.9.14/xmlman/xml2man.c:173: undefined reference to `xmlFreeDoc'
    /opt/headerdoc-8.9.14/xmlman/xml2man.c:174: undefined reference to `xmlCleanupParser'
    Que puis-je faire pour avancer?

  2. #2
    Expert confirmé
    Homme Profil pro
    Développeur informatique en retraite
    Inscrit en
    Avril 2008
    Messages
    2 101
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Côtes d'Armor (Bretagne)

    Informations professionnelles :
    Activité : Développeur informatique en retraite

    Informations forums :
    Inscription : Avril 2008
    Messages : 2 101
    Points : 5 849
    Points
    5 849
    Par défaut
    J'ai trouvé: il fallait permuter les .o et les .a dans les lignes cc:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    # Prepare the temp dir
    # --------------------
    sudo mkdir -p /private/tmp
    sudo chmod 777 /private/tmp
     
    # Needed components
    # -----------------
    sudo apt-get install libxml2-dev
    sudo apt-get install libxml2-utils
    sudo apt-get install checkinstall
    sudo apt-get install perl-doc
     
    # Needed perl components
    # ----------------------
    sudo cpan (basically answer 'yes' to configuration questions)
    cpan[1]> quit
    sudo cpan HTML::Parser
    sudo cpan URI::Escape
    sudo cpan FreezeThaw
     
    # or (interactively):
     
    sudo cpan (basically answer 'yes' to configuration questions)
    cpan[1]> install HTML::Entities
    cpan[2]> install URI/Escape.pm
    cpan[3]> install FreezeThaw 
     
    # Deploy the tar ball
    # -------------------
    cd /opt
    sudo tar xzf /media/sf_Partage_VM/headerdoc-8.9.14.tar.gz 
    sudo chown -R jack:jack /opt/headerdoc-8.9.14
     
    # Manually compile xml2man and co
    # -------------------------------
    cd /opt/headerdoc-8.9.14/xmlman
    cc xml2man.o strcompat.o -lxml2 -lpthread -o xml2man
    cc hdxml2manxml.o strcompat.o -lxml2 -lpthread -o hdxml2manxml
    cc resolveLinks.o strcompat.o -lxml2 -lpthread -o resolveLinks
     
    # Make
    # ----
    cd /opt/headerdoc-8.9.14
    make
    sudo make realinstall

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Installer drivers rtl8187 sous Ubuntu
    Par guigui_cosmos dans le forum Matériel
    Réponses: 2
    Dernier message: 04/06/2007, 21h23
  2. problème à la (re)installation d'Eclipse sous Ubuntu
    Par vichenze dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 28/05/2007, 12h10
  3. Installer des applications sous Ubuntu
    Par Titeuf01-87 dans le forum Applications et environnements graphiques
    Réponses: 3
    Dernier message: 18/03/2007, 12h25
  4. Installation d'OpenGL sous Ubuntu
    Par Premium dans le forum Administration système
    Réponses: 1
    Dernier message: 27/09/2006, 06h52
  5. Installer une application sous Ubuntu
    Par arnolem dans le forum Applications et environnements graphiques
    Réponses: 8
    Dernier message: 06/04/2006, 09h37

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo