DCH++ on FreeBSD

DCH++ has been abandoned, this forum serves mainly as an archive

Moderator: Moderators

Locked
Phantom
Posts: 72
Joined: 2003-01-11 20:13
Location: New Zealand

DCH++ on FreeBSD

Post by Phantom » 2006-05-05 03:47

After a bit of pain trying to get DCH++ to compile on FreeBSD 6.0 I thought I would post a few hints for other people having trouble.

Firstly, things like automake, autoconf and aclocal are all compiled on FreeBSD with the version number tacked onto the end. E.g. aclocal -> /usr/local/bin/aclocal19 etc.

My solution to this problem was to create a folder (e.g. /etc/symlinks/)
Inside that directory I did:

Code: Select all

ln -s /usr/local/bin/aclocal19 aclocal
ln -s /usr/local/bin/autoconf259 autoconf
ln -s /usr/local/bin/autoheader259 autoheader
ln -s /usr/local/bin/autom4te259 autom4te
ln -s /usr/local/bin/automake19 automake
ln -s /usr/local/bin/autoreconf259 autoreconf
ln -s /usr/local/bin/autoscan259 autoscan
ln -s /usr/local/bin/autoupdate259 autoupdate
ln -s /usr/local/bin/ifnames259 ifnames
I know that not all of those are required, but might be useful for building other things too :) (remember to change them if you upgrade automake or autoconf)

Next I added this directory (/etc/symlinks) to my $PATH (in my case I did it in /etc/profile)

After a reboot (just to be safe, I know you can just reload the profile etc or path but meh :P) you should be able to type something like aclocal --version and get a response.

The next thing I had to fix were the libtool errors.

Code: Select all

echo '/usr/local/share/aclocal' >> /usr/local/share/aclocal19/dirlist
After that it worked fine for me :)
Hope that helps someone else who is struggling.

Locked