Pergunta

Depois que instalei o Aptana (diretório de instalação: / usr / share / aptana)

Eu continuo recebendo erros como este:

Um erro SWT ocorreu, você é recomendada para sair da bancada. erros subsequentes podem acontecer e terminar a bancada de trabalho, sem Aviso. Consulte o arquivo de log para mais detalhes.

olhando nos logs que eu vejo isso:

! Mensagem Sem mais alças (Java.lang.UnsatisfiedLinkError: /root/.Aptana/Aptana Estúdio / configuração / org.eclipse.osgi / feixes / 72/1 / .cp / libswt-mozilla-gtk-3236.so: objeto não pode abrir compartilhada: libxpcom.so file: Nenhum tal lima ou diretório)

!STACK 0

org.eclipse.swt.SWTError: No more handles

(java.lang.UnsatisfiedLinkError: /root/.Aptana/Aptana Estúdio / configuração / org.eclipse.osgi / feixes / 72/1 / .cp / libswt-mozilla-gtk-3236.so: objeto não pode abrir compartilhada: libxpcom.so file: Nenhum tal lima ou diretório)

Bem, depois de pesquisar os fóruns e outros sites para cerca de uma hora, as pessoas sugeriram que eu instalar esses pacotes.

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

Eu tinha alguns já instalado e eu não sei se eles são realmente necessários, mas não são para você.

Depois de tudo isso ele ainda não funcionou

Foi útil?

Solução 3

este post . no post tem um arquivo você precisa baixar chamado aptana.sh .

Aqui está o código se o arquivo não está disponível:

/*************** 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 **************/

Ainda não funcionou, então eu decidi ver se o arquivo foi tentando chamar existiu. o comando para o nome do arquivo em:

localizar libgtkembedmoz.so

encontrou, então eu adicionado a condição para o script e agora ele funciona muito bem, sim !!

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

Deixe-me saber de quaisquer outros achados que possam ajudar.

Obrigado, --Phill

Outras dicas

Ubuntu 12.04 não parecem ter a qualquer arquivo libgtkembedmoz.so fora da caixa.

Você pode instalar Kompozer e usá-lo.

sudo apt-get install kompozer

export MOZILLA_FIVE_HOME=/usr/lib/kompozer

Eu usei o Criar um aplicativo Launcher no desktop e baixar o

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

Ok, então depois de muita escavação em torno achei que as necessidades Aptana libgtkembedmoz.so para executar (equipe Aptana favor corrigir isso, basta incluir o arquivo na próxima compilação favor !!!).

Trabalho em torno de:

Bem xulrunner (a nova versão) não inclui libgtkembedmoz.so arquivo. Então, depois de muito Googling eu achei que Thunderbird faz. Então eu yum install Thunderbird e foi verificar se o arquivo libgtkembedmoz.so estava lá. (BTW: versão do Thunderbird 2.0.0.18 no CentOS 5). Sim, é lá.

Então, eu tenho um script que procura o arquivo 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

torná-lo executável (chmod 755 scriptname) e correr.

Nota:

Apenas cjeck para se certificar de que você tem a versão correta do programa e / ou que as obras de caminho.

[user@machine]# ls /usr/lib/thunderbird-2.0.0.18/libgtkembedmoz.so /usr/lib/thunderbird-2.0.0.18/libgtkembedmoz.so

Então, se você tem thunerbird 2.0.0.14 por favor, faça a mudança no script também.

Espero que isso ajuda ;-)

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top