Question

Après avoir installé Aptana (répertoire d'installation: / usr / share / Aptana)

Je continue à obtenir des erreurs comme ceci:

  

Une erreur SWT est produite, vous êtes   recommandé de quitter la table de travail.   les erreurs suivantes peuvent se produire et   mettre fin à l'établi sans   Attention. Voir le fichier .log pour plus   détails.

recherche dans les journaux que je vois ceci:

  

MESSAGE Plus de poignées   (Java.lang.UnsatisfiedLinkError:   /root/.Aptana/Aptana   Studio / configuration / org.eclipse.osgi / faisceaux / 72/1 / .cp / libswt-mozilla-gtk-3236.so:   libxpcom.so: ne peut pas ouvrir objet partagé   fichier: Aucun fichier ou répertoire)

!STACK 0

org.eclipse.swt.SWTError: No more handles
     

(java.lang.UnsatisfiedLinkError:   /root/.Aptana/Aptana   Studio / configuration / org.eclipse.osgi / faisceaux / 72/1 / .cp / libswt-mozilla-gtk-3236.so:   libxpcom.so: ne peut pas ouvrir objet partagé   fichier: Aucun fichier ou répertoire)

Eh bien, après la recherche sur les forums et autres sites pendant environ une heure, les gens ont suggéré installer ces paquets.

* yum install gtk2-devel
* yum install xulrunner
* yum install libstdc*
* yum install gtk2*
* yum install libswt3-gtk2*
* yum install compat-libstdc++-33 

J'avais déjà installé une partie et je ne sais pas si elles sont vraiment nécessaires, mais ils sont là pour vous.

Après tout cela ne fonctionne toujours pas

Était-ce utile?

La solution 3

Je suis tombé sur cette post. dans le poste qu'il a un fichier, vous devez télécharger appelé aptana.sh .

Voici le code si le fichier ne sont pas disponibles:

/*************** 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 fonctionnait toujours pas j'ai décidé de voir si le fichier qu'il a essayé d'appeler existait. la commande pour le nom du fichier dans:

situer libgtkembedmoz.so

il 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

Permettez-moi de toute autre conclusion qui pourrait aider.

Merci, --Phill

Autres conseils

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

Vous pouvez installer kompozer et de l'utiliser.

sudo apt-get install kompozer

export MOZILLA_FIVE_HOME=/usr/lib/kompozer

J'ai utilisé 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 install libswt3-GTK2 *
  • yum install compat-libstdc ++ - 33

Bon alors après beaucoup de creuser autour j'ai trouvé qui a besoin Aptana libgtkembedmoz.so pour exécuter (é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 !!!).

Contournez:

Eh bien XULRunner (la nouvelle version) ne comprend pas libgtkembedmoz.so fichier. Donc, après avoir beaucoup googler trouvé que le fait Thunderbird. Donc, je yum installer thunderbird et je suis allé vérifier si le fichier libgtkembedmoz.so était là. (BTW: la version 2.0.0.18 thunderbird sur CentOS 5). Oui, ce qui 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.

[user@machine]# 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 cette aide ;-)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top