Posted: Thu Feb 15, 2007 18:39 Post subject: Optware installation errors
Hi,
Because i want to install freeradius and some other things on my DD-WRT v23 SP2 / VPN edition i tried installing the optware stuff.
I downloaded the optware-install.sh and executed it, but it gave me some errors about ldconfig.
Quote:
/tmp # sh ./optware-install.sh
Checking system config ...
Using 10.0.0.138 as default gateway.
Using the following nameserver(s):
nameserver 192.168.1.1
Installing package uclibc-opt_0.9.28-12_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
uclibc-opt_0.9.28-12 100% |**********************************************************************************************************| 832 KB 00:00:00 ETA
Updating /opt/etc/ld.so.cache
/opt/sbin/ldconfig: can't link /opt/lib/libdl.so.0 to libdl-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libnsl.so.0 to libnsl-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libthread_db.so.1 to libthread_db-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libcrypt.so.0 to libcrypt-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libmudflapth.so.0 to libmudflapth.so.0.0.0: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libm.so.0 to libm-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libstdc++.so.6 to libstdc++.so.6.0.8: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libresolv.so.0 to libresolv-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/librt.so.0 to librt-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libintl.so.0 to libintl-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/ld-uClibc.so.0 to ld-uClibc-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libutil.so.0 to libutil-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libc.so.0 to libuClibc-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libpthread.so.0 to libpthread-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libmudflap.so.0 to libmudflap.so.0.0.0: Operation not permitted
/opt/sbin/ldconfig: can't create /opt/etc/ld.so.cache~ (No such file or directory)
Installing package ipkg-opt_0.99.163-9_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
ipkg-opt_0.99.163-9_ 100% |**********************************************************************************************************| 75896 00:00:00 ETA
/opt/sbin/ldconfig: can't link /opt/lib/libipkg.so.0 to libipkg.so.0.0.0: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libdl.so.0 to libdl-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libnsl.so.0 to libnsl-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libthread_db.so.1 to libthread_db-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libcrypt.so.0 to libcrypt-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libmudflapth.so.0 to libmudflapth.so.0.0.0: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libm.so.0 to libm-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libstdc++.so.6 to libstdc++.so.6.0.8: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libresolv.so.0 to libresolv-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/librt.so.0 to librt-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libintl.so.0 to libintl-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/ld-uClibc.so.0 to ld-uClibc-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libutil.so.0 to libutil-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libc.so.0 to libuClibc-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libpthread.so.0 to libpthread-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libmudflap.so.0 to libmudflap.so.0.0.0: Operation not permitted
./optware-install.sh: ./optware-install.sh: 91: /opt/bin/ipkg: not found
./optware-install.sh: ./optware-install.sh: 92: /opt/bin/ipkg: not found
./optware-install.sh: ./optware-install.sh: 93: /opt/bin/ipkg: not found
/tmp #
I am using a SMBmount and i have "faked" having jffs, and i mounted /jffs to my smb. The /opt is mounted to /jffs/opt.
What am i doing wrong and how can i fix this? Thanks in advance!
i tried all suggested here in the forum to work around with the smb mount, but i still get the same error message as sypher - even with the bash script to copy the files...
does anyone have another suggestion - besides a hardware hack ^^
I have the same errors as Sypher, when trying to install on a samba share. I've done all the mappings, and other tricks found on forums in this matter. I've tried several times, but nothing helped. I would like to install an ftp server on a wrt54gl 1.1 with ddwrt v23sp2.
Does anyone have idea what else can I try, to install the optware-install.sh on a samba share?
I tried to do the installs by hand, but also failed. Unfortunately I'm newbie in linux matters.
manually way could be that you open ipk files with winrar and then just extract them on a shamba share. You need to extract at least uclibc-opt anv vsftpd. Taking care that symbolic links are replaced with real files.
Hi!
I tried that manual way, but ran into the same "can't link" errors.
Then I updated the router's firmware with dd-wrt v24 rc6.2 standard (seems much better than V23 sp2)
I tried again run that script to install on samba share, which is mounted to /jffs.
I've created a directory /jffs/opt mounted to /opt
Then i ran the script, which now made different error report, and seem it done more than before (more files appeared in the directories)
I think the two "(Permission denied)" errors below can cause the script to fail. How can I resolve that permission-problem? I hope if we can solve this,it will work...
The output was:
Code:
/jffs$ sh optware-install.sh
Checking system config ...
Using 213.16.123.254 as default gateway.
Using the following nameserver(s):
nameserver 192.168.1.2
Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org [140.211.169.169:80]
/opt/sbin/ldconfig: can't create /opt/etc/ld.so.cache~ (Permission denied)
Connecting to ipkg.nslu2-linux.org [140.211.169.169:80]
Updating /opt/etc/ld.so.cache
Installing package ipkg-opt_0.99.163-9_mipsel.ipk ...
/opt/sbin/ldconfig: can't create /opt/etc/ld.so.cache~ (Permission denied)
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
An error ocurred, return value: 1.
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package uclibc-opt.
Check the spelling or perhaps run 'ipkg update'
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package ipkg-opt.
Check the spelling or perhaps run 'ipkg update'
You could always try installing the loop module and creating loopfs on the samba drive. Then if you format that as ext2 you can mount it to opt. Then you should be able to use symlinks and whatever else.
Well, originally I wanted to install torrent and ftp on the router, but now I bought a WD mybook world, and I run these on the mybook. (That also has Linux OS, so it's easy to get a working torrent / ftp on that). It has a quite large system partition, so no tricks needed to install some optware on it.
I'm not a Linux guru, but it seems for me that he router allows install optware only on it's internal drives (flash memory, or an mmc card).