|
NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD. |
|
Thread Tools | Display Modes |
|
|||
Failure to finish installing PHP for LAMP
When I try to build and install PHP when trying to install LAMP (according to how_to_install_a_lamp_server on the netbsd wiki), I get the following failure message:
===> Install binary package of libxml2-2.8.0nb2 pkg_add: A different version of libxml2-2.8.0nb2 is already installed: libxml2-2.7.8nb10 pkg_add: 1 package addition failed *** Error code 1 I can't delete the old libxml2 since it is required by various other installed packages such as openbox, various xfce4 packages, etc. Some system info: System running on bsd.xxx: NetBSD 5.1.2 i386 NetBSD 5.1.2 (GENERIC) #0: Thu Feb 2 17:22:10 UTC 2012 builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-2-RELEASE/i386/201202021012Z-obj/home/builds/ab/netbsd-5-1-2-RELEASE/src/sys/arch/i386/compile/GENERIC model name : Intel(R) Celeron(R) CPU 1.70GHz MemTotal: 2016380 kB MemFree: 1585288 kB My pkgsrc-supfile looks like *default tag=. *default release=cvs *default delete use-rel-suffix *default umask=002 *default host=cvsup.us.netbsd.org *default base=/home/peter netbsd-pkgsrc My .xinitrc file is set to run openbox right now, though I have xfce4 installed. Are my pkgscrc sources out of sync with packages that I formerly installed as binaries, such as the whole X system, openbox, xfce4, etc? - Peter |
|
|||
Quote:
http://netbsd.org/mailinglists/#pkgsrc-users |
|
|||
Thank you - I'll check the netbsd forum link!
|
|
|||
Having subscribed now, I see no instructions on how to post to that list.
|
|
|||
Quote:
The point here is that mailing lists are simple. You know the address of the list, you have successfully subscribed, so now you can post messages, & you can continue to post messages until:
|
|
|||
Thank youi. I'll do that!
|
|
|||
So what did you find out, Velikij?
I've encountered a similar problem. I'm using NetBSD 6.0.1 GENERIC i386. Yesterday I installed Emacs, first as a binary package via pkgin. But whenever I run it, there came segmentation fault. I deleted Emacs and decided to compile it via pkgsrc. This time it was interrupted by the disagreement between 2 versions of the same dependency: Quote:
What can be done here, is there any option to add to pkgsrc in order to make it overwrite older versions of files? |
|
||||
I've encountered this issue during system-wide updates and found out that there are two branches of PHP available, thus I had to manually specify which package needs to be updated.
Also, when I encountered version conflicts, I found out that the best way to deal with them is by dropping out of X, into the good old terminal and run: Code:
/usr/pkg/sbin/pkg_add -uu MyPackage Supposing you have PHP installed, here is a PHP script which creates a "raw" update script needed for a fail-safe system-wide update. It prepares an update which starts from the core dependencies (the most depended upon, like PERL) and works its way out to the leafs (those without dependencies, like TCSH). After it generates the update sequence, YOU NEED TO REVIEW IT "LINE BY LINE" ... REMEMBER ... ALWAYS DOUBLE CHECK. Here is the script: PHP Code:
__________________
A daemon in need is a daemon indeed. Last edited by classicmanpro; 10th March 2013 at 11:22 AM. Reason: Grammar. |
|
|||
Thanks, classicmanpro, but what is the difference between your script and "pkgin full-upgrade"?
Having said that, "pkgin full-upgrade" didn't help me in any way, as it said all installed packages were up to date (as glib2's latest version was available only from sources). |
|
|||
As far as I can remember, it used to be a plague for NetBSD when I was messing with it some 5-6 years ago, when a broken connection could destroy the fetching of dependencies. Now I'm happy to see that pkgin re-launchs a download in case it didn't finish correctly.
|
Tags |
lamp, php, pkgsrc |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The Failure of the GPL | vermaden | Off-Topic | 9 | 6th September 2009 05:11 PM |
Make world failure | disappearedng | FreeBSD General | 1 | 16th January 2009 12:04 PM |
A failure in password security | TerryP | Off-Topic | 3 | 25th September 2008 03:19 AM |
Libpurple 2.4.2 config failure. | KernelPanic | FreeBSD Ports and Packages | 3 | 23rd May 2008 06:19 PM |
BitchX build failure | mahoney | FreeBSD Ports and Packages | 1 | 8th May 2008 07:48 AM |