php depends on libxml, pkg_add tries to download it, and downloaded archive is broken. pkg_add uses "/etc/installurl" to find website to download packages. You may try different website (echo "https://ftp.openbsd.org/pub/OpenBSD/" > /etc/installurl)
Also, try to download this file and unpack it. If $ wget https://ftp.fau.de/pub/OpenBSD/6.3/packages/amd64/libxml-2.9.8.tgz $ tar xvfz libxml-2.9.8.tgz (you may need pkg_add wget) Does it work? On Mon, Apr 16, 2018 at 4:37 PM, Michael Maurer <maurer.mich...@gmail.com> wrote: > I'm having trouble setting up php on a fresh install of 6.3. This is what > I get > > ------------- > burt# pkg_add php > quirks-2.414 signed on 2018-03-28T14:24:37Z > Ambiguous: choose package for php > a 0: <None> > 1: php-5.6.34 > 2: php-7.0.28 > Your choice: 1 > Fatal error: Ustar > [https://ftp.fau.de/pub/OpenBSD/6.3/packages/amd64/ > libxml-2.9.8.tgz][share/gtk-doc/html/libxml2/libxml2-parserInternals.html > ]: > Premature end of archive > Fatal error: Installation of libxml-2.9.8 failed, partial installation > recorded as partial-libxml-2.9.8 > at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 801. > ------------- > > choice doesn't really matter, same answer. I tried googling the error > code, but found nothing, hence why I post here. New to OpenBSD as > well. > > cheers, > Michael > >