문제

Aptana를 설치한 후(설치 디렉터리:/usr/share/aptana )

다음과 같은 오류가 계속 발생합니다.

SWT 오류가 발생했으며 워크 벤치를 종료하는 것이 좋습니다.후속 오류가 발생할 수 있으며 경고없이 워크 벤치를 종료합니다.자세한 내용은 .log 파일을 참조하십시오 세부 정보.

로그를 보면 다음과 같습니다.

! 메시지 더 이상 핸들이 없습니다. (java.lang.UnsatisfiedLinkError:/뿌리/. 압타나/압타나 Studio / configuration / org.eclipse.osgi / bundles / 72 / 1 / .cp / libswt-mozilla-gtk-3236.so :libxpcom.so:공유 객체를 열 수 없습니다. 파일:해당 파일이나 디렉터리 없음)

!STACK 0

org.eclipse.swt.SWTError: No more handles

(java.lang.UnsatisfiedLink오류:/뿌리/. 압타나/압타나 Studio / configuration / org.eclipse.osgi / bundles / 72 / 1 / .cp / libswt-mozilla-gtk-3236.so :libxpcom.so:공유 객체를 열 수 없습니다. 파일:해당 파일이나 디렉터리 없음)

약 한 시간 동안 포럼과 다른 사이트를 검색한 후 사람들은 이 패키지를 설치하라고 제안했습니다.

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

일부는 이미 설치되어 있는데 실제로 필요한지 여부는 알 수 없지만 여러분을 위한 것입니다.

결국 여전히 작동하지 않았습니다.

도움이 되었습니까?

해결책 3

나는 우연히 만났다 이 게시물.게시물에는 다운로드해야 하는 파일이 있습니다. aptana.sh.

파일을 사용할 수 없는 경우 코드는 다음과 같습니다.

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

그래도 작동하지 않아서 호출하려는 파일이 존재하는지 확인하기로 결정했습니다.파일 이름에 대한 명령은 다음과 같습니다.

libgtkembedmoz.so를 찾으세요.

그것을 찾아서 스크립트에 조건을 추가했는데 이제 훌륭하게 작동합니다. 예!!

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

도움이 될 수 있는 다른 결과를 알려주십시오.

감사 --필

다른 팁

Ubuntu 12.04에는 기본적으로 libgtkembedmoz.so 파일이 없는 것 같습니다.

kompozer를 설치해서 사용하시면 됩니다.

sudo apt-get install kompozer

export MOZILLA_FIVE_HOME=/usr/lib/kompozer

데스크톱에서 Create a Launcher 애플리케이션을 사용하고

  • 냠 설치 gtk2-devel
  • 냠 xulrunner를 설치하세요
  • 냠 libstdc* 설치
  • 냠 설치 gtk2*
  • 냠 설치 libswt3-gtk2*
  • 냠 설치 compat-libstdc++-33

좋습니다. 많은 조사 끝에 Aptana를 실행하려면 libgtkembedmoz.so가 필요하다는 사실을 발견했습니다(Aptana 팀에서 이 문제를 해결해 주세요. 다음 빌드에 해당 파일을 포함시켜 주세요!!!).

해결 방법:

xulrunner(새 버전)에는 libgtkembedmoz.so 파일이 포함되어 있지 않습니다.그래서 많은 인터넷 검색 끝에 Thunderbird가 그런 기능을 한다는 것을 알았습니다.그래서 나는 YUM Thunderbird를 설치하고 libgtkembedmoz.so 파일이 있는지 확인하러갔습니다.(지금:CentOS 5의 Thunderbird 버전 2.0.0.18).응, 거기 있어.

그래서 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

실행 가능하게 만들고(chmod 755 스크립트 이름) 실행합니다.

메모:

프로그램의 올바른 버전이 있는지 및/또는 경로가 작동하는지 확인하기만 하면 됩니다.

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

따라서 thunerbird 2.0.0.14를 사용하는 경우 스크립트도 변경하시기 바랍니다.

도움이 되었기를 바랍니다 ;-)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top