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

Ubuntu Discussion :

install/compil luagd pour lua / cgilua


Sujet :

Ubuntu

  1. #1
    Membre confirmé
    Profil pro
    Développeur indépendant
    Inscrit en
    Août 2004
    Messages
    373
    Détails du profil
    Informations personnelles :
    Âge : 55
    Localisation : France

    Informations professionnelles :
    Activité : Développeur indépendant
    Secteur : Transports

    Informations forums :
    Inscription : Août 2004
    Messages : 373
    Points : 512
    Points
    512
    Par défaut install/compil luagd pour lua / cgilua
    voila le contexte.
    j'ai deja installé cgilua pour pouvoir executer des scripts lua à travers le serveur apache. pourquoi.?
    parceque les scripts lua peuvent etre executés dans une sandbox. bien pratique pour permettre aux utilisateurs de faire leurs propres scripts.

    le seul hic, c'est comment installer le module luagd pour pouvoir creer des images à partir de lua, via cgilua.

    je debute vraiment en linux, et je sais pas par ou commencer.

    luagd ici http://lua-gd.luaforge.net/manual.html

    j'ai essayé de charger les librairies png, pour les compiler, mais c'est un gros fiasco..
    les expliquations d'installations sont beaucoup trop succintes pour mon niveau en linux.
    bref je cherche qui aurait deja fait ce genre de chose et pourrait me renseigner la dessus.
    merci BEAUCOUP d'avance.

  2. #2
    Invité
    Invité(e)
    Par défaut
    Hello,

    Déjà quelle distribution linux utilises-tu?

    Quelles sont les erreurs que tu rencontres lors de la compilation de ce module?

  3. #3
    Membre confirmé
    Profil pro
    Développeur indépendant
    Inscrit en
    Août 2004
    Messages
    373
    Détails du profil
    Informations personnelles :
    Âge : 55
    Localisation : France

    Informations professionnelles :
    Activité : Développeur indépendant
    Secteur : Transports

    Informations forums :
    Inscription : Août 2004
    Messages : 373
    Points : 512
    Points
    512
    Par défaut distrib,
    Ubuntu 10.04.2 LTS

    j'ai essayé pleins de truc, installer xavante, luarocks, wsapi, pfou, ca doit etre devenu un beau bazarre la dedans..

    il vaudrait mieux reprendre l'installation de 0,
    installation de lua, installation des modules luagd, luasql.mysql et json

    j'utilisais luaforwindows sous windows, tout etait installé, pas de probleme, mais la, ca tourne au cauchemard.


  4. #4
    Membre confirmé
    Profil pro
    Développeur indépendant
    Inscrit en
    Août 2004
    Messages
    373
    Détails du profil
    Informations personnelles :
    Âge : 55
    Localisation : France

    Informations professionnelles :
    Activité : Développeur indépendant
    Secteur : Transports

    Informations forums :
    Inscription : Août 2004
    Messages : 373
    Points : 512
    Points
    512
    Par défaut gd. working. et les autres..
    bon, ben finalement, ca finirait par vouloir fonctionner, du moins gd.

    j'ai reinstallé lua de base avec apt-get install lua50

    puis la lib luagd avec
    wget http://luaforge.net/frs/download.php...3r2-1_i386.deb
    puis
    sudo dpkg -i lua-gd_2.0.33r2-1_i386.deb

    j'ai teste un exemple simple en gd, ca marche, ca genere bien le fichier image.
    peux pas tester, suis en version ubuntu server, ligne de commande.
    maintenant, il reste à trouver comment installer les deux autres modules, luasl.mysql et json, et surtout à partir de quoi ou d'ou.

  5. #5
    Invité
    Invité(e)
    Par défaut
    Sous ubuntu 10.04, je te conseillerais d'installer la version 5.1 de lua car toutes les librairies associées (json,libuasql)sont disponibles dans le repository ubuntu. Pour lua-gd, il faudra également prendre le package compatible pour la version 5.1

    http://luaforge.net/frs/?group_id=90&release_id=435

    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
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
     apt-cache search lua5.1
    liblua5.1-0 - Simple, extensible, embeddable programming language
    liblua5.1-0-dbg - Simple, extensible, embeddable programming language
    liblua5.1-0-dev - Simple, extensible, embeddable programming language
    lua5.1 - Simple, extensible, embeddable programming language
    lua5.1-doc - Simple, extensible, embeddable programming language
    ipe - drawing editor for creating figures in PDF or PS formats
    libcsnd5.2 - C++ bindings for the Csound API
    libgv-lua - Lua bindings for graphviz
    liblua-socket-doc - TCP/UDP socket library for Lua documentation
    liblua5.1-bitop-dev - fast bit manipulation library devel files for the Lua language version 5.1
    liblua5.1-bitop0 - fast bit manipulation library for the Lua language version 5.1
    liblua5.1-cgi-dev - Documentation files for the CGI library for the Lua language version 5.1
    liblua5.1-cgi0 - CGI library for the Lua language version 5.1
    liblua5.1-copas-dev - Documentation files for the copas library for the Lua language version 5.1
    liblua5.1-copas0 - Copas is a dispatcher of concurrent TCP/IP requests for Lua 5.1
    liblua5.1-cosmo0 - A template library for the Lua langua version 5.1
    liblua5.1-coxpcall0 - Protected function calls across coroutines for Lua 5.1
    liblua5.1-csnd - Lua bindings for the Csound API
    liblua5.1-curl-dev - libcURL development files for the Lua language version 5.1
    liblua5.1-curl0 - libcURL bindings for the Lua language version 5.1
    liblua5.1-doc0 - Documentation generation library for the Lua language version 5.1
    liblua5.1-expat-dev - libexpat development files for the Lua language version 5.1
    liblua5.1-expat0 - libexpat bindings for the Lua language version 5.1
    liblua5.1-filesystem-dev - luafilesystem development files for the Lua language version 5.1
    liblua5.1-filesystem0 - luafilesystem library for the Lua language version 5.1
    liblua5.1-gnome-0 - GNOME bindings for the Lua language version 5.1
    liblua5.1-gnome-dev - GNOME development files for the Lua language version 5.1
    liblua5.1-iconv0 - iconv bindings for the Lua programming language
    liblua5.1-json - JSON decoder/encoder for Lua
    liblua5.1-leg-dev - Leg development files for the Lua language version 5.1
    liblua5.1-leg0 - Lua 5.1 grammar, with parsing and manipulation facilities
    liblua5.1-logging - lualogging library for the Lua language version 5.1
    liblua5.1-logging-dev - Documentation files for the lualogging library for the Lua language version 5.1
    liblua5.1-lpeg-dev - LPeg development files for the Lua language version 5.1
    liblua5.1-lpeg2 - LPeg library for the Lua language version 5.1
    liblua5.1-markdown0 - A pure lua5.1 implementation of the Markdown text-to-html markup
    liblua5.1-md5-0 - MD5 library for the Lua language version 5.1
    liblua5.1-md5-dev - MD5 library for the Lua language version 5.1
    liblua5.1-orbit-dev - Documentation files for the orbit MVC framework
    liblua5.1-orbit1 - MVC web framework for Lua
    liblua5.1-posix-dev - posix development files for the Lua language version 5.1
    liblua5.1-posix1 - posix library for the Lua language version 5.1
    liblua5.1-rex-doc - documentation of the rex library for the Lua language version 5.1
    liblua5.1-rex-onig-dev - Onig regex development files for the Lua language version 5.1
    liblua5.1-rex-onig0 - Onig regular expressions library for the Lua language version 5.1
    liblua5.1-rex-pcre-dev - PCRE development files for the Lua language version 5.1
    liblua5.1-rex-pcre0 - Perl regular expressions library for the Lua language version 5.1
    liblua5.1-rex-posix-dev - POSIX regex development files for the Lua language version 5.1
    liblua5.1-rex-posix0 - POSIX regular expressions library for the Lua language version 5.1
    liblua5.1-rings-dev - Development files for the rings library for the Lua language version 5.1
    liblua5.1-rings0 - Lua state creation and control library for the Lua language version 5.1
    liblua5.1-sec-dev - SSL socket library library devel files for the Lua language version 5.1
    liblua5.1-sec1 - SSL socket library for the Lua language version 5.1
    liblua5.1-soap-dev - Documentation files for the SOAP library for the Lua language version 5.1
    liblua5.1-soap0 - SOAP library for the Lua language version 5.1
    liblua5.1-socket-dev - TCP/UDP socket library for Lua 5.1
    liblua5.1-socket2 - TCP/UDP socket library for Lua 5.1
    liblua5.1-sql-doc - luasql documentation
    liblua5.1-sql-mysql-2 - luasql library for the Lua language version 5.1
    liblua5.1-sql-mysql-dev - luasql development files for the Lua language version 5.1
    liblua5.1-sql-postgres-2 - luasql library for the Lua language version 5.1
    liblua5.1-sql-postgres-dev - luasql development files for the Lua language version 5.1
    liblua5.1-sql-sqlite3-2 - luasql library for the Lua language version 5.1
    liblua5.1-sql-sqlite3-dev - luasql development files for the Lua language version 5.1
    liblua5.1-svn-dev - Development files for the Subversion library for the Lua language version 5.1
    liblua5.1-svn1 - Subversion library for the Lua language version 5.1
    liblua5.1-wsapi-doc - wsapi documentation files for the Lua language version 5.1
    liblua5.1-wsapi-fcgi-1 - Web server API fastcgi backend
    liblua5.1-wsapi-fcgi-dev - wsapi fastcgi development files for the Lua language version 5.1
    liblua5.1-wsapi1 - Web server API abstraction layer for the Lua language version 5.1
    liblua5.1-xmlrpc-dev - Documentation files for the xmlrpc library for the Lua language version 5.1
    liblua5.1-xmlrpc0 - xmlrpc library for the Lua language version 5.1
    liblua5.1-zip-dev - zip development files for the Lua language version 5.1
    liblua5.1-zip0 - zip library for the Lua language version 5.1
    libtaoframework-lua5.1-cil - Tao CLI binding for Lua
    lua5.1-policy - Lua 5.1 Debian policy
    lua5.1-policy-dev - Lua 5.1 Debian policy - template and scripts
    luajit - Just in time compiler for Lua programming language version 5.1

  6. #6
    Membre confirmé
    Profil pro
    Développeur indépendant
    Inscrit en
    Août 2004
    Messages
    373
    Détails du profil
    Informations personnelles :
    Âge : 55
    Localisation : France

    Informations professionnelles :
    Activité : Développeur indépendant
    Secteur : Transports

    Informations forums :
    Inscription : Août 2004
    Messages : 373
    Points : 512
    Points
    512
    Par défaut ouais, les aleas de l'info..
    bon, j'ai suivi tes conseils, et reinstallés
    lua5.1 apt-get install lua5.1
    lusql-mysql apt-get install liblua5.1-sql-mysql-2
    lua-gd
    wget http://luaforge.net/frs/download.php...a-5.1.3.tar.gz
    dpkg -i lua-gd_2.0.33r2-1_i386.deb

    suis pas trop sur pour cgilua, j'ai pas encore essayé de reintroduire
    les fichiers lua dans la config apache.
    bref, c'est faisable, mais va falloir encore marner pour arriver à quelque chose de stable..

  7. #7
    Invité
    Invité(e)
    Par défaut
    pour cgilua, tu as ceci dans les dépôts ubuntu

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    apt-cache search cgilua
    liblua5.1-cgi0 - CGI library for the Lua language version 5.1

  8. #8
    Membre confirmé
    Profil pro
    Développeur indépendant
    Inscrit en
    Août 2004
    Messages
    373
    Détails du profil
    Informations personnelles :
    Âge : 55
    Localisation : France

    Informations professionnelles :
    Activité : Développeur indépendant
    Secteur : Transports

    Informations forums :
    Inscription : Août 2004
    Messages : 373
    Points : 512
    Points
    512
    Par défaut ouais :)
    oui, j'ai vu celui la..
    c'est encore un peu confus,
    j'ai en effet pris ce paquet.

    apt-cache search cgilua
    liblua5.1-cgi0 - CGI library for the Lua language version 5.1

    par contre derriere, ca marche comment, ?
    j'ai des instructions que j'utilisais avec la version windows qui ne sont plus valides, en particulier le tableau cgilua.QUERY
    comment on peut trouver la doc pour actualiser ca.?

Discussions similaires

  1. [Zeromq] Pourquoi faut-il compiler Zeromq pour l'installer sur .NET ?
    Par Pierre8r dans le forum Général Dotnet
    Réponses: 0
    Dernier message: 24/03/2011, 21h11
  2. Compilé blacklists pour squidguard
    Par greg49 dans le forum Applications et environnements graphiques
    Réponses: 7
    Dernier message: 16/06/2005, 15h48
  3. Problème d'installation de driver pour une carte réseaux
    Par black is beautiful dans le forum Matériel
    Réponses: 3
    Dernier message: 19/07/2004, 21h33
  4. Stratégie d'installation des fixes pour windows 2000/2003
    Par bill4134 dans le forum Autres Logiciels
    Réponses: 20
    Dernier message: 07/07/2004, 16h04
  5. Réponses: 19
    Dernier message: 24/05/2002, 16h36

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