Can’t install rar on Freebsd 7 AMD64
Earlier tonight I was attempting to install ‘rar’ onto my FreeBSD system. unrar was already installed. Weird how I had one but not the other. Anyway, when I attempted to install the port, I got an error!
cd /usr/ports/archivers/rar make ===> rar-3.71,2 requires 32-bit libraries installed under /usr/lib32. *** Error code 1 Stop in /usr/ports/archivers/rar.
I’m using the AMD64 architecture (its a 64 bit system). Apparently rar requires 32 bit libraries to compile itself. Going on a hunt for a solution, I first checked #freebsd on freenode. Someone suggested I update my ports tree.
I fell back to the method I used before, deleting the existing ports tree, and downloading a new one with csup. One of these days I’ll look into using portsnap!
After that was finished, I tried again.
===> rar-3.80,2 requires 32-bit libraries installed under /usr/lib32. *** Error code 1 Stop in /usr/ports/archivers/rar.
With the same result! (although the version of rar is a little newer!). Taking my query to Google, I was able to find a suggestion from someone about editing the ports makefile.
Trying the suggested fix, I commented out a line in the Makefile.
#IA32_BINARY_PORT= YES
With that change, I was able to install the port successfully. And it worked! Hopefully I don’t run into any issues down the line with it though. I’m sure the port maintainer knew what they were doing when the Makefile was generated.

Thanks this helped
abs
9 Jan 09 at 9:47 pm edit_comment_link(__('Edit', 'sandbox'), ' ', ''); ?>
Rar, being a 3rd party application, is available as a 32 bits binary. It requires 32 bit libs to run. An easy way to obtain these on a 64 bit system is to use sysinstall, the system installer. I assume you have root permissions. Go to Configure (post install), Packages, check lib32 from the list, and enter continue. The libs will now be installed from the source you select (use ftp in most cases).
Niek
30 Sep 09 at 5:53 am edit_comment_link(__('Edit', 'sandbox'), ' ', ''); ?>