2009-05-12 7 views
2

Après avoir installé Aptana (répertoire d'installation:/usr/share/Aptana)Aptana installer problème avec Linux (CentsOS 5)

Je continue à obtenir des erreurs comme ceci:

An SWT Error has occurred, you are recommended to exit the workbench. Subsequent errors may happen and terminate the workbench without warning. See the .log file for more details.

regardant dans les journaux I voir ceci:

!MESSAGE No more handles (java.lang.UnsatisfiedLinkError: /root/.Aptana/Aptana Studio/configuration/org.eclipse.osgi/bundles/72/1/.cp/libswt-mozilla-gtk-3236.so: libxpcom.so: cannot open shared object file: No such file or directory)

!STACK 0 

org.eclipse.swt.SWTError: No more handles 

(java.lang.UnsatisfiedLinkError: /root/.Aptana/Aptana Studio/configuration/org.eclipse.osgi/bundles/72/1/.cp/libswt-mozilla-gtk-3236.so: libxpcom.so: cannot open shared object file: No such file or directory)

Bien après avoir recherché les forums et autres sites pendant environ une heure, les gens ont suggéré d'installer ces paquets. J'ai eu quelques-uns déjà installés et je ne sais pas s'ils sont vraiment requis mais ils sont là pour vous.

Après tout cela ne fonctionne toujours pas

Répondre

0

je suis tombé sur this post. dans le message, il a un fichier que vous devez télécharger appelé aptana.sh.

Voici le code si le fichier n'est pas disponible:

/*************** START OF FILE **************/ 

#!/bin/bash 

# Set path for the Mozilla SWT binding 

MOZILLA_FIVE_HOME=${MOZILLA_FIVE_HOME%*/} 
if false && [ -n "$MOZILLA_FIVE_HOME" -a -e $MOZILLA_FIVE_HOME/libgtkembedmoz.so ]; then 
: 
elif [ -e /usr/lib/mozilla/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/mozilla 
elif [ -e /usr/lib/firefox/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/firefox 
elif [ -e /usr/lib/xulrunner/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/xulrunner 
elif [ -e /usr/lib/mozilla-firefox/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox 
elif [ -e /usr/lib/mozilla/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/mozilla 
else 
$DIALOGW \ 
--title="Integrated browser support not working" \ 
--text="This Eclipse build doesn't have support for the integrated browser." 
[ $? -eq 0 ] || exit 1 
fi 
# libraries from the mozilla choosen take precedence 
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} 

# Do the actual launch of Aptana Studio 
exec ./AptanaStudio 


/*************** END OF FILE **************/ 

ne fonctionne toujours pas que je donc décidé de voir si le fichier qu'il a essayé d'appeler existait. la commande pour le nom du fichier dans:

localiser libgtkembedmoz.so

a trouvé donc j'ajouté la condition au script et maintenant il fonctionne très bien, YEAH !!

elif [ -e /usr/lib/esc-1.0.0/xulrunner/libgtkembedmoz.so ]; then export MOZILLA_FIVE_HOME=/usr/lib/esc-1.0.0/xulrunner

Laissez-moi des autres résultats qui pourraient aider.

Merci, --Phill

+0

FireFox 3.0.7 ci-dessous est ce Pauses une solution de contournement –

0

Bon alors après beaucoup de creuser autour, je trouve que Aptana a besoin pour exécuter libgtkembedmoz.so (équipe Aptana s'il vous plaît résoudre ce problème, il suffit d'inclure le fichier dans la version suivante s'il vous plaît !!!) .

travail autour:

bien XULRunner (la nouvelle version) ne comprend pas libgtkembedmoz.so fichier. Donc, après beaucoup de googler, j'ai trouvé que Thunderbird fait. Donc j'ai YUM installer thunderbird et est allé vérifier si le fichier libgtkembedmoz.so était là. (BTW: Thunderbird version 2.0.0.18 sur CentOS 5). Ouais c'est là.

J'ai donc un script qui recherche le fichier libgtkembedmoz.so

#!/bin/bash 

# Set path for the Mozilla SWT binding 
MOZILLA_FIVE_HOME=${MOZILLA_FIVE_HOME%*/} 
if false && [ -n "$MOZILLA_FIVE_HOME" -a -e $MOZILLA_FIVE_HOME/libgtkembedmoz.so ]; then 
: 
elif [ -e /usr/lib/mozilla/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/mozilla 
elif [ -e /usr/lib/firefox/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/firefox 
elif [ -e /usr/lib/xulrunner/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/xulrunner 
elif [ -e /usr/lib/esc-1.0.0/xulrunner/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/esc-1.0.0/xulrunner 
elif [ -e /usr/lib/mozilla-firefox/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox 
elif [ -e /usr/lib/mozilla/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/mozilla 
elif [ -e /usr/lib/thunderbird-2.0.0.18/libgtkembedmoz.so ]; then 
export MOZILLA_FIVE_HOME=/usr/lib/thunderbird-2.0.0.18 
else 
$DIALOGW \ 
--title="Integrated browser support not working" \ 
--text="This Eclipse build doesn't have support for the integrated browser." 
[ $? -eq 0 ] || exit 1 
fi 

# libraries from the mozilla choosen take precedence 
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} 

# Do the actual launch of Aptana Studio 
exec ./AptanaStudio 

rendre exécutable (chmod 755 scriptname) et exécuter.

Note:

Juste cjeck pour vous assurer que vous avez la bonne version du programme et/ou que le chemin fonctionne.

[[email protected]]# ls /usr/lib/thunderbird-2.0.0.18/libgtkembedmoz.so /usr/lib/thunderbird-2.0.0.18/libgtkembedmoz.so

Donc, si vous avez thunerbird 2.0.0.14 s'il vous plaît faire aussi bien le changement dans le script.

Hope this aide ;-)

3

Ubuntu 12.04 ne semble pas avoir le fichier libgtkembedmoz.so partout hors de la boîte.

Vous pouvez installer kompozer et l'utiliser.

sudo apt-get install kompozer 

export MOZILLA_FIVE_HOME=/usr/lib/kompozer 
+0

Après (unsuccesfully) en essayant toutes les autres choses, je peux dire en utilisant Nvu a travaillé pour moi. Merci! –

1

J'utilise Créer une application de lancement sur le bureau et télécharger le

  • yum install gtk2-devel
  • yum install XULRunner
  • yum install libstdc *
  • yum install GTK2 *
  • yum installer libswt3-gtk2 *
  • yum installer compat-libstdC++ - 33
Questions connexes