unrar

unrar

Postby matigev » Thu Oct 27, 2011 9:56 am

hi all
i just installed a unrar binary on my nwsp2.
(put this file in /usr/bin and dont forget to chmod 755 the file)
Unfortunately the file is unrar 3.40 beta and doesn't support files bigger than +/- 2 gb (segmentation fault with bigger files)
i'm not very experienced with compiling so maybe someone is willing to compile from source.
that version supports bigger files according to some fora. the binary on the rarlab site is compiled for kernel 2.4 so we can't use that one.
anyone knows how? 'make' is not found?

greetz
matigev
Donator VIP
Donator VIP
 
Posts: 48
Joined: Fri Sep 30, 2011 7:52 pm
Location: NL

Re: unrar

Postby fvdw » Thu Oct 27, 2011 2:34 pm

there is no compiler included in the firmware

but I can compile it for you, and will give it a try as soon as possible
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: unrar

Postby matigev » Thu Oct 27, 2011 7:03 pm

cool!
how do you do that? i mean, what tool/command do you use for crosscompiling?
i would like to try for myself so i might be able to compile some other useful tools
matigev
Donator VIP
Donator VIP
 
Posts: 48
Joined: Fri Sep 30, 2011 7:52 pm
Location: NL

Re: unrar

Postby fvdw » Thu Oct 27, 2011 8:34 pm

I do not cross compile but compile on the nwsp2 itself, it is too complicated to describe shortly how to set it up and to get a good working set. I have three different compiler versions and use one dependent on if a package gives problem with one version or another. When I have time I will post the setup.

Attached the compiled version of unrar
You need to put the unrar binary in /usr/bin and set it as executable
The other file (libstdc++.so.6) in the attachment goes to /usr/lib and also this must be set as executable but as it replaces the old one it probably will be set properly but check it as this is a crucial file for many programs.
If you don't replace the existing version of this file by this newer version you will get an message when using unrar that it can find version information of that file, the newer one solves this. Although that message is displayed unrar seems to work ok also with the older version but the message is annoying.

As said the lib file is an important file and contains the standard C library, many programs are using it. Therefor I am a little reluctant to change such files as some programs may be affected. Think it is ave to replace it by this one as it comes from the same source as the older one. We will see, I would appreciate if you can test it and let us now if you have any problem.

Below info how to use unrar and proof that it is working :mrgreen:
Code: Select all
/ # unrar --help

UNRAR 4.10 beta 2 freeware      Copyright (c) 1993-2011 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
  @[+]          Disable [enable] file lists
  ad            Append archive name to destination path
  ag[format]    Generate archive name using the current date
  ai            Ignore file attributes
  ap<path>      Set path inside archive
  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 listed in specified list file
  o[+|-]        Set the overwrite mode
  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 listed in specified list file
  y             Assume Yes on all queries
/ #


unrar.zip
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: unrar

Postby matigev » Thu Oct 27, 2011 9:44 pm

Great! I'm currently extracting a 4.8Gb rar archive and all goes well!
Definitely much quicker than extracting from my laptop (wifi).
Thank you!
matigev
Donator VIP
Donator VIP
 
Posts: 48
Joined: Fri Sep 30, 2011 7:52 pm
Location: NL

Re: unrar

Postby matigev » Thu Nov 03, 2011 7:15 pm

The updated library gave my no errors at all. I guess it's safe to update.
matigev
Donator VIP
Donator VIP
 
Posts: 48
Joined: Fri Sep 30, 2011 7:52 pm
Location: NL

Re: unrar

Postby fvdw » Thu Nov 03, 2011 9:34 pm

thks for the feedback matigev
I took the risk already and put in the 10-0 release, seems it was a good decision
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands


Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 5 guests