chromedriver:ubuntu 14.04 64 位上缺少各种库依赖项 [英] chromedriver: various lib dependencies are missing on ubuntu 14.04 64-bit

查看:56
本文介绍了chromedriver:ubuntu 14.04 64 位上缺少各种库依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在尝试运行从

 wget http://chromedriver.storage.googleapis.com/2.20/chromedriver_linux64.zip

在我的 ubuntu 14.04 上

and on my ubuntu 14.04

 x86_64 x86_64 x86_64 GNU/Linux

我收到以下消息

./chromedriver: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

进一步挖掘我发现它缺少了一大堆.

digging in further I see that it's missing a whole bunch.

me@me:/var/chrome# ldd ./chromedriver
        linux-vdso.so.1 =>  (0x00007ffc0e5aa000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f472eb63000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f472e95f000)
        libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f472e70e000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f472e406000)
        libnss3.so => not found
        libnssutil3.so => not found
        libsmime3.so => not found
        libnspr4.so => not found
        libgconf-2.so.4 => not found
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f472e0d1000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 

(0x00007f472ddcd000)
            libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f472dac7000)
            libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f472d8b1000)
            libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f472d693000)
            libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f472d2ce000)
            /lib64/ld-linux-x86-64.so.2 (0x00007f472ed6b000)
            libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f472d0c6000)
            libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f472ce88000)
            libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f472cc69000)
            libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f472ca65000)
            libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f472c85f000)

那么我在哪里可以找到丢失的文件?

So where can I Get the missing files?

推荐答案

我需要使用 apt/apt-get 安装以下软件包:

I needed the following packages installed with apt/apt-get:

  • libglib2.0-0
  • libnss3
  • libx11-6

我一直在 Ubuntu 16.04 上工作,所以这可能需要对 14.04 稍作调整.根据您安装的精简程度,您可能还需要 libpcre 或 libstdc++,但它们可能已经与其他软件包一起提供.

I've been working on Ubuntu 16.04, so this might need slight adjustment for 14.04. Depending on how stripped down your installation is, you might also need libpcre or libstdc++, but they have probably already come with other packages.

您可能还需要安装 chrome,它应该会带上这些包.

You will probably also need to install chrome, which should bring those packages in anyway.

这篇关于chromedriver:ubuntu 14.04 64 位上缺少各种库依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