본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Successfully using firefox on a headless server

  • 1 답장
  • 1 이 문제를 만남
  • 15 보기
  • 최종 답변자: guigs

more options

Hello all

 I am running a VM with google cloud platform.  I need to run splinter (a wrapper for python selenium) to do some webscrapping on these vms, but in order for this to work I need to download firefox on each of these headless servers.
I have managed to install firefox and xvfb so I can use it headlessly.

Yet , whenever I try to run firefox (xvfb-run -a firefox)

I get the following error: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory Couldn't load XPCOM.


Does this have to do with my installation of firefox or the fact that I am running headless?

How do I fix this problem?

Hello all I am running a VM with google cloud platform. I need to run splinter (a wrapper for python selenium) to do some webscrapping on these vms, but in order for this to work I need to download firefox on each of these headless servers. I have managed to install firefox and xvfb so I can use it headlessly. Yet , whenever I try to run firefox (xvfb-run -a firefox) I get the following error: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory Couldn't load XPCOM. Does this have to do with my installation of firefox or the fact that I am running headless? How do I fix this problem?

모든 댓글 (1)

more options

That's a great question! It looks like you might have the wrong package installed version 1 instead of 2: See: *http://scraping.pro/use-headless-firefox-scraping-linux/