PDA

Bekijk de volledige versie : Unrar problem



bt338
14-05-2007, 16:53
Hi!

I've installed unrar from ipkg, but i've got a problem. I allways get a message: "-sh: unrar: not found". Why!? What' wrong?

Can somebody help me?

sorin7486
15-09-2007, 14:28
I have the exact same problem ... have you found the solution to this ?

raas
15-09-2007, 19:12
same problem here. unrar doesn't work.. doesn't matter which version is installed..

some people have it working.. others don't..

sorin7486
16-09-2007, 10:07
ok ... there's some contradiction in what you say .... if some people got it working then it can work ... and if it can work I want to know how ????

raas
16-09-2007, 14:55
that's right.. there's some contradiction..
I better should say: It stopped working for me.. 'cause it has worked, but it stopped. don't know why.. And I really didn't have the time to look into it.. Will do that later...
If any-1 has a solution in the meantime ? hehe :rolleyes:

thejew
16-09-2007, 18:26
I can confirm it working, works fine on my wl-500gp with latest oleg version.
I had some problems as well with it some month ago, but after i did "ipkg upgrade" it startet working for me again, at least i think it was related to the upgrade.

sorin7486
17-09-2007, 09:42
hey... what package did you install exactly ? because "ipkg install unrar" didn't work for me ... I garbed a package off the web with wget and just installed that ... I think it was from this server:
http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/

I used version 3.6.8-2..

raas
17-09-2007, 11:06
Would the persons who have unrar working might be so kind to post their list of installed packages..


ipkg list_installed

We might be able to see differences in packages with those who don't have it working.

Thanks in advance.

thejew
18-09-2007, 02:10
ok here are my installed packages, quite a lot :)
hope it helps in any way



