Précédent   Forum des professionnels en informatique > Systèmes > Linux > Distributions > Ubuntu
Ubuntu Vos questions sur les distributions Ubuntu et dérivées (Kubuntu, Xubuntu... )
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 12/05/2011, 14h29   #1
Membre actif
 
christian
Développeur indépendant
Inscription : août 2004
Messages : 251
Détails du profil
Informations personnelles :
Nom : christian
Âge : 43
Localisation : France

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

Informations forums :
Inscription : août 2004
Messages : 251
Points : 184
Points : 184
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.
eomer212 est déconnecté   Envoyer un message privé Réponse avec citation 01
Vieux 12/05/2011, 15h02   #2
Expert Confirmé Sénior
 
Homme Laurent Willems
Expert Stop/Start
Inscription : septembre 2002
Messages : 2 551
Détails du profil
Informations personnelles :
Nom : Homme Laurent Willems
Âge : 33
Localisation : Belgique

Informations professionnelles :
Activité : Expert Stop/Start

Informations forums :
Inscription : septembre 2002
Messages : 2 551
Points : 4 271
Points : 4 271
Hello,

Déjà quelle distribution linux utilises-tu?

Quelles sont les erreurs que tu rencontres lors de la compilation de ce module?
__________________
Alea Jacta Test!
Mygale1978 est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 12/05/2011, 16h34   #3
Membre actif
 
christian
Développeur indépendant
Inscription : août 2004
Messages : 251
Détails du profil
Informations personnelles :
Nom : christian
Âge : 43
Localisation : France

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

Informations forums :
Inscription : août 2004
Messages : 251
Points : 184
Points : 184
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.

eomer212 est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 12/05/2011, 17h00   #4
Membre actif
 
christian
Développeur indépendant
Inscription : août 2004
Messages : 251
Détails du profil
Informations personnelles :
Nom : christian
Âge : 43
Localisation : France

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

Informations forums :
Inscription : août 2004
Messages : 251
Points : 184
Points : 184
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.
eomer212 est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 12/05/2011, 17h31   #5
Expert Confirmé Sénior
 
Homme Laurent Willems
Expert Stop/Start
Inscription : septembre 2002
Messages : 2 551
Détails du profil
Informations personnelles :
Nom : Homme Laurent Willems
Âge : 33
Localisation : Belgique

Informations professionnelles :
Activité : Expert Stop/Start

Informations forums :
Inscription : septembre 2002
Messages : 2 551
Points : 4 271
Points : 4 271
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 :
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
__________________
Alea Jacta Test!
Mygale1978 est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 12/05/2011, 20h38   #6
Membre actif
 
christian
Développeur indépendant
Inscription : août 2004
Messages : 251
Détails du profil
Informations personnelles :
Nom : christian
Âge : 43
Localisation : France

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

Informations forums :
Inscription : août 2004
Messages : 251
Points : 184
Points : 184
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..
eomer212 est déconnecté   Envoyer un message privé Réponse avec citation 01
Vieux 12/05/2011, 20h42   #7
Expert Confirmé Sénior
 
Homme Laurent Willems
Expert Stop/Start
Inscription : septembre 2002
Messages : 2 551
Détails du profil
Informations personnelles :
Nom : Homme Laurent Willems
Âge : 33
Localisation : Belgique

Informations professionnelles :
Activité : Expert Stop/Start

Informations forums :
Inscription : septembre 2002
Messages : 2 551
Points : 4 271
Points : 4 271
pour cgilua, tu as ceci dans les dépôts ubuntu

Code :
1
2
3
 
apt-cache search cgilua
liblua5.1-cgi0 - CGI library for the Lua language version 5.1
__________________
Alea Jacta Test!
Mygale1978 est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 12/05/2011, 20h45   #8
Membre actif
 
christian
Développeur indépendant
Inscription : août 2004
Messages : 251
Détails du profil
Informations personnelles :
Nom : christian
Âge : 43
Localisation : France

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

Informations forums :
Inscription : août 2004
Messages : 251
Points : 184
Points : 184
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.?
eomer212 est déconnecté   Envoyer un message privé Réponse avec citation 01
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 11h36.


 
 
 
 
Partenaires

Hébergement Web