ericmckean / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

error while loading shared libraries: libnss3.so #1038

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Issue Description:
I am trying to load the chromedirver (v2.14) while using selenium. The code to 
load the same looks as follows:

    @BeforeClass
    public void setUp() throws Exception {
        System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
        driver = new ChromeDriver();
    }

But when I run the code it gives me following error:

/path/to/chromedriver: error while loading shared libraries: libnss3.so: cannot 
open shared object file: No such file or directory
Feb 16, 2015 11:49:24 AM org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 
127 (Exit value: 127)
FAILED CONFIGURATION: @BeforeClass setUp
org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new 
session. Possible causes are invalid address of the remote server or browser 
start-up failure.

Although I already have libnss3.so installed- 

~$ find /usr/lib/ -name libnss3*
/usr/lib/thunderbird/libnss3.so
/usr/lib/firefox/libnss3.so
/usr/lib/x86_64-linux-gnu/libnss3.so
/usr/lib/x86_64-linux-gnu/libnss3.so.1d

CHROME VERSION: 40.02
Chrome driver version: 2.14
Ubuntu: 12.04LTS

-----Other helpful tips:
Attach your chromedriver log with verbose logging enabled (see
http://goo.gl/5Sx8mC for how to do this).

Original issue reported on code.google.com by shoaibkh...@gmail.com on 16 Feb 2015 at 7:00

GoogleCodeExporter commented 9 years ago
it is in the subdir of /usr/lib, but not in /usr/lib
you may need define them in export LD_LIBRARY_PATH=

Original comment by andrewch...@chromium.org on 17 Feb 2015 at 7:21

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18

GoogleCodeExporter commented 9 years ago

Original comment by andrewch...@chromium.org on 10 Mar 2015 at 11:45