ipkg list_installed
abook - 0.5.6-1 - Abook is a text-based addressbook program designed to use with mutt mail client.
adns - 1.4-1 - Asynchronous resolver library and DNS resolver utilities.
audiofile - 0.2.6-6 - Misc Audio Libraries.
avahi - 0.6.21-1 - A system for multicast DNS service discovery, an implementation of Zeroconf.
bash - 3.2.17-1 - A bourne style shell
bitchx - 1.1a-final-1 - Text mode IRC client
bitlbee - 1.0.4-1 - A gateway between IRC and proprietary IM networks
bsdmainutils - 6.1.6-1 - Small programs many people expect to find when they use a BSD-style Unix system.
buildroot - 4.1.1-12 - uClibc compilation toolchain
coreutils - 6.9-4 - Bunch of heavyweight *nix core utilities
cyrus-sasl - 2.1.22-2 - Provides client or server side authentication (see RFC 2222).
cyrus-sasl-libs - 2.1.22-2 - Provides client or server side authentication (see RFC 2222).
dbus - 1.1.1-1 -
enhanced-ctorrent - dnh2-3 -
expat - 2.0.1-1 - XML Parser library
faad2 - 2.5-3 - Freeware Advanced Audio Coder
flac - 1.1.4-1 - FLAC is a free lossless audio codec. This package contains the codec libraries and the command-line tools flac and metaflac.
fontconfig - 2.3.2-5 - Font configuration library
freetype - 2.1.10-4 - Free truetype library
gconv-modules - 2.2.5-7 - Provides gconv modules missing from the firmware. These are used by glibc's iconv() implementation.
gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
gettext - 0.14.5-2 - Set of tools for producing multi-lingual messages
glib - 2.6.6-6 - The GLib library of C routines.
gnuplot - 4.2.0-5 - Command-line driven interactive data and function plotting utility
gnutls - 1.6.3-1 - GNU Transport Layer Security Library.
grep - 2.4.2-6 - Global regular expression parser
groff - 1.19.2-1 - front-end for the groff document formatting system
icecast - 2.3.1-1 - A free server software for streaming multimedia.
ipkg-opt - 0.99.163-9 - The Itsy Package Manager
less - 394-3 - Less file browser
libao - 0.8.8-1 - Cross Platform Audio Library.
libart - 2.3.17-2 - 2-d graphics library.
libbt - 1.05-5 - a C library implementing the core BitTorrent protocol
libcurl - 7.16.4-1 -
libdaemon - 0.11-1 - A lightweight C library that eases the writing of UNIX daemons.
libdb - 4.2.52-3 - Berkeley DB Libraries
libevent - 1.3d-1 - libevent to implement an event loop
libgcrypt - 1.2.4-1 - GNU cryptography libray, needed by gnutls
libgd - 2.0.35-1 - An ANSI C library for the dynamic creation of images
libgpg-error - 1.4-1 - Error handling library for libgcrypt
libid3tag - 0.15.1b-1 - The library used for ID3 tag reading
libjpeg - 6b-2 - collection of jpeg tools
libmad - 0.15.1b-3 - MPEG Audio Decoder library
libmpcdec - 1.2.6-1 - Portable Musepack decoder library.
libogg - 1.1.3-3 - Ogg is a multimedia container format.
libpng - 1.2.19-1 -
libtasn1 - 0.3.10-1 - ASN.1 structure parser library.
libuclibc++ - 0.2.2-4 - C++ standard library designed for use in embedded systems
libvorbis - 1.1.2-5 - Ogg Vorbis compressed audio format.
libvorbisidec - cvs-20050221-2 - libvorbisidec is the integer-only ogg decoder library, AKA Tremor
libxml2 - 2.6.29-1 -
libxslt - 1.1.21-1 -
logrotate - 3.7.1-4 - Rotates, compresses, removes and mails system log files.
man - 1.5p-4 - unix manual page reader
mp3blaster - 3.2.3-2 - interactive text-based program that plays MP3, Ogg Vorbis, wav, and sid audio files
mpc - 0.12.1-1 - A command line tool to interface MPD.
mpd - 0.13.0-1 - Music Player Daemon (MPD) allows remote access for playing music.
nano - 2.0.6-1 - A pico like editor
nanoblogger - 3.3-3 - A small weblog engine written in Bash for the command line.
ncmpc - 0.11.1-1 - A curses client for the Music Player Daemon (MPD).
ncurses - 5.6-1 - NCurses libraries
ncursesw - 5.6-1 - NCurses libraries with wide char support.
netatalk - 2.0.3-2 - Apple talk networking daemon.
nethack - 3.4.3-3 - The best text based RPG of all time.
openssl - 0.9.7m-2 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
palantir - 2.6-1 - Multichannel interactive streaming solution
pcre - 7.3-1 - Perl-compatible regular expression library
popt - 1.7-2 - A C library for parsing command line parameters.
readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
rsync - 2.6.9-2 -
sctcs - 0.85b -
sed - 4.1.5-1 - Stream editor.
snownews - 1.5.7-7 - Text mode RSS newsreader for Linux and Unix
speex - 1.2beta1-1 - Speex is an Open Source/Free Software patent-free audio compression format designed for speech.
tethereal - 0.10.14-3 - Terminal based ethereal to dump and analyze network traffic
transmission - 0.82-1 - lightweight BitTorrent client and daemon with WWW interface
uclibc-opt - 0.9.28-12 - micro C library for embedded Linux systems
unrar - 3.6.8-2 - unrar is an application that can decompress files and archives created using the RAR compression scheme
vnstat - 1.4-4 - Network traffic monitor with log
wakelan - 1.1-2 - send the magic wakeup package over the LAN
xinetd - 2.3.14-6 - Highly configurable, modular and secure inetd
zlib - 1.2.3-2 - zlib is a library implementing the 'deflate' compression system.

sorin7486
18-09-2007, 08:08
could you also tell us where you got the package from ? unrar I mean ... btw: when I list the installed packages I don't get a description for unrar ... I only get:

unrar - 3.6.8-2 -

so it might be installed from a different package ?

mistraller
18-09-2007, 21:11
All packages installed from
http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable

Latest oleg firmware (7g)


