h1

Errores Perl: REQUIRED module missing: Net::DNS REQUIRED module missing: NetAddr::IP

13/12/2010

Compilando Spamassasin puede ocurrir el siguiente error:

REQUIRED module missing: Net::DNS
REQUIRED module missing: NetAddr::IP
optional module missing: Digest::SHA1
optional module missing: Mail::SPF
optional module missing: IP::Country
optional module missing: Razor2
optional module missing: Net::Ident
optional module missing: IO::Socket::INET6
optional module missing: IO::Socket::SSL
optional module missing: Mail::DKIM
optional module missing: DBI
optional module missing: Encode::Detect

En Ubuntu/Debian los «required» se solucionan instalando las correspondientes librerías de Perl:
$ apt-get install libnet-dns-perl libnetaddr-ip-perl

Fuente: HowtoForge forums

h1

aMsn error: utils/farsight/src/tcl_farsight.c:19:42: error: gst/interfaces/propertyprobe.h: No existe el archivo o directorio

11/12/2010

Al compilar aMsn puede ocurrir el siguiente error:

carlos@pc03:~/downloads/amsn-0.98.4$ make
CC utils/farsight/src/tcl_farsight.o
utils/farsight/src/tcl_farsight.c:19:42: error: gst/interfaces/propertyprobe.h: No existe el archivo o directorio
utils/farsight/src/tcl_farsight.c:20:37: error: gst/interfaces/xoverlay.h: No existe el archivo o directorio
utils/farsight/src/tcl_farsight.c: In function ‘_test_source’:
utils/farsight/src/tcl_farsight.c:584: error: ‘GstPropertyProbe’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c:584: error: (Each undeclared identifier is reported only once
utils/farsight/src/tcl_farsight.c:584: error: for each function it appears in.)
utils/farsight/src/tcl_farsight.c:584: error: ‘probe’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c: In function ‘set_window_xid’:
utils/farsight/src/tcl_farsight.c:1839: error: ‘GstXOverlay’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c:1839: error: ‘xov’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c: In function ‘_bus_callback’:
utils/farsight/src/tcl_farsight.c:1882: error: ‘GST_TYPE_X_OVERLAY’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c: In function ‘Farsight_Probe’:
utils/farsight/src/tcl_farsight.c:3854: error: ‘GstPropertyProbe’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c:3854: error: ‘probe’ undeclared (first use in this function)
make: *** [utils/farsight/src/tcl_farsight.o] Error 1

Se soluciona instalando estas librerías:
root@pc03:/# apt-get install libgupnp-igd-1.0-dev gstreamer0.10-plugins-base-dbg libgstreamer-plugins-base0.10-dev

h1

Error tkConfig.sh No such file or directory

11/12/2010

Si al compilar aMsn ocurre el siguiente error:

./configure: line 3686: /usr/lib/tkConfig.sh: No such file or directory

se soluciona instalando las librerías de desarrollo de TCL/TK

carlos@pc02:/$ sudo apt-get install tk8.5-dev tcl8.5-dev

h1

Java error: Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar

12/11/2010

Si ocurre este error:

carlos@adscompc02:~/master/gimi/Distrib/InstanceMatcher$ ant build
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar
Buildfile: build.xml
build:
[javac] Compiling 2 source files to /home/carlos/master/gimi/Distrib/InstanceMatcher/build/classes
BUILD FAILED
/home/carlos/master/gimi/Distrib/InstanceMatcher/build.xml:43: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
Total time: 0 seconds

Se soluciona localizando el paquete «tools.jar» y copiándolo a la ubicación donde «ant» lo está buscando:

carlos@adscompc02:~/master/gimi/Distrib/InstanceMatcher$ sudo find / -name tools.jar
/usr/lib/jvm/java-6-sun-1.6.0.22/lib/tools.jar
/usr/lib/jvm/java-1.5.0-gcj-4.4/lib/tools.jar
carlos@adscompc02:~/master/gimi/Distrib/InstanceMatcher$ sudo cp /usr/lib/jvm/java-6-sun-1.6.0.22/lib/tools.jar /usr/lib/jvm/java-6-openjdk/jre/lib/

h1

Errores Latex «I can’t find file ptmr7t» y «File stfloats.sty not found»

12/10/2010

Utilizando el editor de textos Latex, se pueden producir los siguientes problemas atendibles con las correspondientes soluciones:

#1
kpathsea: Running mktexmf ptmr7t
! I can't find file `ptmr7t'.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr7t
Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr7t

Solución:
$ sudo apt-get install texlive-fonts-recommended
$ sudo apt-get install texlive-fonts-extra

#2
! LaTeX Error: File `stfloats.sty' not found.

Solución:
$ sudo apt-get install texlive-latex-extra

#3
! LaTeX Error: File `IEEEtran.cls' not found.

