| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
[ 1 a 15 de 387 ]
unkwown symbol libpng12
o
cannot find -lpng12
podemos resolverlo instalando la librería antigua y ejecutando un fix de Gentoo con los siguientes comandos:
/usr/sbin/libpng-1.4.x-update.sh
revdep-rebuild --library libpng12.so.0 -- -v
Normalmente ya funciona, pero si sigue dando problemas, probaremos de instalar también la librería antigua:
emerge -v1 \<libpng-1.3
revdep-rebuild --library libpng12.so.0 -- -v
/usr/sbin/libpng-1.4.x-update.sh
Si después alguna aplicación nos da un error tipo:
/bin/grep: /usr/lib/libpng12.la: No such file or directory
/bin/sed: can't read /usr/lib/libpng12.la: No such file or directory
libtool: link: `/usr/lib/libpng12.la' is not a valid libtool archive
Lo podemos resolver mirando el post de solucionar errores de archivos .la.
Con ésto ya podemos compilar nuestras aplicaciones.
Editado por Daniel el 05/08/2010 a las 12:20:35h.
/bin/grep: /usr/lib/libpng12.la: No such file or directory
/bin/sed: can't read /usr/lib/libpng12.la: No such file or directory
libtool: link: `/usr/lib/libpng12.la' is not a valid libtool archive
emerge -v libtoolfilefixer
lafilefixer --justfixitAhora ya podemos instalar nuestra aplicación.
Editado por Daniel el 04/08/2010 a las 03:17:37h.
emerge -v kde-base/oxygen-icons
print VERSION
^
SyntaxError: invalid syntax
* Messages for package dev-lang/python-3.1.1-r1:
*
* WARNING!
* Many Python modules haven't been ported yet to Python 3.
* Python 3 hasn't been activated and Python wrapper is still configured to use Python 2.
* You can manually activate Python 3.1 using `eselect python set python3.1`.
* It is recommended to currently have Python wrapper configured to use Python 2.
* Having Python wrapper configured to use Python 3 is unsupported.
*
eselect python list
eselect python set 2 # Elegir la última versión antigua, no la 3.1
python-updater
Available Python interpreters:
[1] python2.4
[2] python2.6 *
[3] python3.1
He aquí una historia explicativa sobre la crisis inmobiliaria que he recibido por correo:
Editado por Daniel el 10/06/2010 a las 05:25:32h.

Editado por Daniel el 10/06/2010 a las 05:26:05h.
class ddbb {
protected $db = false;
public function __construct( $host="localhost", $login="root", $pass="", $dbname="" ) {
if( !( $this->db = mysqli_connect($host, $login, $pass, $dbname ) ) ) {
echo "Error, no he podido conectar a la base de datos.";
return false;
}
// nuevo metodo: mysqli_query( $this->db, "SET NAMES 'utf8'");
mysqli_set_charset( $this->db, 'utf8');
return true;
}
public function query($q) {
$n = func_num_args();
if( $n > 1 ) {
$mq = get_magic_quotes_gpc();
$args = func_get_args();
$userfn = array();
$userfn[] = $q;
for( $i = 1; $i < $n; $i++ ) {
$act = $args[$i];
if( $mq ) $act = stripslashes($act);
if( !is_numeric($act) ) $act = mysqli_real_escape_string( $this->db, stripslashes($act) );
$userfn[] = $act;
}
$c = call_user_func_array('sprintf', $userfn);
$res = mysqli_query( $this->db, $c);
} else {
$res = mysqli_query( $this->db, $q);
}
if( $res === false || $res === true ) return $res;
$ret = array();
while( $act = mysqli_fetch_array($res) ) $ret[] = $act;
return $ret;
}
public function last_id() {
return mysqli_insert_id($this->db);
}
public function bool($b) {
return ( $b );
}
} // FIN
$ddbb = new ddbb("HOST", "USUARIO", "PASSWORD", "NOMBRE_BBDD");
?>
(cambiar la última línea de código con tus datos del servidor; se pueden
usar varias conexiones a varios servidores, si se desea).
include "ddbb.php";
//Modo parametrizado
$qq = $ddbb->query("SELECT `taginterno` FROM `%s` WHERE `IDitem` = %d AND `lang` = '%s' ORDER BY `taginterno`", $tabla, $id, $lang);
if($qq && isset($qq[0]) ) foreach($qq as $ff) echo $ff['taginterno'];
//Modo sin seguridad en los parametros:
$qq = $ddbb->query("SELECT `taginterno` FROM `".$tabla."` WHERE `IDitem` = ".(int) $id." AND `lang` = '".$lang."' ORDER BY `taginterno`");
if($qq && isset($qq[0]) ) foreach($qq as $ff) echo $ff['taginterno'];
?>
Editado por Daniel el 20/05/2010 a las 05:36:09h.





























Editado por Daniel el 05/01/2010 a las 15:29:11h.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
[ 1 a 15 de 387 ]