What's new

Installed entware - many things cant load libc.so.6

  • 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!

Turgut Kalfaoglu

Regular Contributor
Hi.. I installed entware on my AC68U following the
https://github.com/Entware/Entware/wiki/Install-on-Asus-stock-firmware
installation guide.
However now many commands complain of missing libc.so.6 like ipkg and named and transmission Any ideas?

example launch:
s# /opt/etc/init.d/S50downloadmaster start
cat: can't open '/tmp/dm_mount_path_n': No such file or directory
check DM2 start
dm2_ipk is OK
check DM2 end
killall: dm2_transmission-daemon: no process killed
killall: dm2_amuled: no process killed
killall: dm2_nzbget: no process killed
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
./dm2_nzbget: '/opt/lib/libstdc++.so.6' library contains unsupported TLS
/opt/bin/dm2_amuled: '/opt/lib/libstdc++.so.6' library contains unsupported TLS
./dm2_transmission-daemon: can't load library 'libc.so.6'
/opt/bin/dm2_amuled: can't load library 'libc.so.6'
./dm2_nzbget: can't load library 'libc.so.6'
/opt/bin/dm2_amulecmd: '/opt/lib/libstdc++.so.6' library contains unsupported TLS
/opt/bin/dm2_amulecmd: can't load library 'libc.so.6'
cat: can't open '/tmp/asus_router.conf': No such file or directory
cat: can't open '/tmp/asus_router.conf': No such file or directory
cat: can't open '/tmp/asus_router.conf': No such file or directory
cat: can't open '/tmp/asus_router.conf': No such file or directory
cat: can't open '/tmp/asus_router.conf': No such file or directory
cat: can't open '/tmp/asus_router.conf': No such file or directory
check asuslighttpd start
asuslighttpd_ipk is OK
check asuslighttpd end
killall: asus_lighttpd: no process killed
./asus_lighttpd: '/opt/lib/libc.so.6' library contains unsupported TLS
./asus_lighttpd: can't load library 'libc.so.6'
turgut@RT-AC68U-75C8:/jffs#
 
Last edited:
Followup -- I renamed /opt/asusware.arm to something else and told the router to do a factory reset..
Now I have a brand new /opt/asusware.arm directory :)
 
What firmware are you running?

Flash RMerlin 384.16_0 and do a full reset/Initialize all settings and also format the USB drive you have in a PC before you plug it into the newly formatted router.

Now, using PuTTY and ssh, use amtm (the preferred and official method) to install Entware properly. :)
 
When installing Entware on a stock Asus router the /opt directory is a symbolic link that points to the mounted USB. I have had issues getting Entware to run with the scripts embedded in nvram so I have used another script method. Will look it up and post later.

Edit:
Before installing Entware I create a script called post-mount in /jffs/ to mount the USB
Code:
#!/bin/sh
swapon /dev/sda1
# recreate the opt dir after every reboot
mkdir /tmp/opt
# where /dev/sdX# is your usb opt partition
mount /dev/sda2 /tmp/opt
sleep 2
ln -sf \$1 /tmp/opt
/opt/etc/init.d/rc.unslung start
I use a USB formated to EXT4 but you may need to use EXT2 or 3. I also create a swap partition on the USB which is my sda1. (I have an old how to for a swap file on stock Asus here: https://www.snbforums.com/threads/add-swap-to-usb-drive-on-asus-router.46911/)
To run the script at boot/USB insertion:
Code:
nvram set script_usbmount="/jffs/post-mount"
nvram commit
 
Last edited:
When installing Entware on a stock Asus router the /opt directory is a symbolic link that points to the mounted USB. I have had issues getting Entware to run with the scripts embedded in nvram so I have used another script method. Will look it up and post later.

Edit:
Before installing Entware I create a script called post-mount in /jffs/ to mount the USB
Code:
#!/bin/sh
swapon /dev/sda1
# recreate the opt dir after every reboot
mkdir /tmp/opt
# where /dev/sdX# is your usb opt partition
mount /dev/sda2 /tmp/opt
sleep 2
ln -sf \$1 /tmp/opt
/opt/etc/init.d/rc.unslung start
I use a USB formated to EXT4 but you may need to use EXT2 or 3. I also create a swap partition on the USB which is my sda1. (I have an old how to for a swap file on stock Asus here: https://www.snbforums.com/threads/add-swap-to-usb-drive-on-asus-router.46911/)
To run the script at boot/USB insertion:
Code:
nvram set script_usbmount="/jffs/post-mount"
nvram commit

@bbunge
How did you get around the missing read-only link /opt/var?

The stock firmware is missing the readonly link (/opt/var) so Entware install fails with the following messages. Have you found any work around this? I am on ASUS GT-AX11000 with stock firmware ( Version:3.0.0.4.384_8011)

Code:
Info: Basic packages installation...
Collected errors:
 * make_directory: Cannot create directory `/opt/var': Read-only file system.
 * make_directory: Cannot create directory `/opt/var': Read-only file system.
 * make_directory: Cannot create directory `/opt/var': Read-only file system.

/tmp/home/root# opkg update
Collected errors:
 * make_directory: Cannot create directory `/opt/var': Read-only file system.
 * make_directory: Cannot create directory `/opt/var': Read-only file system.
 * make_directory: Cannot create directory `/opt/var': Read-only file system.

I attempted to edit the opkg.conf to work around it but still not able to get past the missing /opt/var

Code:
/tmp/home/root# opkg -f /opt/etc/opkg.conf update
Downloading http://bin.entware.net/aarch64-k3.10/Packages.gz
Updated list of available packages in /opt/tmp/opkg/opkg-lists/entware
/tmp/home/root# opkg -f /opt/etc/opkg.conf install tcpdump
Installing tcpdump (4.9.3-1) to root...
Collected errors:
 * verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg tcpdump needs 363
 * opkg_install_cmd: Cannot install package tcpdump.
 
Update: as a work around, I got the /sda1 (my usb) mounted directly under the /opt and its all good.

Code:
/dev/sda1 on /opt type ext3 (rw,relatime,data=ordered)
 

Sign Up For SNBForums Daily Digest

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