Nov 21
Compiling dar and kdar on Fedora Core 3
I needed to backup my old FC3 system ready to upgrade. I wanted to use dar to do it as I’ve had success with this on Windows. Luckily on Linux there’s a user interface available for it - Kdar.
I couldn’t find any pre-built binary packages for either of these (I didn’t look very hard) so I decided to compile from source. There were a few problems which I faced on the way I want to document them here so I don’t forget how to solve them in future.
Dar
- Ran the following commands to build dar
./configure --enable-mode=64 && make - The configure script failed at first with the error complaining that it couldn’t find
/lib/libattr.a. It appears in FC3 the libattr shared object files are in/libbut libattr.a is in/usr/lib. This problem is quickly fixed by making a symlink to libattr.a from/liblike this:ln -s /usr/lib/libattr.a /lib/ - Once compiled ok, running
sudo make installnow successfully installed it under the/usr/localdirectory.
Kdar
- I used the following commands to build kdar:
./configure --enable-mode=64 --prefix=/usr/local --disable-debug && make - Running the configure script produced a confusing error; although I’d built and installed dar, it could not find and link to libdar64. After a little hunting on the net I discovered that I needed to run the
ldconfigcommand to cataloque the newly installed libdar.ldconfigdoes not search/usr/local/libby default so I added this directory to it’s search path (runman ldconfigto find out how to do this). - The final problem I faced was that it could not find
/lib/libattr.la. In fact this has the same solution as the error described above when compiling dar.
