What's new

Entware + libpcre.so.0 error

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

WaVeR

Regular Contributor
Hi Folks,

I tried to upgrade some Entware packages and had an error
# opkg update
Downloading http://entware.wl500g.info/binaries/entware/Packages.gz.
Inflating http://entware.wl500g.info/binaries/entware/Packages.gz.
Updated list of available packages in /opt/var/opkg-lists/openwrt.
# opkg upgrade
Upgrading ldconfig on root from 0.9.32-7 to 0.9.32-8...
Downloading http://entware.wl500g.info/binaries/entware/ldconfig_0.9.32-8_entware.ipk.
Upgrading libc on root from 0.9.32-7 to 0.9.32-8...
Downloading http://entware.wl500g.info/binaries/entware/libc_0.9.32-8_entware.ipk.
Upgrading libpthread on root from 0.9.32-7 to 0.9.32-8...
Downloading http://entware.wl500g.info/binaries/entware/libpthread_0.9.32-8_entware.ipk.
Upgrading bash on root from 4.2-3 to 4.3.30-1...
Downloading http://entware.wl500g.info/binaries/entware/bash_4.3.30-1_entware.ipk.
Upgrading libpcre on root from 8.11-2 to 8.35-3...
Downloading http://entware.wl500g.info/binaries/entware/libpcre_8.35-3_entware.ipk.
Removing obsolete file /opt/lib/libpcre.so.0.
Removing obsolete file /opt/lib/libpcre.so.0.0.1.
Removing obsolete file /opt/lib/libpcreposix.so.0.0.0.
Upgrading libstdcpp on root from 4.6.4-7 to 4.6.4-8...
Downloading http://entware.wl500g.info/binaries/entware/libstdcpp_4.6.4-8_entware.ipk.
wget: can't load library 'libpcre.so.0'
Upgrading mtr on root from 0.82-1 to 0.85-1...
Downloading http://entware.wl500g.info/binaries/entware/mtr_0.85-1_entware.ipk.
wget: can't load library 'libpcre.so.0'
Upgrading libgcc on root from 4.6.4-7 to 4.6.4-8...
Downloading http://entware.wl500g.info/binaries/entware/libgcc_4.6.4-8_entware.ipk.
wget: can't load library 'libpcre.so.0'
Upgrading librt on root from 0.9.32-7 to 0.9.32-8...
Downloading http://entware.wl500g.info/binaries/entware/librt_0.9.32-8_entware.ipk.
wget: can't load library 'libpcre.so.0'
Upgrading libopenssl on root from 1.0.1g-1 to 1.0.1i-1...
Downloading http://entware.wl500g.info/binaries/entware/libopenssl_1.0.1i-1_entware.ipk.
wget: can't load library 'libpcre.so.0'
Configuring libc.
Configuring ldconfig.
Configuring libpcre.
Configuring libpthread.
Configuring bash.
Collected errors:
* opkg_download: Failed to download http://entware.wl500g.info/binaries/entware/libstdcpp_4.6.4-8_entware.ipk, wget returned 16.
* opkg_install_pkg: Failed to download libstdcpp. Perhaps you need to run 'opkg update'?
* opkg_download: Failed to download http://entware.wl500g.info/binaries/entware/mtr_0.85-1_entware.ipk, wget returned 16.
* opkg_install_pkg: Failed to download mtr. Perhaps you need to run 'opkg update'?
* opkg_download: Failed to download http://entware.wl500g.info/binaries/entware/libgcc_4.6.4-8_entware.ipk, wget returned 16.
* opkg_install_pkg: Failed to download libgcc. Perhaps you need to run 'opkg update'?
* opkg_download: Failed to download http://entware.wl500g.info/binaries/entware/librt_0.9.32-8_entware.ipk, wget returned 16.
* opkg_install_pkg: Failed to download librt. Perhaps you need to run 'opkg update'?
* opkg_download: Failed to download http://entware.wl500g.info/binaries/entware/libopenssl_1.0.1i-1_entware.ipk, wget returned 16.
* opkg_install_pkg: Failed to download libopenssl. Perhaps you need to run 'opkg update'?
# opkg update
Downloading http://entware.wl500g.info/binaries/entware/Packages.gz.
wget: can't load library 'libpcre.so.0'
Collected errors:
* opkg_download: Failed to download http://entware.wl500g.info/binaries/entware/Packages.gz, wget returned 16.
# opkg update
Downloading http://entware.wl500g.info/binaries/entware/Packages.gz.
wget: can't load library 'libpcre.so.0'
Collected errors:
* opkg_download: Failed to download http://entware.wl500g.info/binaries/entware/Packages.gz, wget returned 16.

Any idea how to solve this issue?
 
I don't know if it's the correct way but to fix the issue I created a symlink for libpcre.so.0:

cd /opt/lib
ln -s libpcre.so.1 libpcre.so.0

and retry to update/upgrade

# opkg update
Downloading http://entware.wl500g.info/binaries/entware/Packages.gz.
Inflating http://entware.wl500g.info/binaries/entware/Packages.gz.
Updated list of available packages in /opt/var/opkg-lists/openwrt.
# opkg upgrade
Upgrading libstdcpp on root from 4.6.4-7 to 4.6.4-8...
Downloading http://entware.wl500g.info/binaries/entware/libstdcpp_4.6.4-8_entware.ipk.
Upgrading mtr on root from 0.82-1 to 0.85-1...
Downloading http://entware.wl500g.info/binaries/entware/mtr_0.85-1_entware.ipk.
Upgrading libgcc on root from 4.6.4-7 to 4.6.4-8...
Downloading http://entware.wl500g.info/binaries/entware/libgcc_4.6.4-8_entware.ipk.
Upgrading librt on root from 0.9.32-7 to 0.9.32-8...
Downloading http://entware.wl500g.info/binaries/entware/librt_0.9.32-8_entware.ipk.
Upgrading libopenssl on root from 1.0.1g-1 to 1.0.1i-1...
Downloading http://entware.wl500g.info/binaries/entware/libopenssl_1.0.1i-1_entware.ipk.
Configuring libgcc.
Configuring libopenssl.
Configuring librt.
Configuring libstdcpp.
Configuring mtr.
 
Last edited:
Thanks ryzhov_al

I reinstalled 'wget' and removed the symlinc that I created.

Regards,
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top