Forum

Full Version: Unable to compile unrar-nonfree because of man
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm unable to compile unrar-nonfree.
The process quits with the following error:

Code:
g++  -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DUNRAR -c scantree.cpp
g++ -o unrar  rar.o strlist.o strfn.o pathfn.o savepos.o smallfn.o global.o file.o filefn.o filcreat.o archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o resource.o match.o timefn.o rdwrfn.o consio.o options.o ulinks.o errhnd.o rarvm.o rijndael.o getbits.o sha1.o extinfo.o extract.o volume.o list.o find.o unpack.o cmddata.o filestr.o recvol.o rs.o scantree.o
strip unrar
make[1]: Leaving directory `/tmp/unrar-nonfree-4.1.4'
debian/rules binary
dh_testdir
make -f makefile.unix
make[1]: Entering directory `/tmp/unrar-nonfree-4.1.4'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/unrar-nonfree-4.1.4'
dh_testdir
dh_testroot
dh_prep
dh_installdirs
install -o root -g root -s -m 0755 unrar debian/unrar/usr/bin/unrar-nonfree
dh_installdocs
dh_installman debian/unrar-nonfree.1
man: unrecognized option '--version'
BusyBox v1.22.0.git (2013-12-25 06:52:05 CET) multi-call binary.

Usage: man [-aw] [MANPAGE]...

Format and display manual page

        -a      Display all pages
        -w      Show page locations

man: unrecognized option '--recode'
BusyBox v1.22.0.git (2013-12-25 06:52:05 CET) multi-call binary.

Usage: man [-aw] [MANPAGE]...

Format and display manual page

        -a      Display all pages
        -w      Show page locations

dh_installman: man --recode UTF-8 ./unrar\-nonfree\.1 > unrar\-nonfree\.1\.new returned exit code 1
make: *** [binary-arch] Error 1
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
Build command 'cd unrar-nonfree-4.1.4 && dpkg-buildpackage -b -uc' failed.
E: Child process failed

To me, it seems like the make process needs the full version of man and not the BusyBox version of it.
Is there a way to install the full man, so I can finally compile unrar?
Technically, yes - but it seems we already have it packaged:
Code:
xbian@xbian ~ $ apt-cache policy unrar
unrar:
  Installed: (none)
  Candidate: 1:4.1.4-1
  Version table:
     1:4.1.4-1 0
        500 http://xbian.brantje.com/ stable/main armhf Packages
unrar-free can't extract multipart archives.

@pix3l
See this: http://raspberrypi.stackexchange.com/questions/3617/how-to-install-unrar-nonfree
As menakite has already implied: You don't need to compile it by yourself and you even don't need to follow the how-to posted by f1vefour.

All you have to do is:
Terminal
sudo apt-get install unrar

and you will get the nonfree version....
(2nd Oct, 2014 12:39 AM)josch Wrote: [ -> ]As menakite has already implied: You don't need to compile it by yourself and you even don't need to follow the how-to posted by f1vefour.

All you have to do is:
Terminal
sudo apt-get install unrar

and you will get the nonfree version....

Thanks, this actually helped.. haha so simple.. Big Grin
He did need to follow the instructions if he wanted to compile it himself.

I assumed he had already tried unrar in the repository and it failed to work.
Reference URL's