Instalar Erlang en Mac
Posted by Alberto - 06/11/09 at 12:11:01 amEn primer lugar es necesario instalar XCode, para tener el compilador GCC. Despues, estos son los pasos que hay que seguir:
1. Bajar la última versión de Erlang. En mi caso, descargué la R13B02-1, obteniendo un fichero llamado otp_src_R13B02-1.tar.gz
2. Tras descomprimir el fichero:
$ cd otp_src_R12B-2
$. /configure
$ make
$ sudo make install
Estos son los pasos estandar, pero en mi caso tuve un problema con el comando “make”. El error que obtenía era el siguiente:
gen/wxe_events.cpp: In function ‘void initEventTable()’:
gen/wxe_events.cpp:277: error: ‘wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN’ was not declared in this scope
gen/wxe_events.cpp:278: error: ‘wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP’ was not declared in this scope
gen/wxe_events.cpp:279: error: ‘wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN’ was not declared in this scope
gen/wxe_events.cpp:280: error: ‘wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP’ was not declared in this scope
gen/wxe_events.cpp:281: error: ‘wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSED’ was not declared in this scope
gen/wxe_events.cpp:282: error: ‘wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE’ was not declared in this scope
gen/wxe_events.cpp:283: error: ‘wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK’ was not declared in this scope
make[4]: *** [i386-apple-darwin9.8.0/wxe_events.o] Error 1
make[3]: *** [release] Error 2
make[2]: *** [release] Error 2
make[1]: *** [release] Error 2
make: *** [install.libs] Error 2
La solución fue compilar Erlang descativando el soporte para wxwidgets, así que los pasos que tuve que seguir fueron:
$ cd otp_src_R12B-2
$. /configure
$ touch lib/wx/SKIP
$ make
$ sudo make install
Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds.
Valid XHTML and CSS.


