pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [Linux] pkg_add fails saying package is for x86_64 and this is amd64



On Sat, Apr 13, 2019 at 10:52:56PM +0530, Mayuresh wrote:
> On Linux, only for some packages, this error is occuring:
> 
> E.g. libdrm:
> 
> pkg_add: Warning: package `libdrm-2.4.97' was built for a platform:
> pkg_add: Linux/x86_64 3.16.0 (pkg) vs. Linux/amd64 3.16.0 (this host)
> pkg_add: 1 package addition failed
> 
> 
> I have latest pkg_install installed.

This error started occurring only after I added /usr/pkg/bin:$PATH in
~/.bashrc. If I rollback that change the error goes away.

However then another error starts:

configure:13947: $PKG_CONFIG --exists --print-errors "pciaccess >= 0.10"
Package pciaccess was not found in the pkg-config search path.


Also tried installing native pkgconf (apt-get install pkgconf), but above
error continues. It goes away only by setting above PATH, which again
reintroduces x86_64/amd64 error.

Mayuresh


Home | Main Index | Thread Index | Old Index