If you look careful, you could see that download is wrom openwrt.org and not from nslu2-linux.org. The reason is that you did not follow instructions step by step and you did not changed ipg.conf to point to the right repository!
Joined: 07 Jun 2006 Posts: 198 Location: Parma - Italy
Posted: Fri Oct 27, 2006 7:15 Post subject:
vlahos wrote:
Im very suspicious to all you that report that you have the programs running
Ahh you got me! Excuse me, if I were too know that a genius like you has been lurking this forum, I would have never never tried to impress people with my lies.
~ # cd /jffs
/jffs # rm -rf *
/jffs # mkdir /jffs/opt
/jffs # mount -o bind /jffs/opt /opt
/jffs # mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/mtdblock/4 on /opt type jffs2 (rw)
/jffs #
/tmp # ipkg install uclibc_0.9.28-4_mipsel.ipk
ERROR: File not found: //jffs/usr/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/backports
You probably want to run `ipkg update'
Unpacking uclibc...Done.
Configuring uclibc...Updating /opt/etc/ld-opt.so.cache
/jffs//jffs/usr/lib/ipkg/info/uclibc.postinst: /jffs//jffs/usr/lib/ipkg/info/uclibc.postinst: 6: /opt/sbin/ldconfig: not found
/tmp # df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 1920 1920 0 100% /
/dev/mtdblock/4 1280 540 740 42% /jffs
/dev/mtdblock/4 1280 540 740 42% /opt
/tmp # wget http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ncftp_3.2.0-1_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
ncftp_3.2.0-1_mipsel 100% |*****************************| 513 KB 00:00:00 ETA
/tmp # ipkg install ncftp_3.2.0-1_mipsel.ipk
ERROR: File not found: //jffs/usr/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/backports
You probably want to run `ipkg update'
Unpacking ncftp...ipkg_install_file: ERROR unpacking data.tar.gz from ncftp_3.2.0-1_mipsel.ipk
/tmp # df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 1920 1920 0 100% /
/dev/mtdblock/4 1280 700 580 55% /jffs
/dev/mtdblock/4 1280 700 580 55% /opt
/tmp # ipkg install ncftp_3.2.0-1_mipsel.ipk
ERROR: File not found: //jffs/usr/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/backports
You probably want to run `ipkg update'
Unpacking ncftp...ipkg_install_file: ERROR unpacking data.tar.gz from ncftp_3.2.0-1_mipsel.ipk
/tmp # df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 1920 1920 0 100% /
/dev/mtdblock/4 1280 1280 0 100% /jffs
/dev/mtdblock/4 1280 1280 0 100% /opt
/tmp # ipkg remove ncftp
/tmp # ipkg remove ncftp
/tmp # wget http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/bc_1.06-2_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
bc_1.06-2_mipsel.ipk 100% |*****************************| 133 KB 00:00:00 ETA
/tmp # ipkg install bc_1.06-2_mipsel.ipk
ERROR: File not found: //jffs/usr/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/backports
You probably want to run `ipkg update'
Unpacking bc...Done.
Configuring bc...Done.
SO what ?
what did you prove ?
did you run anything ?
as i can see Uclibc DIDNT install correctly
and after the command
tmp # ipkg install uclibc_0.9.28-4_mipsel.ipk
the answer is NOT what you say but File not found .... UNLESS you have manualy downloaded the file in /tmp BUT nowhere says so...you 'instructions' are a joke
my guess is theres possibility 1% that you have made it (but you DONT describe how)
and 99% that you are joking
PS i edit the post to correct the percentage...100% b&ll$hit...if you try to install manually
you get the warning that base-files is missing...
/tmp/ttemp # ipkg install uclibc*
ipkg_install_file: ERROR: uclibc depends on the following uninstalled programs:
base-files libgcc
ipkg_install_file: You may want to use `ipkg install' to install these.
/tmp/ttemp #
this whole screen output is fake
i tried it...give the answer in an undisputable way IF you can
ldconfig is not neccessary to complete without an error. All packages have built in /opt/lib search path. ldconfig is used just for shared libraries in nonstandard path. Errors about not found packages list are also OK as we did not run update.
Can you describe what is your hardware and hom mouch free space does df command returns? Release date of your dd-wrt sp2 would be helpful.
I must say that running optware was never ment for packages with high memory requirements unless you attach hard disk to the router. I am running wl500g deluxe in such way. If somebody is interested tha have a peek in my router, send me RSA key for ssh access in private message or if want to look at my web page, just send me a PM with a wish. Or you can give me access to your ruouter in similar way.
Okay, after lots and lots of trying and finally a little bit of success i'm stating my path:
i have a wrt54gl --> no jffs space, but mmc mod w/ 64mb mmc card
so i unmounted /mmc and /jffs mountpoints, mounted /dev/mmc/disc0/part1 to /jffs, mounted /jffs/opt to /opt
then i opened the packages list with my browser and manually downloaded the ipk files and their dependencies with wget to /opt. then i installed them one by one using : ipkg -d root install [ipk-file]. it outputs
Code:
ERROR: File not found: //jffs/usr/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/backports
You probably want to run `ipkg update'
but that doesnt matter, it installs the software anyways
so every application is installed in the right way to /opt and running without problems. installed irssi, lighttpd so far, trying screen now.
1. I unmounted /jffs and mounted a samba share from an 80 MB ext2 disk on /jffs
umount -l /jffs
smbmount //sambashare /jffs -o username=root,password=<i leave it blank> (mounted with 755 permissions)
or you can mount an sd card on /jffs (i dont have it)
i unmounted /opt
umount -l /opt
and mounted with
mount -o bind /jffs/opt /opt
(there must exist an directory named /opt on the mounted disk or else it fails)
2. i had to manually create /opt/etc and put the edited ipkg.conf in it
and create an empty /jffs/tmp/ipkg/ directory or else ipkg update doesnt start
after that i installed uclibc without error with
ipkg install uclibc (this command is issued from ROOT directory)
and
after that i installed ncftp without error with
ipkg install ncftp (this command is issued from ROOT directory)
i even remembered to give export PATH=/opt/bin:/opt/sbin:$PATH
to be able to run executables from /opt/bin and /opt/sbin directory
Allright....i f*ckin did it....im a mean bastard...yeah...i have in /jffs these files:
drwxr-xr-x 1 root root 4096 Oct 29 06:43 .
drwxr-xr-x 15 root root 145 Sep 15 19:41 ..
drwxr-xr-x 1 root root 4096 Oct 29 05:27 bin
drwxr-xr-x 1 root root 4096 Mar 27 2006 dev
drwxr-xr-x 1 root root 4096 Oct 29 05:27 etc
drwxr-xr-x 1 root root 4096 Mar 27 2006 jffs
drwxr-xr-x 1 root root 4096 Oct 29 05:57 lib
drwxr-xr-x 1 root root 4096 Mar 27 2006 mnt
drwxr-xr-x 1 root root 4096 Oct 29 05:38 opt
drwxr-xr-x 1 root root 4096 Mar 27 2006 proc
drwxr-xr-x 1 root root 4096 Oct 29 05:27 rom
drwxr-xr-x 1 root root 4096 Oct 29 05:27 sbin
drwxr-xr-x 1 root root 4096 Mar 27 2006 tmp
drwxr-xr-x 1 root root 4096 Oct 29 05:27 usr
drwxr-xr-x 1 root root 4096 Mar 27 2006 www
3. all fine...i cd to /opt/bin
/opt/bin # ls -alg
drwxr-xr-x 1 root root 4096 Oct 29 05:31 .
drwxr-xr-x 1 root root 4096 Oct 29 05:38 ..
-rwxr-xr-x 1 root root 5660 Jul 28 16:21 clear
-rwxr-xr-x 1 root root 52808 Jul 28 16:21 infocmp
-rwxr-xr-x 1 root root 336140 Aug 12 14:08 ncftp
-rwxr-xr-x 1 root root 207372 Aug 12 14:08 ncftpbatch
-rwxr-xr-x 1 root root 156928 Aug 12 14:08 ncftpbookmarks
-rwxr-xr-x 1 root root 202676 Aug 12 14:08 ncftpget
-rwxr-xr-x 1 root root 172424 Aug 12 14:08 ncftpls
-rwxr-xr-x 1 root root 203272 Aug 12 14:08 ncftpput
-rwxr-xr-x 1 root root 56860 Jul 28 16:21 tic
-rwxr-xr-x 1 root root 35264 Jul 28 16:21 toe
-rwxr-xr-x 1 root root 14328 Jul 28 16:21 tput
-rwxr-xr-x 1 root root 43992 Jul 28 16:21 tset
/opt/bin # ./ncftp
-sh: ./ncftp: not found
and the same applies to EVERY executable installed
this way i do it ldconfig doesnt show up in /opt/sbin (like it does with manual install)
ONLY thing i observe and i dont know why is that file uclibc.list (\jffs\jffs\usr\lib\ipkg\info\uclibc.info)
the ones that are missing were the ones that ldconfig (in manual install) was reporting
as error to create the link (Permission denied)
By the way i tried to make the samba share chmod 777 but it remains 755
does samba has a problem with symbolic links ?
is it because i havent defined a password ?
is this the f*cking case that is tainting me for over a week now (over 100 hours)...?
???
f&ck
somebody is it possible to install on samba mount ?
instructions say it is
UPDATE -> also i found out that manual install installs libraries version ...0.9.28
and auto install ...0.9.27 (as in my case)
so i was right initially you have fooked up with the links ...
Posted: Sun Oct 29, 2006 15:20 Post subject: Optware Coreutils
I followed all the steps and am able to install the ulibc. But I need the mknod executable which is in coreutils package which I installed. At the end after configuring message, it gave an error as follows
Configuring coreutils.../jffs//jffs/usr/lib/ipkg/info/coreutils.postinst: /jffs/ /jffs/usr/lib/ipkg/info/coreutils.postinst: 6: update-alternatives: not found
/jffs//jffs/usr/lib/ipkg/info/coreutils.postinst: /jffs//jffs/usr/lib/ipkg/info/ coreutils.postinst: 7: update-alternatives: not found
/jffs//jffs/usr/lib/ipkg/info/coreutils.postinst: /jffs//jffs/usr/lib/ipkg/info/ coreutils.postinst: 8: update-alternatives: not found
Done.
I can see all the binaries in the /opt/bin directory. When I try to execute them it gives an error " -sh: ./cat: not found.
Can someone help me resolve this?
Thanks for any help
are you using samba share like me ?
i think you must forget it...samba doesnt like symbolic links ???
i will install sd mode card
well i was able to run ncftp when instead of the symbolic links i copied the libraries
with the links name
i did it ... i installed in /tmp
i was right it was a problem with samba not able to create the symbolic links
after i can copy to samba mount (the links are replaced by a copy of the file)
nobody mentioned that in the instructions (it said you could use samba)
so it wasnt my fault and i was right to question the instructions
anybody writing instructions should try to guess possible problems from users
with smaller experience
now another problem i installed and run ncftp
but when i try enhanced ctorrent i fail
('cant load library libbsssl.so.0.9.7')
but i have (manually) installed all dependencies for this program
(libstdc++, openssl, libuclibc++)
and such a library doesnt exist in them
Installing on samba is a pain, but it's perfectly feasible.
If, after you install on samba, you run ldconfig and notice the lack on symbolic links, you can simply copy the file to the new name instead. As you can probably guess, this gets old pretty fast. An easy solution is to save a script as /jffs/bin/ln, and then make sure that appears first in the path when you're upating. The next thing most users will notice and/or complain about is the fact that when dealing with optware, it's not always pleasant to have /opt/bin (or /jfffs/bin) appear before the stock system paths. I've noticed this too. My solution was to save the script to /jffs/bin/ln/ln, and then to
export PATH=/jffs/bin/ln:$PATH:/opt/sbin:/opt/bin
and so on.
The script could read something like this:
#!/bin/sh
cp $2 $3
That should be it. ldconfig will still complain occasionally, but the installaed applications will all run happily. (Leave out $1, as it will contain the '-s' part of the command.)
I havent the SLIGHTEST idea what you are talking about...
i JUST wanted to run bittorent on WRT54G nothing else
I DONT like linux (or Unix) or programming i just like (implementing and using ) embedded
solutions...nowadays this road goes through linux inevitably
quite sorry if i was unclear. i meant that if before you install any packages on your samba jffs, you save a script called /jffs/bin/ln/ln with the contents:
Code:
#!/bin/sh
cp $2 $3
Then run the following command once:
chmod +x /jffs/bin/ln/ln
Then run this command whenver you open a terminal/ssh to install new stuff: