error al instalar Zend en linux (kubuntu)

Comments     Date Arrow  June 19, 2007 at 9:20pm   User  by Gonzalo Arreche

Bueno… teniendo linux instalado en mi pc, me decido a instalar el ZendStudio, pero oops… me da algo asi como un ERROR:

gonzalo@pcgonzalo$ ./ZendStudio-5_0_0.bin
Preparing to install…
Extracting the JRE from the installer archive…
Unpacking the JRE…
Extracting the installation resources from the installer archive…
Configuring the installer for this system’s environment…
nawk: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Launching installer…

grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/tmp/install.dir.9061/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory


Oh margot !! que rayos.. ?
Me puse a googlear un rato a ver que misterio.. y parece ser una incompatibilidad de noseque mierda que no seque carajo..
Encontre una forma de arreglarlo.. es la siguiente:

gonzalo@pcgonzalo$ # crear copia de seguridad
gonzalo@pcgonzalo$ cp ZendStudio-5_0_0.bin ZendStudio-5_0_0.bin.bak
gonzalo@pcgonzalo$ # parchear
gonzalo@pcgonzalo$ cat ZendStudio-5_0_0.bin.bak | sed “s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/” > ZendStudio-5_0_0.bin

Eso parchea el instalador, y perfecto !! funciona.. pero cuando lo voy a correr… LO MISMO !!! pero la rep…
bueno.. supongo eso servira para parchear el arrancador (ZDE).. probemos.. total.. :)

gonzalo@pcgonzalo$ cp ZDE ZDE.bak
gonzalo@pcgonzalo$ cat ZDE.bak | sed “s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/” > ZDE.bin

Para mi sorpresa, si, funciona !! heeeeeeeeee !! tengo Zend en linux !!!

Para facilitaros la vida.. pueden usar el siguiente script made by mi ;)

#!/bin/bash

zend=$1

echo ” Use $0
echo ” Ejemplos:”
echo ” $0 ZendStudio-5_0_0.bin”
echo ” $0 ZDE”
exit
fiecho “Creando backup ($zend.bak) …”
cp $zend $zend.bakecho “Parcheando ($zend) …”
cat $zend.bak | \
sed “s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/” > $zend

echo “Listo.”

Y tachan !! Zend parcheado !

Tagged   linux · problemas · sistemas operativos · soluciones · utilidades