Solución:
$ sudo apt-get install texlive-publishers

h1

wget no descarga RSS de Google News

14/09/2010

Si al intentar descargar un RSS o contenido de Internet por wget se produce en siguiente error:

carlos@adscompc02:~/Descargas$ wget "http://news.google.es/news?pz=1&cf=all&ned=es&hl=es&output=rss"
--2010-09-14 11:51:23-- http://news.google.es/news?pz=1&cf=all&ned=es&hl=es&output=rss
Resolviendo news.google.es... 209.85.227.147, 209.85.227.105, 209.85.227.104, ...
Conectando a news.google.es|209.85.227.147|:80... conectado.
Petición HTTP enviada, esperando respuesta... 403 Forbidden
2010-09-14 11:51:23 ERROR 403: Forbidden.

es debido a que el servidor web está configurado para rechazar las conexiones de clientes con User-agent «wget» ó similares «wget123», etc. Se soluciona cambiando el User-agent de wget:

carlos@adscompc02:~/Descargas$ wget -U hola "http://news.google.es/news?pz=1&cf=all&ned=es&hl=es&output=rss"
--2010-09-14 11:52:49-- http://news.google.es/news?pz=1&cf=all&ned=es&hl=es&output=rss
Resolviendo news.google.es... 209.85.227.106, 209.85.227.99, 209.85.227.103, ...
Conectando a news.google.es|209.85.227.106|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 51756 (51K) [application/xml]
Guardando en: «news?pz=1&cf=all&ned=es&hl=es&output=rss.7»

100%[===============================================>] 51.756 --.-K/s en 0,06s

2010-09-14 11:52:50 (790 KB/s) - «news?pz=1&cf=all&ned=es&hl=es&output=rss.7» guardado [51756/51756]

h1

Modificar imagenes en batch en Linux

06/09/2010

Si se desea modificar fotografías en bloque en GNU/Linux de manera rápida, se puede utilizar la herramienta imagemagick :

sudo apt-get install imagemagick

Instalada, se pueden utilizar varias opciones para modificar las imagenes de un directorio facil, rápidamente y en bloque:

mogrify -resize 640 *.jpg
convert image.jpg newImage.gif
convert -quality 80% *.jpg
convert -resize 750×500 *.jpg
convert -resize 750×500 -quality 80% *.jpg

Fuentes: Smokinglinux, Codejacked.

h1

Error mod_jw_srfr/includes/simplepie/simplepie.inc on line 7804 utilizando JoomlaWorks Simple RSS Feed Reader Module v2.1 for Joomla

05/09/2010

Si utilizando «JoomlaWorks Simple RSS Feed Reader Module v2.1 for Joomla! 1.5» ocurre el siguiente error:

Warning: file_get_contents(http:) [function.file-get-contents]: failed to open stream: No such file or directory in /home1/cdsclmco/public_html/modules/mod_jw_srfr/includes/simplepie/simplepie.inc on line 7804

es facilmente solucionable editando la lista de URLs de RSS’s y eliminando la última línea, que está en blanco.

h1

Joomla, Warning imagettftext() [function.imagettftext] Could not find/open font in /var/www/myuidigitalframe/plugins/content/text2imagehelper.php on line 77

31/08/2010

Utilizando el plugin «text2image» de Joomla (el cual convierte texto a imagen) puede ocurrir el siguiente error:

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/myuidigitalframe/plugins/content/text2imagehelper.php on line 77

se soluciona aplicando los siguientes pasos:

1º) Crear en la raíz de Joomla un directorio llamado «fonts«.
2º) Copiar en él las fuentes TTF que se deseen.
3º) En la configuración del Plugin (Panel de administración de Joomla > Extensiones > Gestor de plugins > Content – text2image) rellenar las siguientes variables:

"Font folder" ="/fonts/"
"Font name" = "LiberationSans-Italic". (por ejemplo, corresponderá al nombre de una de las fuentes copiadas en el segundo punto).

Verificar que el módulo está activo («Publicado = SI»), guardar los cambios e incluir el siguiente texto en un artículo:
{"plugin": "text2image", "id": "my-textimage", "text": "My styled text"}

h1

Como extraer audio de un MP4 (MP4 a MP3)

19/06/2010

Si se desea extraer el audio de un video en formato MP4, en GNU/Linux se puede utilizar el siguiente sencillo método:

Instalar «faad» y «lame»: carlos@WhenIGrewUp:~$ sudo apt-get install faad lame Ejecutar este comando: carlos@WhenIGrewUp:~$ faad  -o - miVideoOrigen.MP4| lame - miCancionDestino.mp3

Fuente: ScottKlarr