adduser - 1.5.0-1 - a multi-call binary for login and user account administration
bash - 3.2.17-1 - A bourne style shell
buildroot - 4.1.1-12 - uClibc compilation toolchain
bzip2 - 1.0.4-1 - Very high-quality data compression program
cron - 4.1-6 - Standard vixie cron, with cron.d addition
e2fsprogs - 1.40.2-1 - Ext2 Filesystem Utilities
freetype - 2.1.10-4 - Free truetype library
glib - 2.6.6-6 - The GLib library of C routines.
ipkg - 0.99.149-2 -
ipkg-opt - 0.99.163-9 - The Itsy Package Manager
libart - 2.3.17-2 - 2-d graphics library.
libdb - 4.2.52-3 - Berkeley DB Libraries
libjpeg - 6b-2 - collection of jpeg tools
libpng - 1.2.19-1 -
libuclibc++ - 0.2.2-4 - C++ standard library designed for use in embedded systems
libusb - 0.1.12-1 - Library for interfacing to the USB subsystem.
mc - 4.6.1-3 - Midnight Commander File Manager
nano - 2.0.6-1 - A pico like editor
ncurses - 5.6-1 - NCurses libraries
ncursesw - 5.6-1 - NCurses libraries with wide char support.
openssl - 0.9.7m-2 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
par2cmdline - 0.4-3 - tool to apply the data-recovery capability concepts of RAID-like systems to the posting & recovery of multi-part archives on Us
py-celementtree - 1.0.5-20051216-4 - A toolkit that contains a number of light-weight components for working with XML (C implementation).
py-cheetah - 2.0rc7-2 - Cheetah - The Python-Powered Template Engine.
py-cherrypy - 2.2.1-2 - A pythonic, object-oriented web development framework.
py-elementtree - 1.2.6-20050316-3 - A toolkit that contains a number of light-weight components for working with XML.
python - 2.4.4-3 - This is a package that sets up the default python.
python24 - 2.4.4-5 - Python is an interpreted, interactive, object-oriented programming language.
readline - 5.2-2 - The GNU Readline library provides a set of functions for useby applications that allow users to edit command lines as they are
rrdtool - 1.2.23-2 - Round-Robin Database tool. Database collator and plotter
sane-backends - 1.0.18+cvs20061127-1 - SANE is a universal scanner interface
slang - 2.1.1-1 - S-Lang is a multi-platform library designed to allow a developer to create robust multi-platform software.
uclibc-opt - 0.9.28-12 - micro C library for embedded Linux systems
unrar - 3.6.8-2 - unrar is an application that can decompress files and archives created using the RAR compression scheme
unzip - 5.52-1 - A (de)compression library for the ZIP format
xinetd - 2.3.14-6 - Highly configurable, modular and secure inetd
zlib - 1.2.3-2 - zlib is a library implementing the 'deflate' compression system


SABnzbd running without unrar problems.

Before installing buildroot, I downloaded it to router.

raas
18-09-2007, 22:02
hi,

@sorin7486
my unrar tells the complete story other also have, however, unrar doesn't work for me.


--
When I run something with unrar, I always get the following error.


terminate called after throwing an instance of 'int'
Aborted

mistraller
18-09-2007, 22:41
hi,

@sorin7486
my unrar tells the complete story other also have, however, unrar doesn't work for me.


--
When I run something with unrar, I always get the following error.


terminate called after throwing an instance of 'int'
Aborted


@Raas
Are you sure you're using the correct commands to run Unrar?
I ran a quick test for you:



[myself@router2 tmp]$
UNRAR 3.60 freeware Copyright (c) 1993-2006 Alexander Roshal

Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>

<Commands>
e Extract files to current directory
l[t,b] List archive [technical, bare]
p Print file to stdout
t Test archive files
v[t,b] Verbosely list archive [technical,bare]
x Extract files with full path

<Switches>
- Stop switches scanning
ad Append archive name to destination path
ap<path> Set path inside archive
av- Disable authenticity verification check
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
dh Open shared files
ep Exclude paths from names
ep3 Expand paths to full including the drive letter
f Freshen files
id[c,d,p,q] Disable messages
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
n<file> Include only specified file
n@ Read file names to include from stdin
n@<list> Include files in specified list file
o+ Overwrite existing files
o- Do not overwrite existing files
or Rename files automatically
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
sl<size> Process files with size less than specified
sm<size> Process files with size more than specified
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
tn<time> Process files newer than <time>
to<time> Process files older than <time>
ts<m,c,a>[N] Save or restore file time (modification, creation, access)
u Update files
v List all volumes
ver[n] File version control
vp Pause before each volume
x<file> Exclude specified file
x@ Read file names to exclude from stdin
x@<list> Exclude files in specified list file
y Assume Yes on all queries
terminate called after throwing an instance of 'int'
Aborted
[myself@router2 tmp]$ unrar l logfile.rar

UNRAR 3.60 freeware Copyright (c) 1993-2006 Alexander Roshal

Archive logfile.rar

Name Size Packed Ratio Date Time Attr CRC Meth Ver
-------------------------------------------------------------------------------
logfile.csv 21 21 100% 05-09-07 01:03 ....... 479263E8 m0b 2.9
-------------------------------------------------------------------------------
1 21 21 100%

[myself@router2 tmp]$ unrar e logfile.rar

