Installation Elixir sur MAC OS X 10.6.5

44 views
Skip to first unread message

Melo

unread,
Nov 24, 2010, 4:02:05 AM11/24/10
to freebox-elixir
Bonjour tout le monde.
Je possède un MAC et je souhaitais utiliser Elixir sur MAC OS 10.6.5.

J'ai d'abord recherché une documentation ou un tutoriel me permettant
d'atteindre mes objectifs.
Mais je n'ai trouvé aucun (Peut-être que j'ai mal cherché, j'en
doute.)

Puisse qu'aucun tutoriel n'existe, j'en ai écrit un en même temps que
j'installais les différentes librairies nécessaires à la compilation
d'Elixir sur MAC OS X.

Tout se déroulait parfaitement bien, (j'ai réussi à installer toutes
les librairies nécessaires).

Dernière ligne droite => La compilation d'Elixir,
D'après la documentation sur http://elixir.freebox.fr/?section=documentation
<< Le processus est plutôt simple >>,
Un simple configure, make, make install devrais suffire.

Eh bien non, si près du but et je n'arrive pas à terminer le processus
d'installation

Donc je demande de l'aide sur la dernière étape :

Le problème vient du .configure

===============================================================
......
checking whether to use mime type... no
checking whether SDL_mixer module is to be built... no
disabling sdl mixer module
checking for EINA... configure: error: Package requirements (eina-0)
were not met:

No package 'eina-0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables EINA_CFLAGS
and EINA_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

===============================================================



J'ai donc vérifier mon pkgconfig et
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

pico /usr/local/lib/pkgconfig/eina.pc
===============================================================
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: Eina
Description: A Library that implements fast data types and
miscellaneous tools
Requires.private:
Version: 1.0.0.beta2
Libs: -L${libdir} -leina
Libs.private: -pthread -ldl
Cflags: -I${includedir}/eina-1 -I${includedir}/eina-1/eina
===============================================================

Je pense avoir trouvé le config utilise eina-0 tandis que macports a
surement installé la dernière version eina-1.

Comment terminer l'installation d'Elixir ?




Voici le tuto que j'ai écris

== HOW TO INSTALL ELIXIR ON MAC OS X by Melo ==
Installer Elixir on MAC OS 10.6.5

1. Pré-requis
Partons du principe que vous êtes un programmeur aguerri de ce fait
comme tout programmeur
vous avez forcément installé Xcode et macports sinon passez votre
chemin.


2. Bibliothèques nécessaires.

* libjpeg
sudo port install jpeg

* libpng
sudo port install libpng

* libfreetype
sudo port install freetype

* fontconfig
sudo port install fontconfig

* gnutls
sudo port install gnutls

* libx11
sudo port install xorg-libX11

* libcurl
sudo port install curl
sudo port install curl-ca-bundle

* lua
sudo port install lua
sudo port install lua-luaexpat
sudo port install lua-luasec
sudo port install lua-luasocket

* libnspr
sudo port install nspr


3. Installez les EFL dans l'ordre

* eina
sudo port install eina

* eet
sudo port install eet

* evas
sudo port install evas

* ecore
sudo port install ecore

* embryo
sudo port install embryo

* edje
sudo port install edje

* e_dbus
sudo port install e_dbus

* efreet
sudo port install efreet

* enlightenment
sudo port install enlightenment


4. Installez SpiderMonkey

sudo port install spidermonkey

cd ~
curl -O http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz
curl -O http://svn.macports.org/repository/macports/trunk/dports/lang/spidermonkey/files/patch-jsprf.c
tar xvzf js-1.7.0.tar.gz
cd js/src
patch -p0 -i ../../patch-jsprf.c
make -f Makefile.ref
sudo su
JS_DIST=/usr/local/spidermonkey make -f Makefile.ref export
exit
sudo ranlib /usr/local/spidermonkey/lib/libjs.a

NOTE: Ne pas faire attention au message d'avertissement
ranlib: file: /usr/local/spidermonkey/lib/libjs.a(jslock.o) has no
symbols

Ajouter à .profile this line :
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/spidermonkey/
lib

Recharger ton environnement env :
. ~/.profile

sudo ln -s /usr/local/spidermonkey/include /usr/local/include/js
sudo ln -s /usr/local/spidermonkey/lib/libjs.dylib /usr/local/lib/
libjs.dylib
sudo ln -s /usr/local/spidermonkey/bin/js /usr/local/bin/js


5. Installer Elixir

Décompressez le paquet contenant les sources d'Elixir.
./configure
make
sudo make install

Reply all
Reply to author
Forward
0 new messages