Re: greetings from FreeBSD DLL Hell!

2005-03-24 Thread N.J. Thomas
* Bob Johnson [EMAIL PROTECTED] [2005-03-23 22:00:58 -0500]:
 On Wednesday 23 March 2005 08:16 pm, N.J. Thomas wrote:
  pkg_add -r foo. This worked, but it went and downloaded older
  versions of various programs (i.e. Mozilla Firefox 0.9).

 By default, pkg_add uses the packages that were built for your release
 (so everything is consistent).  As a result, when your release gets to
 be a few months old, so do the packages.

Thanks for the tip. I wasn't aware that pkg_add -r was more or less tied
strictly to the release version. I followed your advice and deleted all
the older packages, installed portupgrade, updated the ports tree, and
reinstalled everything I needed.

Things seem to be okay now.

  I installed some packages with pkg_add -r (which used the
  5.3-RELEASE versions of the software), and then installed some other
  stuff with ports, and then updated ports with cvsup and then
  installed yet some more stuff, and now I seem to find myself in the
  FreeBSD equivalent of DLL Hell.

 What do you mean when you say you are in DLL hell?  Is something
 actually not working right?  FreeBSD is pretty good about managing
 libraries.

Well, the specific problem I had was that after doign a fresh install, I
installed some packages with pkg_add. Then I updated ports, and
installed some more stuff. And then when I went back to use pkg_add, it
complained about some program need library v1.4 but v1.6 was installed
on the system (because it had been installed by ports).

thanks,
Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: greetings from FreeBSD DLL Hell!

2005-03-24 Thread N.J. Thomas
* [EMAIL PROTECTED] [2005-03-23 23:06:25 -0500]:
 here is real good install guide.
 http://freebsd.packards-home.net/index.php
 
 It has section on ports and packages.

Cool, it seems like a fairly well written and mostly up to date site.
I'm surprised I hadn't stumbled onto it before. Thanks for the tip.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: greetings from FreeBSD DLL Hell!

2005-03-24 Thread N.J. Thomas
* Joshua Tinnin [EMAIL PROTECTED] [2005-03-23 18:21:05 -0800]:
 Packages are built to work with the particular release specified. Once 
 ports are unfrozen, right before release, they start changing again, 
 and updating new packages for all ports for every minor version bump in 
 the tree is not viable at the moment (12000+ ports), AFAIK, nor would 
 it be in line with freezing ports before release.

Yeah, this was the one thing I didn't understand about packages. I just
assumed it would do the right thing and download the latest version.

  now I seem to find myself in the FreeBSD equivalent of DLL Hell.
  Should I just blow my system away and start from scratch? Is that
  the best course of action to take at this point?
 
 You don't need to reinstall the OS, but it might be simpler for you if
 you deleted all the packages, with pkg_delete -a (from root).

That's what I ended up doing. I deleted all my packages. installed only
the ones I absolutely needed (in my case: zsh, vim, and cvsup), upgraded
ports, and then went from there.

Thank for your help.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: greetings from FreeBSD DLL Hell!

2005-03-24 Thread N.J. Thomas
* Chuck Swiger [EMAIL PROTECTED] [2005-03-23 20:44:39 -0500]:
  now I seem to find myself in the FreeBSD equivalent of DLL Hell.
  Should I just blow my system away and start from scratch?

 Oh, goodness no-- almost anything that goes wrong with a system can be
 fixed without reinstalling.  The key is to solve the problem the right
 way. :-)

Thanks for the tip! I almost blew my system away before I saw your
email. The solution in this case was to delete all the packages (there
were only a few that I had installed anyways), update the ports tree,
and then start installing from there.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


greetings from FreeBSD DLL Hell!

2005-03-23 Thread N.J. Thomas
I installed FreeBSD 5.3-RELEASE and was installing packages via pkg_add
-r foo. This worked, but it went and downloaded older versions of
various programs (i.e. Mozilla Firefox 0.9). How can I tell pkg_add to
use the 5-latest (5-STABLE? RELENG_5_3?) branch? Do I have to update
my sources before I can do this?

So after I installed 5.3 yesterday I installed some packages with
pkg_add -r (which used the 5.3-RELEASE versions of the software), and
then installed some other stuff with ports, and then updated ports with
cvsup and then installed yet some more stuff, and now I seem to find
myself in the FreeBSD equivalent of DLL Hell. Should I just blow my
system away and start from scratch? Is that the best course of action to
take at this point?

thanks,
Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: greetings from FreeBSD DLL Hell!

2005-03-23 Thread Nick Pavlica
Hello,
  You may want to try portupgrade to bring everything up to date. 
Here is a link to a tutorial:

http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html

--Nick
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: greetings from FreeBSD DLL Hell!

2005-03-23 Thread Chuck Swiger
N.J. Thomas wrote:
I installed FreeBSD 5.3-RELEASE and was installing packages via pkg_add
-r foo. This worked, but it went and downloaded older versions of
various programs (i.e. Mozilla Firefox 0.9). How can I tell pkg_add to
use the 5-latest (5-STABLE? RELENG_5_3?) branch? Do I have to update
my sources before I can do this?
You do not have to update the FreeBSD sources to use the latest version of tha 
ports, no.  However, you do need to update the ports tree itself:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html
See section 4.5 in particular, using cvsup, although it sounds like you've 
already done some of this

So after I installed 5.3 yesterday I installed some packages with
pkg_add -r (which used the 5.3-RELEASE versions of the software), and
then installed some other stuff with ports, and then updated ports with
cvsup and then installed yet some more stuff, and now I seem to find
myself in the FreeBSD equivalent of DLL Hell. Should I just blow my
system away and start from scratch? Is that the best course of action to
take at this point?
Oh, goodness no-- almost anything that goes wrong with a system can be fixed 
without reinstalling.  The key is to solve the problem the right way.  :-)

Try installing sysutils/portupgrade, and run portupgrade -ai to begin with. 
 That will likely solve many of your issues, although if you have some of the 
more complicated ports installed (think Perl, KDE, GNOME), consult 
/usr/ports/UPDATING for additional help and suggestions.

--
-Chuck
PS: Another choice besides portupgrade is sysutils/portmanager; it uses a 
different approach to dealing with dependencies that may involve compiling 
more stuff, but also seems to be little more robust in the face of complex 
dependency changes...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: greetings from FreeBSD DLL Hell!

2005-03-23 Thread Joshua Tinnin
On Wednesday 23 March 2005 17:16, N.J. Thomas [EMAIL PROTECTED] wrote:
 I installed FreeBSD 5.3-RELEASE and was installing packages via
 pkg_add -r foo. This worked, but it went and downloaded older
 versions of various programs (i.e. Mozilla Firefox 0.9). How can I
 tell pkg_add to use the 5-latest (5-STABLE? RELENG_5_3?) branch? Do
 I have to update my sources before I can do this?

Packages are built to work with the particular release specified. Once 
ports are unfrozen, right before release, they start changing again, 
and updating new packages for all ports for every minor version bump in 
the tree is not viable at the moment (12000+ ports), AFAIK, nor would 
it be in line with freezing ports before release.

 So after I installed 5.3 yesterday I installed some packages with
 pkg_add -r (which used the 5.3-RELEASE versions of the software), and
 then installed some other stuff with ports, and then updated ports
 with cvsup and then installed yet some more stuff, and now I seem to
 find myself in the FreeBSD equivalent of DLL Hell. Should I just
 blow my system away and start from scratch? Is that the best course
 of action to take at this point?

You don't need to reinstall the OS, but it might be simpler for you if 
you deleted all the packages, with pkg_delete -a (from root). From 
there you can install cvsup and other essentials, but you might 
consider running /bin/sysinstall to reinstall the packages you once 
had, just so you're not running blind.

From there, you can run cvsup and update your ports tree. In some 
instances, you can still upgrade to a package, but in others you can't. 
I find it simpler to build everything on my machine, but I prefer to 
track ports changes. If you're running a server you don't really want 
to track ports all the time, just track security updates, otherwise 
you're going to take it down a lot to upgrade, but if you're running a 
desktop it can be useful, depending. Sometimes you don't really need to 
update from the packages on the install CD, but obviously Firefox does 
need to be updated from 0.9 for security reasons. So, you're going to 
end up installing some packages and building others, which can lead to 
some interesting problems, but it's workable. It might be easier to 
build all from ports, but that's up to you and your CPU cycles. Either 
way, a utility caleld portupgrade will solve most of your dependency 
problems for you.

Here's a good tutorial on how to use cvsup and portupgrade:

http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html

Also, I highly recommend reading the handbook: 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html

You don't have to read all of it, but you probably want to read what is 
relevant to your configuration. It's great documentation, and it can 
help answer many of your questions as situations arise. If you don't 
find the answer there or from searching the list archives (Google can 
be useful, too), then come to the list and ask. This question has been 
asked and answered many times on this list, but I didn't want to leave 
you hanging ;)

- jt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: greetings from FreeBSD DLL Hell!

2005-03-23 Thread Joshua Tinnin
On Wednesday 23 March 2005 18:21, Joshua Tinnin [EMAIL PROTECTED] 
wrote:
 You don't need to reinstall the OS, but it might be simpler for you
 if you deleted all the packages, with pkg_delete -a (from root). From
 there you can install cvsup and other essentials, but you might
 consider running /bin/sysinstall to reinstall the packages you once
 had, just so you're not running blind.

Ack! That should be /usr/sbin/sysinstall

Mea culpa ...

- jt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: greetings from FreeBSD DLL Hell!

2005-03-23 Thread Bob Johnson
On Wednesday 23 March 2005 08:16 pm, N.J. Thomas wrote:
 I installed FreeBSD 5.3-RELEASE and was installing packages via pkg_add
 -r foo. This worked, but it went and downloaded older versions of
 various programs (i.e. Mozilla Firefox 0.9). How can I tell pkg_add to
 use the 5-latest (5-STABLE? RELENG_5_3?) branch? Do I have to update
 my sources before I can do this?

By default, pkg_add uses the packages that were built for your release (so 
everything is consistent).  As a result, when your release 
gets to be a few months old, so do the packages.

One approach to solving your problem is to go to 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-stable/All/ and 
download the package you want, then install it with pkg_add.  

Another is to set the appropriate environment variable to tell pkg_add to use 
that URL as the location from which to automatically fetch packages (I don't 
remember the variable, try to decipher the man page).

That said, the solution I usually use is to upgrade everything from ports 
rather than packages.  One way to accomplish this is to install the 
portupgrade port, then use it to upgrade a port/package and everything it 
depends on:

First, install portupgrade.  Then cvsup your ports collection so it is as 
recent as possible, then fetch the updated index so you don't have to wait 
for your system to build one:

# cvsup ports-supfile
# cd /usr/ports
# make fetchindex

then upgrade the ports that need upgrading:

# portupgrade -R portname

This will upgrade (from source) the port (or package) named portname, as well 
as all ports that it requires.  There can be some glitches with this method 
on some ports, so read the man page and look at the examples it gives.  
Sometimes a dependency won't update automagically and you will need to 
portupgrade it separately, then go back and issue the top-level command again 
and let it pick up where it left off.  This method can take a very very long 
time if something big gets rebuilt from source.

You can also tell portupgrade to install packages rather than ports.  I 
believe portupgrade uses the PKG_FETCH environment variable to tell it where 
to fetch packages from, so set it to the ftp URL above and you should get the 
latest packages, e.g. in bash, something like
# export PKG_FETCH ftp://(etc) ; portupgrade -RPP portname

You can even upgrade every package/port installed on your system with 
something like 

# export PGK_FETCH ftp://(...) ; portupgrade -RrP *



The portmanager fans out there will tell you it is easier to use portmanager 
than portupgrade, but I've never used it, so you'll have to wait for their 
suggestions.



 So after I installed 5.3 yesterday I installed some packages with
 pkg_add -r (which used the 5.3-RELEASE versions of the software), and
 then installed some other stuff with ports, and then updated ports with
 cvsup and then installed yet some more stuff, and now I seem to find
 myself in the FreeBSD equivalent of DLL Hell. Should I just blow my
 system away and start from scratch? Is that the best course of action to
 take at this point?


What do you mean when you say you are in DLL hell?  Is something actually not 
working right?  FreeBSD is pretty good about managing libraries.  It should 
not be a problem to have multiple versions of the same library; different 
programs will use the version they were built for.  This may not be true for 
Linux ports, though (not sure).

Anyway, any (or a combination of) the methods I described above should be able 
to get everything straightened out after you fix the parts I likely 
remembered wrong.

 thanks,
 Thomas

Good luck.

- Bob
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: greetings from FreeBSD DLL Hell!

2005-03-23 Thread bob
here is real good install guide.
http://freebsd.packards-home.net/index.php

It has section on ports and packages.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of N.J. Thomas
Sent: Wednesday, March 23, 2005 8:16 PM
To: [EMAIL PROTECTED]
Subject: greetings from FreeBSD DLL Hell!

I installed FreeBSD 5.3-RELEASE and was installing packages via
pkg_add
-r foo. This worked, but it went and downloaded older versions of
various programs (i.e. Mozilla Firefox 0.9). How can I tell pkg_add
to
use the 5-latest (5-STABLE? RELENG_5_3?) branch? Do I have to
update
my sources before I can do this?

So after I installed 5.3 yesterday I installed some packages with
pkg_add -r (which used the 5.3-RELEASE versions of the software),
and
then installed some other stuff with ports, and then updated ports
with
cvsup and then installed yet some more stuff, and now I seem to find
myself in the FreeBSD equivalent of DLL Hell. Should I just blow
my
system away and start from scratch? Is that the best course of
action to
take at this point?

thanks,
Thomas

--
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]