• Bonjour Visiteur. Bienvenue sur les nouveaux forums de MacGeneration. La peinture est encore fraiche, quelques boulons doivent être resserrés, plus d’informations demain !

Terminal, Xcode, Homebrew, LuaRocks & Prosody…

Disia

Membre confirmé
15 Août 2007
134
4
Salut,

Avant tout, je m'excuse si ce sujet n'a pas sa place ici – j'ai longtemps hésité sur la section dans laquelle poster.

Souhaitant utiliser Prosody, j'ai d'abord dû installer Xcode et Homebrew. Alors que j'essayais d'ajouter un utilisateur à Prosody (Terminal : prosodyctl adduser user@example.com), ce dernier m'informe que certaines dépendances sont manquantes, à savoir : LuaExpat et LuaFileSystem.

Après avoir essayé d'installer ces deux dépendances en vain et ce pendant une heure, je fais appel à vous. Voici le résultat de la commande brew doctor, via le Terminal :

Bloc de code:
MacBook Pro:~ Disia$ brew doctor
Installing http://www.luarocks.org/repositories/rocks/luasocket-2.0.2-5.src.rock...
Using http://www.luarocks.org/repositories/rocks/luasocket-2.0.2-5.src.rock... switching to 'build' mode
Archive:  /private/tmp/luarocks_luarocks-rock-luasocket-2.0.2-5-7456/luasocket-2.0.2-5.src.rock
  inflating: luasocket-2.0.2-5.rockspec  
  inflating: luasocket-2.0.2.tar.gz  
cd src; make all
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o luasocket.o luasocket.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o timeout.o timeout.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o buffer.o buffer.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o io.o io.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o auxiliar.o auxiliar.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o options.o options.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o inet.o inet.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o tcp.o tcp.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o udp.o udp.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o except.o except.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o select.o select.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o usocket.o usocket.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -bundle -undefined dynamic_lookup -all_load -O -fpic -o socket.so.2.0.2 luasocket.o timeout.o buffer.o io.o auxiliar.o options.o inet.o tcp.o udp.o except.o select.o usocket.o 
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o mime.o mime.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -bundle -undefined dynamic_lookup -all_load -O -fpic -o mime.so.1.0.2 mime.o 
cd src; make all
make[1]: Nothing to be done for `all'.
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua
cd src; cp ltn12.lua socket.lua mime.lua /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/socket
cd src; cp http.lua url.lua tp.lua ftp.lua smtp.lua /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/socket
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/socket
cd src; cp socket.so.2.0.2  /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/socket/core.so
#cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/mime
#cd src; cp  /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/mime
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/mime
cd src; cp mime.so.1.0.2 /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/mime/core.so
Updating manifest for /usr/local/lib/luarocks/rocks

luasocket 2.0.2-5 is now built and installed in /usr/local/ (license: MIT)
Installing http://www.luarocks.org/repositories/rocks/luasocket-2.0.2-5.src.rock...
Using http://www.luarocks.org/repositories/rocks/luasocket-2.0.2-5.src.rock... switching to 'build' mode
Archive:  /private/tmp/luarocks_luarocks-rock-luasocket-2.0.2-5-2449/luasocket-2.0.2-5.src.rock
  inflating: luasocket-2.0.2-5.rockspec  
  inflating: luasocket-2.0.2.tar.gz  
cd src; make all
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o luasocket.o luasocket.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o timeout.o timeout.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o buffer.o buffer.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o io.o io.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o auxiliar.o auxiliar.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o options.o options.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o inet.o inet.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o tcp.o tcp.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o udp.o udp.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o except.o except.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o select.o select.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o usocket.o usocket.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -bundle -undefined dynamic_lookup -all_load -O -fpic -o socket.so.2.0.2 luasocket.o timeout.o buffer.o io.o auxiliar.o options.o inet.o tcp.o udp.o except.o select.o usocket.o 
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o mime.o mime.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -bundle -undefined dynamic_lookup -all_load -O -fpic -o mime.so.1.0.2 mime.o 
cd src; make all
make[1]: Nothing to be done for `all'.
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua
cd src; cp ltn12.lua socket.lua mime.lua /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/socket
cd src; cp http.lua url.lua tp.lua ftp.lua smtp.lua /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/socket
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/socket
cd src; cp socket.so.2.0.2  /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/socket/core.so
#cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/mime
#cd src; cp  /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/mime
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/mime
cd src; cp mime.so.1.0.2 /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/mime/core.so
Updating manifest for /usr/local/lib/luarocks/rocks

