Skip to content

Linux installers: setup.py and .deb package issues - dependencies and libudev.so.0 #145

Closed
@GoogleCodeExporter

Description

@GoogleCodeExporter
Both setup.py and debian package have some issues, not everything work out of 
the box.

Get rid of steps 2 and 3 from README.txt. Automate it by adding new code that 
does these steps to setup.py > my_post_install(). That install hook already 
does some stuff like setting write/execute permissions for files. See: 
https://code.google.com/p/cefpython/source/browse/cefpython/cef3/linux/installer
/setup.py.template

Debian package runs setup.py and my_post_install() as well, so fixing it in 
setup.py will fix problem in deb package as well.

Steps 2 and 3 from README.txt:
(https://code.google.com/p/cefpython/source/browse/cefpython/cef3/linux/installe
r/README.txt.template)

    2. It may also be required to install "libnss3" and "libnspr4" dependencies:

       sudo apt-get install libnss3-1d libnspr4-0d

    3. On Ubuntu 12 everything should work out of the box. But on Ubuntu 13,
       Ubuntu 14, Fedora 20 and possibly some other OS'es there may be issues
       with wrong version of libudev library. For example to fix it on Ubuntu
       64bit it is required to create a symbolic link "libudev.so.0" to
       the "libudev.so.1" library with this command:

       cd /lib/x86_64-linux-gnu/
       sudo ln -sf libudev.so.1 libudev.so.0

       The path to libudev.so.1 may be different on other OS'es, see:
       * Ubuntu, Xubuntu, Mint - /lib/x86_64-linux-gnu/
       * SUSE, Fedora - /usr/lib64/
       * Arch, Fedora 32bit - /usr/lib/
       * Ubuntu 32bit - /lib/i386-linux-gnu/

Add code like this for steps 2 and 3:

    subprocess.call("sudo apt-get install libnss3-1d libnspr4-0d", shell=True)
    dirs = ["/lib/x86_64-linux-gnu", "/usr/lib64", "/usr/lib", "/lib/i386-linux-gnu"]
    for dir in dirs:
        if os.path.exists(dir+"/libudev.so.1") and not os.path.exists(dir+"/libudev.so.0"):
            os.chdir(dir)
            subprocess.call("sudo ln -sf libudev.so.1 libudev.so.0", shell=True)

Original issue reported on code.google.com by [email protected] on 1 Dec 2014 at 10:02

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions