errors with dependant packages while installing ports.
Hi, I seem to get failures just about every time i try to install anything: in particular errors with dependant packages: An older version of whatever/whatever is already installed... now, on attempts to update any of these dependancy packages i break my system... so. do i just accept i cannot update or run certain things, or is there some trick t this i am missing...? please 'CC' me as i am on digest mode... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: errors with dependant packages while installing ports.
Hi, # cd /usr/ports/xxx/directory of port that wont compile # make deinstall # make install or # make install clean or # make package works for me without any problems Seeya David Lodeiro Hi, I seem to get failures just about every time i try to install anything: in particular errors with dependant packages: An older version of whatever/whatever is already installed... now, on attempts to update any of these dependancy packages i break my system... so. do i just accept i cannot update or run certain things, or is there some trick t this i am missing...? please 'CC' me as i am on digest mode... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: errors with dependant packages while installing ports.
On Mon, Oct 20, 2003 at 11:06:40PM +, carmoda wrote: I seem to get failures just about every time i try to install anything: in particular errors with dependant packages: An older version of whatever/whatever is already installed... now, on attempts to update any of these dependancy packages i break my system... so. do i just accept i cannot update or run certain things, or is there some trick t this i am missing...? please 'CC' me as i am on digest mode... This is the main problem that portupgrade(1) solves: package dependency ordering. Generally what happens is that a port looks for, say, a particular version of a shared library. If you've got an older version of the shared library installed, the test to find the particular shared library will fail, and the ports system will try and re-install the dependent package. As you've discovered, trying to install a package on top of an older version of itself generates errors. The trick is to update the dependencies first, and then the ports that depend on them. It's also a good rule of thumb to take all your ports/packages from a consistent source: ie. always use the packages directory for your particular release from the FTP servers, or always install from a freshly cvsup(1)'d ports tree. That isn't a hard and fast rule, but it generally helps you to avoid this sort of version mismatch thing if you stick to it as closely as you can. Note that sometimes a port providing a particular shared library may have any number of dependents, and they can be broken by your updating the shared library. The gettext port seems to be a prime offender in this reguard, as witnessed by the regular floods of messages to this list about 'libintl.so.N not found'. portupgrade(1) gets around that shared library problem by keeping a copy of old version of shlibs in /usr/local/lib/compat/pkg and there will generally be a heads-up e-mail to [EMAIL PROTECTED] when some particularly important port gets updated. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: errors with dependant packages while installing ports.
Matthew Seaman [EMAIL PROTECTED] writes: On Mon, Oct 20, 2003 at 11:06:40PM +, carmoda wrote: I seem to get failures just about every time i try to install anything: in particular errors with dependant packages: An older version of whatever/whatever is already installed... now, on attempts to update any of these dependancy packages i break my system... so. do i just accept i cannot update or run certain things, or is there some trick t this i am missing...? please 'CC' me as i am on digest mode... This is the main problem that portupgrade(1) solves: package dependency ordering. *Most* of the time, just building from ports instead of installing from packages solves this particular case of the dependency problem. If the new program really *requires* an updated version of the dependency (as opposed to the packages case, where it's linked against that version but could -- typically -- just as easily have been linked against an older version), then you need to update the dependency, and everything else that's dependent on it. This is where portupgrade really saves you an awful lot of (tedious) effort. Telling the two cases apart can be a bit tricky for non-programmers, but building the port will usually tell you. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]