On 2011 Sep 25 (Sun) at 08:28:10 +0200 (+0200), Remco wrote: :Vijay Sankar wrote: : :> Is it possible that you are installing packages from the wrong :> version? I have done that a couple of times because I copied .profile :> files from the wrong server :> :> Is your PKG_PATH set to /pub/OpenBSD/4.9/packages/amd64, for example? :> : :To avoid release/architecture mixups you could use something :like "/pub/OpenBSD/`uname -r`/packages/`uname -m`/". : :I haven't got a CURRENT system available right know but I reckon `uname -r` :could also be used to conditionally set package path :to "/pub/OpenBSD/snapshots/packages/`uname -m`/" when running a :non-release version. :
I use the following on all of my boxes. export PKG_PATH=ftp://ftp.eu.openbsd.org/pub/OpenBSD/snapshots/packages/`arch -s`/ The advantage of arch -s, is that it chooses the application arch, not just the kernel arch. Very important on ppc, arm, mips, etc architectures. On those systems, uname -m gives me the wrong value. $ uname -m loongson $ arch -s mips64el -- You don't sew with a fork, so I see no reason to eat with knitting needles. -- Miss Piggy, on eating Chinese Food

