Date: Tue, 03 May 2005 19:31:03 +0300 From: Toomas Aas <toomas.aas@raad.tartu.ee> To: Lisa Casey <lisa@jellico.com> Cc: freebsd-questions@freebsd.org Subject: Re: [Mimedefang] Installing on FreeBSD Message-ID: <4277A747.3060805@raad.tartu.ee> In-Reply-To: <007301c54ffa$9bfb1970$d580a23f@lisac> References: <001101c54f74$3eef54c0$14d71840@lisakc> <007301c54ffa$9bfb1970$d580a23f@lisac>
next in thread | previous in thread | raw e-mail | index | archive | help
Lisa Casey wrote: > Ok but this basically sucks. I'm sure I should be installing from ports= =2E=20 Me too. > But I don't seem to be able to do that, and I do know how to install=20 > source files. >=20 > When I try to do a pkg_add to install the mimedefang port that I've=20 > downloaded from freebsd.org, I get this: pkg_add installs package (a pre-compiled binary), not port. > radius# pkg_add -r mimedefang.tar.gz > Error: FTP Unable to get=20 > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4 > -stable/Latest/mimedefang.tar.gz.tgz: File unavailable (e.g., file not = > found, no > access) > pkg_add: unable to fetch=20 > `ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages- > 4-stable/Latest/mimedefang.tar.gz.tgz' by URL I have rarely, if ever at all, used pkg_add (I prefer ports), but I=20 don't think that using argument 'mimedefang.tar.gz' is correct. > So I moved the tarball over to /usr/ports/distfiles, extracted it and=20 > ran make.=20 If you have decided to install from source tarball, you should perform=20 the installation outside the ports tree. That resulted in: >=20 > radius# more distinfo > MD5 (mimedefang-2.51.tar.gz) =3D 9c4df4ec349e414f893c940ff563bea5 > SIZE (mimedefang-2.51.tar.gz) =3D 302006 > radius# make > "Makefile", line 53: Malformed conditional (${PERL_LEVEL} < 500601) > "Makefile", line 53: Need an operator > "Makefile", line 55: if-less endif > "Makefile", line 55: Need an operator > make: fatal errors encountered -- cannot continue You are probably trying to run BSD make against a GNU makefile. If you=20 really want to install from source tarball, use gmake. > At this rate it'll be forever before I get mimedefang installed and in = > the meantime I have customers upset because they are receiving=20 > unacceptable levels of spam. Surely someone can help me out with=20 > installing mimedefang from source=20 At this stage I'd still recommend using ports. Just read 'man ports', as = well as Section 4.5 of the Handbook, to get your confusion cleared up :-)= --=20 Toomas Aas -------------------------------------------------------- |arvutiv=F5rgu peaspetsialist | head specialist on computer networks| |Tartu Linnakantselei | Tartu City Office | ----------------------------------------------------- +372 736 1274
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4277A747.3060805>