Instalar Amsn 0.97 en FreeBSD / PcBSD
December 28th, 2007 by BusindreFreeBSD, PcBSD y demás sistemas operativos de la familia BSD incluyen por defecto versiones muy anticuadas del cliente de mensajería msn “AMSN“. Vamos a ver como instalar la recién presentada versión de Amsn 0.97 en FreBSD / PcBSD usando el paquete de sources.
Para los interesados en el port, pueden descargarlo de: Amsn 0.97 FreeBSD
Ports que se requiere instalados (Dependencias):
Gmake
$ cd /usr/ports/devel/gmake
# make install clean
Tcllib
$ cd /usr/ports/devel/tcllib
# make install clean
Tcltls
$ cd /usr/ports/devel/tcltls/
# make install clean
Tk84
$ cd /usr/ports/x11-toolkits/tk84/
# make install clean
NOTA: Si tenemos otra versión de amsn instalada con anterioridad, dichos paquetes ya deberían estar instalados, como sabemos podemos comprobarlo mediante # pkg_info -x paquete.
Compilación de Amsn en BSD:
Descargar: http://www.amsn-project.net/download.php (TarBall Source)
Compilamos:
$ tar -xvjf amsn-0.97.tar.bz2
$ cd amsn-0.97
$ export TK_INC_SPEC=/usr/local/include/tk8.4/generic/
$ ./configure –with-tcl=/usr/local/lib/tcl8.4/ –with-tk=/usr/local/lib/tk8.4
$ gmake
NOTA: Debemos hacerlo mediante bash, para que no de error el comando export (export: Command not found.)
Editamos el fichero amsn de forma que la cabecera quede de la siguiente forma
#!/bin/sh
# \
exec wish8.4 $0
Por defecto viene de esta forma y da error al ejecutarse:
#!/bin/sh
# \
exec wish $0 $@
Ahora debemos descomentar (#) una linea para que nos permita seleccionar una imagen (Examinar) como avatar sin mostrar errores:
Linea a descomentar (Borrar almohadilla):
#set starting_dir [pwd]
Debería quedar de la siguiente forma:
set starting_dir [pwd]
Una vez editado solo queda instalarlo (Podemos probarlo primero ejecutando el binario amsn)
# gmake install
Ya podemos disfrutar en nuestro BSD de la ultima versión de amsn disponible.
Errores que podemos encontrarnos al compilar:
checking tcl build dir... configure: error: Unable to find Tcl directory or Tcl package is not tcl-dev
checking tk build dir... configure: error: Unable to find Tk directory or Tk package is not tk-dev
configure: error: You dot not have a devel package of Tk
“Makefile”, line 34: Missing dependency operator
“Makefile”, line 36: Need an operator
“Makefile”, line 41: Missing dependency operator
“Makefile”, line 43: Need an operator
“Makefile”, line 45: Need an operator
“Makefile”, line 79: Missing dependency operator
“Makefile”, line 81: Need an operator
“Makefile”, line 83: Need an operator
“Makefile”, line 105: Missing dependency operator
“Makefile”, line 107: Need an operator
“Makefile”, line 109: Need an operator
“Makefile”, line 111: Missing dependency operator
“Makefile”, line 112: warning: duplicate script for target “ifeq” ignored
“Makefile”, line 114: Unassociated shell command “endif”
“Makefile”, line 115: Need an operator
“Makefile”, line 123: Missing dependency operator
“Makefile”, line 127: Missing dependency operator
“Makefile”, line 131: Missing dependency operator
“Makefile”, line 135: Need an operator
“./utils/TkCximage/src/Rules.mk”, line 3: Missing dependency operator
“./utils/TkCximage/src/Rules.mk”, line 5: Need an operator
“./utils/TkCximage/src/Rules.mk”, line 3: Missing dependency operator
“./utils/TkCximage/src/Rules.mk”, line 5: Need an operator
“./utils/tcl_siren/src/Rules.mk”, line 8: Unassociated shell command “$(tcl_siren_dir)/src/decoder.o $(tcl_siren_dir)/src/huffman.o $(tcl_siren_dir)/src/rmlt.o
“Makefile”, line 247: Missing dependency operator
“Makefile”, line 248: Need an operator
“Makefile”, line 249: Need an operator
“Makefile”, line 250: Need an operator
“Makefile”, line 252: Missing dependency operator
“Makefile”, line 254: Need an operator
“Makefile”, line 255: Need an operator
“Makefile”, line 256: Need an operator
“Makefile”, line 257: Missing dependency operator
“Makefile”, line 258: Missing dependency operator
“Makefile”, line 260: Need an operator
“Makefile”, line 261: Need an operator
“Makefile”, line 262: Need an operator
“Makefile”, line 263: Missing dependency operator
“Makefile”, line 264: Need an operator
“Makefile”, line 265: Need an operator
“Makefile”, line 266: Need an operator
“Makefile”, line 268: Missing dependency operator
“Makefile”, line 270: Need an operator
“Makefile”, line 271: Need an operator
“Makefile”, line 272: Need an operator
“Makefile”, line 273: Need an operator
“./Compile.mk”, line 23: Missing dependency operator
“./Compile.mk”, line 25: Need an operator
“./Compile.mk”, line 27: Need an operator
“./Compile.mk”, line 37: Missing dependency operator
“./Compile.mk”, line 45: Need an operator
“./Compile.mk”, line 53: Need an operator
make: fatal errors encountered — cannot continue
exec: wish: not found
export: Command not found.
can't read "starting_dir": no such variable
while executing
“file isdirectory $starting_dir”
(procedure “chooseFileDialog” line 11)
invoked from within
“chooseFileDialog “” “” “” “” open [list [list [trans imagefiles] [list
*.gif *.GIF *.jpg *.JPG *.bmp *.BMP *.png *.PNG]] [list [trans allfiles]
*]]”
(procedure “pictureChooseFile” line 3)
invoked from within
“pictureChooseFile self”
invoked from within
“.dpbrowser.rightpane.browsebutton invoke”
(”uplevel” body line 1)
invoked from within
“uplevel #0 [list $w invoke]”
(procedure “tk::ButtonUp” line 22)
invoked from within
“tk::ButtonUp .dpbrowser.rightpane.browsebutton”
(command bound to event)
La solución a estos errores es seguir el tutorial, compilando y modificando los ficheros como se muestra.

Posted in How To |
February 5th, 2008 at 9:02 pm
Great… now, If I wish to have my port tree updated how can I update my DB?
February 8th, 2008 at 4:49 pm
Para actualizar tu arbol de ports entero tienes los comandos que se exponen en el manual:
http://www.busindre.com/freebsd-basico/
Donde pone: “Actualizar de versión los ports”
Pero si solo quieres actualizar el port de amsn ubícalo donde estaba el antiguo port.