luasocket 2.0.2-5 is now built and installed in /usr/local/ (license: MIT)
Installing http://www.luarocks.org/repositories/rocks/luasocket-2.0.2-5.src.rock...
Using http://www.luarocks.org/repositories/rocks/luasocket-2.0.2-5.src.rock... switching to 'build' mode
Archive:  /private/tmp/luarocks_luarocks-rock-luasocket-2.0.2-5-2179/luasocket-2.0.2-5.src.rock
  inflating: luasocket-2.0.2-5.rockspec  
  inflating: luasocket-2.0.2.tar.gz  
cd src; make all
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o luasocket.o luasocket.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o timeout.o timeout.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o buffer.o buffer.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o io.o io.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o auxiliar.o auxiliar.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o options.o options.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o inet.o inet.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o tcp.o tcp.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o udp.o udp.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o except.o except.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o select.o select.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o usocket.o usocket.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -bundle -undefined dynamic_lookup -all_load -O -fpic -o socket.so.2.0.2 luasocket.o timeout.o buffer.o io.o auxiliar.o options.o inet.o tcp.o udp.o except.o select.o usocket.o 
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -fno-common -I/usr/local/opt/lua/include   -c -o mime.o mime.c
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -bundle -undefined dynamic_lookup -all_load -O -fpic -o mime.so.1.0.2 mime.o 
cd src; make all
make[1]: Nothing to be done for `all'.
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua
cd src; cp ltn12.lua socket.lua mime.lua /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/socket
cd src; cp http.lua url.lua tp.lua ftp.lua smtp.lua /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/socket
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/socket
cd src; cp socket.so.2.0.2  /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/socket/core.so
#cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/mime
#cd src; cp  /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lua/mime
cd src; mkdir -p /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/mime
cd src; cp mime.so.1.0.2 /usr/local/lib/luarocks/rocks/luasocket/2.0.2-5/lib/mime/core.so
Updating manifest for /usr/local/lib/luarocks/rocks

luasocket 2.0.2-5 is now built and installed in /usr/local/ (license: MIT)
Installing http://www.luarocks.org/repositories/rocks/luaexpat-1.2.0-1.src.rock...
Using http://www.luarocks.org/repositories/rocks/luaexpat-1.2.0-1.src.rock... switching to 'build' mode
Archive:  /private/tmp/luarocks_luarocks-rock-luaexpat-1.2.0-1-4018/luaexpat-1.2.0-1.src.rock
  inflating: luaexpat-1.2.0-1.rockspec  
 extracting: luaexpat-1.2.0.tar.gz   
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -I/usr/local/opt/lua/include -c src/lxplib.c -o src/lxplib.o -I/usr/local/include -Isrc/
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -bundle -undefined dynamic_lookup -all_load -o lxp.so -L/usr/local/opt/lua/lib src/lxplib.o -L/usr/local/lib -Wl,-rpath,/usr/local/lib: -lexpat
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
collect2: ld returned 1 exit status
stat: lxp.so: stat: No such file or directory

Error: Build error: Failed installing lxp.so in /usr/local/lib/luarocks/rocks/luaexpat/1.2.0-1/lib
Installing http://www.luarocks.org/repositories/rocks/luafilesystem-1.6.2-1.src.rock...
Using http://www.luarocks.org/repositories/rocks/luafilesystem-1.6.2-1.src.rock... switching to 'build' mode
Archive:  /private/tmp/luarocks_luarocks-rock-luafilesystem-1.6.2-1-9279/luafilesystem-1.6.2-1.src.rock
  inflating: luafilesystem-1.6.2-1.rockspec  
  inflating: luafilesystem-1.6.2.tar.gz  
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC -I/usr/local/opt/lua/include -c src/lfs.c -o src/lfs.o
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -bundle -undefined dynamic_lookup -all_load -o lfs.so -L/usr/local/opt/lua/lib src/lfs.o
Updating manifest for /usr/local/lib/luarocks/rocks

luafilesystem 1.6.2-1 is now built and installed in /usr/local/ 
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

    xmlwf

Consider amending your PATH so that /usr/local/bin
occurs before /usr/bin in your PATH.
La conclusion me laisse perplexe, ne sachant pas comment procéder pour corriger le chemin semblant poser problème à Homebrew. Également, qu'en est-il des dépendances LuaExpat et LuaFileSystem : sont-elles installées ? Si non, comment procéder ?

Les documentations et autres informations que je parviens à trouver sont clairement pensées pour Linux. J'espère trouver une personne apte à m'aider.

Merci beaucoup pour votre attention. :)