• Resolved leonhedding

    (@leonhedding)


    I get thie following error when running any of the cwebp-linux* files on my shared hosting. Using webfaction and CentOS 7.

    error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

    I can compile the file from source, but then the plugin does not see that it is installed properly.

    https://ww.wp.xz.cn/plugins/ewww-image-optimizer/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter leonhedding

    (@leonhedding)

    It appears that my server has libpng15.so.0 installed instead of version 12.

    Plugin Author nosilver4u

    (@nosilver4u)

    Did you install it with ‘make install’ at the end when you compiled it?

    Thread Starter leonhedding

    (@leonhedding)

    I don’t have root access to the server so that won’t work. I have to manually copy them into the wp-content/ewww directory which I have done.

    Plugin Author nosilver4u

    (@nosilver4u)

    ah, ok. Then copy it to ewww/cwebp-custom

    Thread Starter leonhedding

    (@leonhedding)

    I have already done that. It still says it is missing.

    Plugin Author nosilver4u

    (@nosilver4u)

    Hmm, that’s strange, can you post the debug information when you have your compiled version in the ewww/ folder via pastebin.com please?
    You’ll need to turn on the debugging option, then scroll to the bottom of the settings page to see the debug information.

    Thread Starter leonhedding

    (@leonhedding)

    Here is the pastebin link.

    http://pastebin.com/nCSLZ2mr

    Plugin Author nosilver4u

    (@nosilver4u)

    What is the filesize of your cwebp-custom?

    Thread Starter leonhedding

    (@leonhedding)

    7868 bytes.

    Plugin Author nosilver4u

    (@nosilver4u)

    Ah, that’s why it won’t work, the plugin checks to be sure it is at least 15000 bytes.

    I just ran the compile on my local machine, and I get the same filesize. The only problem is it doesn’t have any JPG or PNG support (which makes it kind of useless). Re-run the configure script, and see what you get at the end for JPEG and PNG support.

    Mine looks something like this:

    Tools:
    cwebp : yes
      Input format support
      ====================
      JPEG : no
      PNG  : no
      TIFF : no
      WIC  : no

    The problem is that the libpng and libjpeg header/development files aren’t present, which is necessary to compile in JPEG and PNG support.
    I’ll fire up a centos7 system myself and see what I can come up with.

    Plugin Author nosilver4u

    (@nosilver4u)

    The first thing I would recommend is to see if they will install libpng12 for you. It’s available from the standard repository, so nothing special needed.

    Plugin Author nosilver4u

    (@nosilver4u)

    Beyond that, you could fire up a centos7 VPS with someone like Digital Ocean, install the build tools, and the libpng and libjpeg dev packages, compile it, and then copy it over to your webserver. But by the time you do all that, you might be better off just using our API (https://ewww.io/plans/) if you really want WebP.
    As a bonus, webp creation doesn’t cost extra, even though it is an extra image generation. So you only pay for the stuff you optimize, not for the extra webp images.

    Thread Starter leonhedding

    (@leonhedding)

    I discovered the precompiled webp binary files here https://downloads.webmproject.org/releases/webp/libwebp-0.5.0-linux-x86-64.tar.gz which worked like a champ. Copied into the ewww directory and called it cwep-custom.

    Plugin Author nosilver4u

    (@nosilver4u)

    Good find, I should have thought to try that. I’ll have to remember that for the next person.

    Plugin Author nosilver4u

    (@nosilver4u)

    Good news, the next version of EWWW will have a fully static version of cwebp, so it should work on nearly every linux server out there. I tested it on all currently supported versions of Ubuntu, Debian, CentOS, 32 & 64 bit.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘cwebp not working’ is closed to new replies.