UNRAR 3.60 freeware Copyright (c) 1993-2006 Alexander Roshal


Extracting from logfile.rar

Extracting logfile.csv OK
All OK
As you see, I get the "aborted" message too, but only if I give unrar wrong, or no options/commands. Commands should be without a dash! ( - )

Rarfile created with WinRar 3.41

raas
20-09-2007, 21:57
@Mistraller..

yeah... stupid me.... made a big mistake when entering the parameters to unrar..

unrar is actually working in a telnet session.

then why is it not working for Sab.. or Hella...
I dont get it...

raas
25-09-2007, 09:33
well..

figured it out

i used the post boot script.. to run a script which starts SAB or Hella (currently Hella... more stable)

but if it's started automatically directly after boot. the unrar package is not found.

however. when I start it manually after the boot it does find the package and then it unrars perfectly after download..

The prettiest thing of all is that this behaviour is written up on the first page off the SAB tutorial.. stupid me.. /me should do better reading..

sorin7486
25-09-2007, 11:32
I don't know what SAB or Hella is ... or what you are talking about... I don't have either of those installed and unrar still doesn't work .... any ideas ?

raas
25-09-2007, 13:03
@sorin

Where/how/why do you use unrar on your asus ?
Do you use it in a telnet session.
what command do you use? (unrar e filename.rar)

I use unar, or even better to say, I let SAB or Hella use unrar to unpack downloaded archives.

(SAB and Hella are binary newsreaders (for newsgroups). I usually download from newsservers. But because of the architecture of newsgroups. files are not posted as one whole file, but splitted into pieces (rar) like 90 rar files for one dvd. The program downloads all the archives and then joins (unpacks) them with unrar.)

sorin7486
25-09-2007, 13:31
I use unrar from the ssh session ... and things look like this:

[admin@(none) root]$ unrar
-sh: unrar: not found


any ideas ?

raas
25-09-2007, 13:43
Hi,

try to uninstall unrar

ipkg remove unrar


then install it again

ipkg install unrar


it seems to me that the package is not installed correctly, but we already know that.. right..

one way or the other, the asus doesn't know that unrar is installed.
maybe there is some missing link somewhere..
like .. you can call the unrar command from each location on the asus.. doesn't matter if you're in /opt or in /usr it just knows where to find the 'program file of unrar' when you issue the command unrar..
being a linux n00b, I don't know where that link is stored..
If you are saying unrar is installed, but somehow the command doesn't find the program, there must be something wrong with 'some link' ...
But I really don't know how to fix that. .

sorry..

Maybe our fellow forum members with more knowledge of *nix can give the answer ?

sorin7486
25-09-2007, 13:51
the thing is "ipkg install unrar" doesn't work for me ... I tried ipkg update but still nothing ... in order to install unrar I had to get the package from
http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/unrar_3.6.8-2_mipsel.ipk

and then run ipkg install ./unrar_3.6.8-2_mipsel.ipk

I did all that once again just now but it still doesn't work.

the linux part seems ok ... I mean I tried to run it from /opt/bin where it's installed, using ./unrar, and I still get the same thing...

