Subject: Re: Problems installing from pkgsrc
To: Vincent van Scherpenseel <mailinglists@vanscherpenseel.nl>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 02/11/2004 12:38:22
In message <200402111827.37758.mailinglists@vanscherpenseel.nl>, Vincent van Sc
herpenseel writes:
>Hello list,
>
>I posted the following problem to comp.unix.bsd.netbsd.misc on USENET
>(<c0dh78$2nf4$1@beast.euro.net>), but since that group is near dead, and I am
>really in need of an answer, I decided to post it to this mailinglist as
>well. I'm new to this mailinglist, so I also wanted to say hello: hi! :)
>
>I just did a total fresh install of NetBSD 1.6.1 (i386) from scratch. No
>problems with the install, so the first thing I decided to do after the
>install was installing my favorite shell (bash). So, I downloaded
>pkgsrc.tar.gz from ftp.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/ and
>after a little time unpacking I cd'ed into /usr/pkgsrc/shells/bash2 and
>typed: 'make'. Here's the output I got back:
>
>---
>pkg_info: unknown option -- K
>usage: pkg_info [-BbcDdFfIikLmnpqRrSsVvh] [-e package] [-l prefix]
> pkg-name [pkg-name ...]
> pkg_info -a [flags]
>pkg_info: unknown option -- K
>usage: pkg_info [-BbcDdFfIikLmnpqRrSsVvh] [-e package] [-l prefix]
> pkg-name [pkg-name ...]
> pkg_info -a [flags]
>make: "/usr/pkgsrc/shells/bash2/../../mk/compiler/../../mk/compiler/gcc.mk"
>line 311: Malformed conditional (!empty(_LANGUAGES.gcc))
>make: "/usr/pkgsrc/shells/bash2/../../mk/compiler/../../mk/compiler/gcc.mk"
>line 348: if-less endif
>make: "/usr/pkgsrc/shells/bash2/../../mk/compiler/../../mk/compiler/gcc.mk"
>line 348: Need an operator
>make: Fatal errors encountered -- cannot continue
>
>make: stopped in /usr/pkgsrc/shells/bash2
>---
>
>Does anyone know what's wrong? It seems to me that pkg_info is incompatible
>with the current pkgsrc, or am I over-looking something else? Please help
>me out here.
I don't know for sure; I do know that on some occasions, I've been told
that my package tools were out of date, and that I need to
cd /usr/pkgsrc/pkgtools/pkg_install
make install
At least, I *think* that's what I've done...
--Steve Bellovin, http://www.research.att.com/~smb