From owner-freebsd-questions@FreeBSD.ORG Wed Oct 22 15:16:55 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C35AC10656EA for ; Wed, 22 Oct 2008 15:16:55 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 40F878FC20 for ; Wed, 22 Oct 2008 15:16:54 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from lack-of-gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id m9MFGe4q028399 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Oct 2008 16:16:47 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk m9MFGe4q028399 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1224688607; bh=ftgbD/uVnO1u20 gMUbGNose4Vvl8hwuygAtaioEv/qk=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type: Content-Transfer-Encoding:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<48FF43D8.6 010209@infracaninophile.co.uk>|Date:=20Wed,=2022=20Oct=202008=2016: 16:40=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User-Agent:=20Thunderbird= 202.0.0.17=20(X11/20081002)|MIME-Version:=201.0|To:=20Mike=20Clarke =20|CC:=20freebsd-questions@freebsd.or g|Subject:=20Re:=20Can't=20upgrade=20or=20deinstall=20phpMyAdmin|Re ferences:=20<200810221556.28731.jmc-freebsd2@milibyte.co.uk>|In-Rep ly-To:=20<200810221556.28731.jmc-freebsd2@milibyte.co.uk>|X-Enigmai l-Version:=200.95.6|Content-Type:=20text/plain=3B=20charset=3DUTF-8 =3B=20format=3Dflowed|Content-Transfer-Encoding:=207bit; b=HIrZkyQF +wVAXa42nExPbHtt9DcLTE4KUHVHB9vCx5j1W+s4RHCBMGU1Y1+gofjS6ccjYYQEOx7 y+jAD+mVXwWOn5oS8npL5Ru+4jmBbTiPeSd2J/CM3qGZbgng8oJi0ZBVgUFbbfFx1Du G8FYed12J6TTh7VJ7Lii4TG0t1Wno= Message-ID: <48FF43D8.6010209@infracaninophile.co.uk> Date: Wed, 22 Oct 2008 16:16:40 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.17 (X11/20081002) MIME-Version: 1.0 To: Mike Clarke References: <200810221556.28731.jmc-freebsd2@milibyte.co.uk> In-Reply-To: <200810221556.28731.jmc-freebsd2@milibyte.co.uk> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [81.187.76.162]); Wed, 22 Oct 2008 16:16:47 +0100 (BST) X-Virus-Scanned: ClamAV 0.94/8468/Wed Oct 22 13:35:20 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,SPF_FAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Can't upgrade or deinstall phpMyAdmin X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2008 15:16:55 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Mike Clarke wrote: | FreeBSD curlew.lan 6.4-RC1 FreeBSD 6.4-RC1 #2: Sat Oct 18 23:08:47 BST | 2008 root@curlew.lan:/usr/obj/usr/src/sys/CURLEW i386 | | I'm trying to upgrade phpMyAdmin from 2.11.5.2 to 3.0.0_1 but all | attempts fail. If I try "make deinstall" I get the following result: | | ------------------------------------------------------------- | curlew:/usr/ports/databases/phpmyadmin# make deinstall | ===> Deinstalling for databases/phpmyadmin | ===> Deinstalling phpMyAdmin-2.11.5.2 | Segmentation fault | *** Error code 139 | | Stop in /usr/ports/databases/phpmyadmin. | ------------------------------------------------------------- | | Things go wrong very early in the process, here's part of the output | from truss: | | ------------------------------------------------------------- | ===> Deinstalling for databases/phpmyadmin | wait4(0xffffffff,0xbfbfde38,0x0,0x0) = 7 (0x7) | SIGNAL 20 (SIGCHLD) | SIGNAL 20 (SIGCHLD) | sigreturn(0xbfbfdb00) = 7 (0x7) | wait4(0xffffffff,0xbfbfde38,0x0,0x0) = 1623 (0x657) | vfork() = 1624 (0x658) | ===> Deinstalling phpMyAdmin-2.11.5.2 | Segmentation fault | wait4(0xffffffff,0xbfbfde38,0x0,0x0) = 7 (0x7) | SIGNAL 20 (SIGCHLD) | SIGNAL 20 (SIGCHLD) | sigreturn(0xbfbfdb00) = 7 (0x7) | wait4(0xffffffff,0xbfbfde38,0x0,0x0) = 1624 (0x658) | fstat(1,{mode=crw------- ,inode=140,size=0,blksize=4096}) = 0 (0x0) | ioctl(1,TIOCGETA,0xbfbfd700) = 0 (0x0) | *** Error code 139 | write(1,"*** Error code 139\n",19) = 19 (0x13) | ------------------------------------------------------------- | | I've tried portsdb -uf and pkgdb with the F, L and u options but still | no joy. | | I'm not sure if this is relevant but a while ago I deinstalled apache | 1.3 and php 4 but forgot to deinstall phpMyAdmin. Today I installed | apache 2.2 with php 5 and unsuccessfully tried to deinstall the old | phpMyAdmin before doing this. Apache and php installed OK and the old | phpMyAdmin works but really ought to be upgraded. I tried to deinstall | phpMyAdmin again after installing the new packages but still have the | same problem. | | What should I do to persuade the old version to go? | Hmmm... not entirely sure what has actually gone wrong there, but I suspect your /var/db/pkg directory is probably in a bit of a mess. Deinstalling phpMyAdmin is simply a matter of removing almost all of the files under /usr/local/www/phpMyAdmin -- the only one the port tries to preserve is config.inc.php Can you try: ~ # pkg_delete -f phpMyAdmin-2.11.5.2 If the worst comes to the worst, you can do this (which is certainly *not* recommended in the general case, just it happens to work for phpMyAdmin which is a port without other things depending on it, and that installs everything into one directory): ~ # cd /usr/local/www ~ # cp phpMyAdmin/config.inc.php /root ~ # rm -rf phpMyAdmin ~ # cd /var/db/pkg ~ # rm -rf phpMyAdmin-2.11.5.2 ~ # pkgdb -F Note: there's no need to reinstall phpMyAdmin because you've upgraded Apache or even PHP. phpMyAdmin is all native PHP code and identical on disk for whatever combination of PHP interpreter and web server you use. You just need to copy the Apache config stuff into the new httpd.conf (ie. based on what 'pkg_info -Dx phpMyAdmin' produces). Note2: 3.0.1 will be out soon. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 ~ 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate ~ Kent, CT11 9PW, UK -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkj/Q9gACgkQ3jDkPpsZ+VZECwCglft9jndSoSo4D3RaOfYomvjO 7n4Anjtzpvq9G4HAfwCxKUisR3oS0o4Y =JabP -----END PGP SIGNATURE-----