sorin7486
08-10-2007, 10:25
ok.. any other alternative ? ... is there no way I can get my router to unrar ?:(

thE_29
08-10-2007, 12:55
Normaly, when you run a cmd and it says, cmd not found, it is not compiled for your OS version!

On my asus500gP i installed (just 4 mins ago, with ipkg install unrar) unrar and it works!

But when i tried to compile it, i got a segmentation fault from the g++.. :(

sorin7486
08-10-2007, 13:27
I also have an wl-500gP and "ipkg install unrar" doesn't work ... it says it can't find the package...

thE_29
08-10-2007, 13:44
Try ipkg update to get new list! Maybe unrar isnt on your download/package list on your router!

sorin7486
08-10-2007, 13:53
already did that ... still not working ... :(
I had it installed by manually downloading the package file from the net ... but I was never able to do it automatically with ipkg install

edit:

I took a look at http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/Packages where the package list is updated from ... there is no trace of unrar there

raas
08-10-2007, 15:00
Hi Sorin,

Sorry to hear it still is not working for you.

after installing, do you have the unrar file present at /opt/bin ?
This is the location where the unrar file should be placed after installing. perhaps using unrar from that direct location should work.

A bit strange unrar isn't mentioned in the link you supplied.

This is a bit of a no-brainer, but you are using the right installation location (get packages from:) http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable

sorin7486
08-10-2007, 15:06
I think that was the link I used to get the package from ... (I mentioned it in another post)... the strange thing is that I can't find unrar at that location anymore ... they probably took it down ?:confused:

edit: ooops... I forgot to wait for the whole page to load ... so yes ... I installed the package from that location successfully, and /opt/unrar was there... I tried even writing a shell script and run unrar from there (hoping something might be different ... ) but it's the same thing... :(

raas
08-10-2007, 15:09
Hi Sorin,

take a look at the following list: http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages

unrar is mentioned here. This is the list supplied with the available packages especially for the asus. So it should be there.

I think you have the wrong location for the ipkg to download the packages.

your ipkg.conf should contain:



optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable


(the links look like each-other, but there are small differences.)

sorin7486
08-10-2007, 15:14
hmm...

I wasn't aware of this... optware ? I tried to add that to ipkg.conf but it says
WARNING: Ignoring unknown configuration parameter: optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable

I have oleg's firmware ... is this ok for me ?

edit:
btw... wich ipkg.conf file are you talking about exacly ? I presume the one in /opt/etc right ?

raas
08-10-2007, 15:17
Hi Sorin,

i was giving that location out of my bare-head. :rolleyes:

I have looked it up for you,

this is what /opt/etc/ipkg.conf should contain:



src/gz optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
dest /opt/ /


Then it should work,

Good luck.

sorin7486
08-10-2007, 15:21
this is what I have in /opt/etc/ipkg.conf exactly... the install works now just by doing "ipkg install unrar" (so it's an improvement) but after instalation I get the same old problem "-sh: unrar: not found"


src wl500g http://wl500g.dyndns.org/ipkg
src unslung http://ipkg.nslu2-linux.org/feeds/unslung/wl500g
src optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
dest root /

sorin7486
08-10-2007, 15:27
I tried exactly the ipkg.conf file that you recomendet, installed unrar but I get the same problem ... I think I'll wait ... maybe somebody will solve this once and for all ...

thank you for all the help

raas
08-10-2007, 15:29
Hi,

I think the problem now is that you have more than 1 location to get packages from..

Backup your current ipkg.conf file (just in case)

remove everything and insert the following code



src/gz optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
dest /opt/ /

ipkg.conf shouldn't contain anything more than this..

Also, you say the installation finished succesfully, do you have the unrar file present at /opt/bin ?

sorin7486
08-10-2007, 15:45
every time I installed unrar I had it present in the /opt/bin ...
I think I did a bad thing ... I added the line you suggested to the ipkg config and I did an "ipkg upgrade"

every single package that was "upgraded" doesn't work anymore... all of them say exactly the same thing as unrar did .... so clearly the packages on that server are not compatible with my firmware!!!!

I'll try to get things back the way they where ...

thE_29
08-10-2007, 15:54
Try this: ipkg install http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/unrar_3.6.8-2_mipsel.ipk

With this package unrar works succesfully on my router!

raas
08-10-2007, 16:01
Sorin,

I think you have some kind of 'location-problem'
eg. when you want to execute a command, the asus thinks it can find the program at some location, but it isn't there, it's somewhere else,

I think this, because you used a destination root in your ipkg.conf while others suggest /opt

But... very weird behaviour, don't know exactly what to do now. :mad:

sorin7486
08-10-2007, 16:07
what exactly is that destination ? I mean what does it do ... and I'm not sure actually ... Whatever I try to install from that darn server nothing works ...

sorin7486
08-10-2007, 16:13
I think I'll clean up /opt of everything and start once again from the top... I'll keep to the repos suggested in the tutorial and I'll compile unrar myself... looks safer ...

mistraller
08-10-2007, 17:08
every time I installed unrar I had it present in the /opt/bin ...
I think I did a bad thing ... I added the line you suggested to the ipkg config and I did an "ipkg upgrade"

every single package that was "upgraded" doesn't work anymore... all of them say exactly the same thing as unrar did .... so clearly the packages on that server are not compatible with my firmware!!!!

I'll try to get things back the way they where ...

If you switch from wl500 repository to oleg repository you should install uclibc-opt, because packages can depend on this newer version!
After upgrading you should re-install all packages which were installed from wl500 repository.

sorin7486
08-10-2007, 22:42
THANK YOUUUUU... that was it ...
sadly I already reinstalled everything from scrach but it's ok ... I wanted to clean everything up anyways so no harm done

thanks again