Re: Registry corrupt?
On Monday 26 January 2009 03:27:43 Jack L. Stone wrote: > At 04:27 PM 1.25.2009 -0900, you wrote: > >On Saturday 24 January 2009 04:06:39 Jack L. Stone wrote: > >> At 04:33 PM 1.23.2009 +0100, cpghost wrote: > >> >On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote: > >> >> On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone > >> > >> BUT, it is executable and using the exact path to the program still > >> gives this error: > >> /usr/local/bin/fastest_cvsup: not found > > > >file /usr/bin/perl will give you the answer. > > > >-- > >Mel > > Yes, know it's perl and here's how I really use fastest_cvsup: > # /usr/local/bin/cvsup -g -L 2 -h `(fastest_cvsup -q -c us )` \ > # /root/kernels/7.0.src-supfile > > The above finds the fastest fbsd source and cvsup's from it. But, was > getting "fastest_cvsup not found" fastest_cvsup did not find perl. Your /usr/bin/perl is a *broken* symlink to a perl version that does not exist anymore, which file /usr/bin/perl would show you if you actually did run that command. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
On Saturday 24 January 2009 04:06:39 Jack L. Stone wrote: > At 04:33 PM 1.23.2009 +0100, cpghost wrote: > >On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote: > >> On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone > > wrote: > >> > During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange > >> > happened. Some of the programs will not run after rehash or even when > >> > given the precise path to the program. System doesn't "see" several > >> > but not all programs. I've upgraded several servers (using source > >> > files -- cvsup) withoug any such problem. It's just this one machine. > > > >Some programs will not run because of a library version bump. Those > >programs will need to be recompiled, i.e. rebuild all ports. > > > >You can check this by running 'ldd' on the specific program. Let's > >assume that you have zip installed: > > > >$ ldd /usr/local/bin/zip > >/usr/local/bin/zip: > >libbz2.so.3 => /usr/lib/libbz2.so.3 (0x80065c000) > >libc.so.7 => /lib/libc.so.7 (0x80076c000) > > Thanks for that tip. Here's output of one of the programs that doesn't run: > ldd /usr/local/bin/fastest_cvsup > ldd: /usr/local/bin/fastest_cvsup: not a dynamic executable > > BUT, it is executable and using the exact path to the program still gives > this error: > /usr/local/bin/fastest_cvsup: not found file /usr/bin/perl will give you the answer. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
Wojciech Puchar wrote: > >> describe something more. > >> and what you mean "rehash"? > > > > Rehashing forces the shell to "reinitialise" (for want of a > > better term) so that it rechecks the path and can sometimes > > discover new programs installed if they don't seem to work ... > > ok you mean shell rehashing. so PATH is missing something Or an executable was added to one of the PATH directories since the last time PATH was set or the "rehash" command was issued, e.g. when a port was installed or upgraded. See tcsh(1) for details. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
Jack L. Stone wrote: At 04:33 PM 1.23.2009 +0100, cpghost wrote: On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote: On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone wrote: During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange happened. Some of the programs will not run after rehash or even when given the precise path to the program. System doesn't "see" several but not all programs. I've upgraded several servers (using source files -- cvsup) withoug any such problem. It's just this one machine. Some programs will not run because of a library version bump. Those programs will need to be recompiled, i.e. rebuild all ports. You can check this by running 'ldd' on the specific program. Let's assume that you have zip installed: $ ldd /usr/local/bin/zip /usr/local/bin/zip: libbz2.so.3 => /usr/lib/libbz2.so.3 (0x80065c000) libc.so.7 => /lib/libc.so.7 (0x80076c000) Thanks for that tip. Here's output of one of the programs that doesn't run: ldd /usr/local/bin/fastest_cvsup ldd: /usr/local/bin/fastest_cvsup: not a dynamic executable BUT, it is executable and using the exact path to the program still gives this error: /usr/local/bin/fastest_cvsup: not found Yes, I did re-install the port too. No dice. Again MOST all programs run except for this one and maybe a couple others that may be causing buildworld to fail. Strange! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american is the shebang line invalid? head -1 /usr/local/bin/fastest_cvsup and see if the program on that line is truly on your system: ls -lF The error above makes it look like it's the command line that's missing, but the shell will use the command line argument when the interpreter is missing. Good luck! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
Some of the programs will not run after rehash or even when given the precise path to the program. System doesn't "see" several but not all programs. I've upgraded several servers (using source files -- cvsup) withoug any such problem. It's just this one machine. BTW2: Yes, I do know this isn't windows and doesn't have a "registry" per se in that regard, but "something" does keep track of the programs package manages has it's database in /var/db/pkg but it's COMPLETELY different that registry. it only keep track of package files etc. installed and I've never located that place/file/db not having a crucial reason to before. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
On Sat, Jan 24, 2009 at 07:53:47AM -0600, Jack L. Stone wrote: > At 07:29 AM 1.24.2009 -0600, Jack L. Stone wrote: > >At 07:06 AM 1.24.2009 -0600, Jack L. Stone wrote: > >>At 04:33 PM 1.23.2009 +0100, cpghost wrote: > >>>On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote: > On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone > >>wrote: > > > During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange > >happened. > > Some of the programs will not run after rehash or even when given the > > precise path to the program. System doesn't "see" several but not all > > programs. I've upgraded several servers (using source files -- cvsup) > > withoug any such problem. It's just this one machine. > >>> > > > > BTW2: Yes, I do know this isn't windows and doesn't have a "registry" per > se in that regard, but "something" does keep track of the programs > installed and I've never located that place/file/db not having a crucial > reason to before. Ports and packages are, if you like, 'registered' in subdirectories of /var/db/pkg Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgpXJ9CDDMjUk.pgp Description: PGP signature
Re: Registry corrupt?
At 07:29 AM 1.24.2009 -0600, Jack L. Stone wrote: >At 07:06 AM 1.24.2009 -0600, Jack L. Stone wrote: >>At 04:33 PM 1.23.2009 +0100, cpghost wrote: >>>On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote: On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone >>wrote: > During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange >happened. > Some of the programs will not run after rehash or even when given the > precise path to the program. System doesn't "see" several but not all > programs. I've upgraded several servers (using source files -- cvsup) > withoug any such problem. It's just this one machine. >>> > BTW2: Yes, I do know this isn't windows and doesn't have a "registry" per se in that regard, but "something" does keep track of the programs installed and I've never located that place/file/db not having a crucial reason to before. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
At 07:06 AM 1.24.2009 -0600, Jack L. Stone wrote: >At 04:33 PM 1.23.2009 +0100, cpghost wrote: >>On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote: >>> On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone >wrote: >>> >>> > During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange happened. >>> > Some of the programs will not run after rehash or even when given the >>> > precise path to the program. System doesn't "see" several but not all >>> > programs. I've upgraded several servers (using source files -- cvsup) >>> > withoug any such problem. It's just this one machine. >> BTW: as more details of the problem, I had found a tiny bug in "mkdep" which initially caused the upgrade from 6.3 to 7.0 to fail during buildworld. Once fixed, it "appeared" to upgrade fine (build/install/mergemaster), including a new kernel build/install, but on reboot it still shows 6.3...!!! I have rmoved /usr/obj and even /usr/src and tried over several times, but same result. Some parts of the system is running okay, but not others. Have wasted too much time on this machine and today will move to a new machine and start over. This server is one of our DNS servers, so we're covered with others that take over during shutdown of this problem server. The DNS (or named) is one of the parts not running correctly and the most vital. Just a very strange issue and wondered if anyone else had similar results ever -- it may just be the machine, but didn't act like it. Thanks again, Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
Jack L. Stone writes: > >Some programs will not run because of a library version bump. Those > >programs will need to be recompiled, i.e. rebuild all ports. > > > >You can check this by running 'ldd' on the specific program. Let's > >assume that you have zip installed: > > Thanks for that tip. Here's output of one of the programs that doesn't run: > ldd /usr/local/bin/fastest_cvsup > ldd: /usr/local/bin/fastest_cvsup: not a dynamic executable > > BUT, it is executable and using the exact path to the program > still gives this error: No, it's a script - perl, to be exact - and does not count for the purposes of ldd. Compare "more /usr/local/ bin/fastest_cvsup" and "more /usr/bin/csup". Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
At 04:33 PM 1.23.2009 +0100, cpghost wrote: >On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote: >> On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone wrote: >> >> > During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange happened. >> > Some of the programs will not run after rehash or even when given the >> > precise path to the program. System doesn't "see" several but not all >> > programs. I've upgraded several servers (using source files -- cvsup) >> > withoug any such problem. It's just this one machine. > >Some programs will not run because of a library version bump. Those >programs will need to be recompiled, i.e. rebuild all ports. > >You can check this by running 'ldd' on the specific program. Let's >assume that you have zip installed: > >$ ldd /usr/local/bin/zip >/usr/local/bin/zip: >libbz2.so.3 => /usr/lib/libbz2.so.3 (0x80065c000) >libc.so.7 => /lib/libc.so.7 (0x80076c000) > Thanks for that tip. Here's output of one of the programs that doesn't run: ldd /usr/local/bin/fastest_cvsup ldd: /usr/local/bin/fastest_cvsup: not a dynamic executable BUT, it is executable and using the exact path to the program still gives this error: /usr/local/bin/fastest_cvsup: not found Yes, I did re-install the port too. No dice. Again MOST all programs run except for this one and maybe a couple others that may be causing buildworld to fail. Strange! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
describe something more. and what you mean "rehash"? Rehashing forces the shell to "reinitialise" (for want of a better term) so that it rechecks the path and can sometimes discover new programs installed if they don't seem to work. Alternatively you can exit and ok you mean shell rehashing. so PATH is missing something ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
On Fri, 2009-01-23 at 17:02 +0100, Wojciech Puchar wrote: > it's not windows. there are fortunately no registry in unix. > > your problem explanation is too short to help you. > > describe something more. > and what you mean "rehash"? > Rehashing forces the shell to "reinitialise" (for want of a better term) so that it rechecks the path and can sometimes discover new programs installed if they don't seem to work. Alternatively you can exit and either login again, or restart the shell (depending on how you obtained thet shell in the first place) . > On Fri, 23 Jan 2009, Jack L. Stone wrote: > > > During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange happened. > > Some of the programs will not run after rehash or even when given the > > precise path to the program. System doesn't "see" several but not all > > programs. I've upgraded several servers (using source files -- cvsup) > > withoug any such problem. It's just this one machine. > > > > I've suspected the registry is not updating, but really don't know as I've > > never encountered this issue before in all the years using FBSD. > > > > Any ideas? > > > > Jack > > > > (^_^) > > Happy trails, > > Jack L. Stone > > > > System Admin > > Sage-american > > ___ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > > > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
On Fri, Jan 23, 2009 at 05:03:06PM +0100, Wojciech Puchar wrote: > >>> withoug any such problem. It's just this one machine. > > > > Some programs will not run because of a library version bump. Those > > programs will need to be recompiled, i.e. rebuild all ports. > > it's as simple as installing compat6x from ports/misc > ! Yes, you're quite right. But unfortunately, it's not a panacea. Remember the recent bumps to libintl which affected an insane number (i.e. nearly all) of ports? Update just this port after upgrading, and nearly all your existing ports are unusable and need to be recompiled against libintl.so.8. Since misc/compat6x doesn't contain libintl.so.[765] (it's not a system library), you'd still be out of luck. -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
On Fri, Jan 23, 2009 at 05:02:27PM +0100, Wojciech Puchar wrote: > it's not windows. there are fortunately no registry in unix. > > your problem explanation is too short to help you. > > describe something more. > and what you mean "rehash"? `rehash' is a builtin in some shells - csh and zsh come to mind. It is used to cause the shell to reread the PATH environment variable and rebuild its internal hash (hence rehash) list of items in the path. The hash is used by the shell as a mapping between program names and their canonical location on the file system. It's what lets you say `ls' instead of having to say `/bin/ls', etc. If you install a new port then such shells will not immediately pick up the new executable - which is when you need to `rehash'. bash handles these cases differently, obviating the need for the rehash command. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgp7wRnAMJQLI.pgp Description: PGP signature
Re: Registry corrupt?
withoug any such problem. It's just this one machine. Some programs will not run because of a library version bump. Those programs will need to be recompiled, i.e. rebuild all ports. it's as simple as installing compat6x from ports/misc ! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
it's not windows. there are fortunately no registry in unix. your problem explanation is too short to help you. describe something more. and what you mean "rehash"? On Fri, 23 Jan 2009, Jack L. Stone wrote: During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange happened. Some of the programs will not run after rehash or even when given the precise path to the program. System doesn't "see" several but not all programs. I've upgraded several servers (using source files -- cvsup) withoug any such problem. It's just this one machine. I've suspected the registry is not updating, but really don't know as I've never encountered this issue before in all the years using FBSD. Any ideas? Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
On Fri, 23 Jan 2009 17:56:45 +0300 Odhiambo Washington wrote: > On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone wrote: > > > During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange happened. > > Any ideas? > You'll most likey have to reinstall all ports! > portupgrade -a More like: http://www.freebsd.org/releases/7.0R/announce.html (6.3 -> 7.1 == upgrade between major versions) Updating Existing Systems An upgrade of any existing system to FreeBSD 7.0-RELEASE constitutes a major version upgrade, so no matter which method you use to update an older system you should reinstall any ports you have installed on the machine. This will avoid binaries becoming linked to inconsistent sets of libraries when future port upgrades rebuild one port but not others that link to it. This can be done with: # portupgrade -faP after updating your system. Note some of the tools to help with this or the instructions below for FreeBSD Update are not installed by default (e.g. portupgrade, gpg, or similar tools like portmaster). Instead to use portupgrade you can wipe out _all_ installed packages (pkg_delete -a) and reinstall them again. Andreas -- GnuPG key : 0x2A573565|http://www.gnupg.org/howtos/de/ Fingerprint: 925D 2089 0BF9 8DE5 9166 33BB F0FD CD37 2A57 3565 pgpMLzr66kHxA.pgp Description: PGP signature
Re: Registry corrupt?
On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote: > On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone wrote: > > > During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange happened. > > Some of the programs will not run after rehash or even when given the > > precise path to the program. System doesn't "see" several but not all > > programs. I've upgraded several servers (using source files -- cvsup) > > withoug any such problem. It's just this one machine. Some programs will not run because of a library version bump. Those programs will need to be recompiled, i.e. rebuild all ports. You can check this by running 'ldd' on the specific program. Let's assume that you have zip installed: $ ldd /usr/local/bin/zip /usr/local/bin/zip: libbz2.so.3 => /usr/lib/libbz2.so.3 (0x80065c000) libc.so.7 => /lib/libc.so.7 (0x80076c000) If it required libc.so.6 instead of libc.so.7, and there's no libc.so.6 anymore after the upgrade, you'll need to recompile zip. -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
In response to "Jack L. Stone" : > During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange happened. > Some of the programs will not run after rehash or even when given the > precise path to the program. System doesn't "see" several but not all > programs. I've upgraded several servers (using source files -- cvsup) > withoug any such problem. It's just this one machine. > > I've suspected the registry is not updating, but really don't know as I've > never encountered this issue before in all the years using FBSD. FreeBSD has no registry. Please describe the problem in more detail ... i.e. give a specific example (cut/paste what's happening into the email) -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Registry corrupt?
On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone wrote: > During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange happened. > Some of the programs will not run after rehash or even when given the > precise path to the program. System doesn't "see" several but not all > programs. I've upgraded several servers (using source files -- cvsup) > withoug any such problem. It's just this one machine. > > I've suspected the registry is not updating, but really don't know as I've > never encountered this issue before in all the years using FBSD. > > Any ideas? > You'll most likey have to reinstall all ports! portupgrade -a -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "The only time a woman really succeeds in changing a man is when he is a baby." - Natalie Wood ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Registry corrupt?
During an upgrade from fbsd-6.3 --> fbsd-7.0, something strange happened. Some of the programs will not run after rehash or even when given the precise path to the program. System doesn't "see" several but not all programs. I've upgraded several servers (using source files -- cvsup) withoug any such problem. It's just this one machine. I've suspected the registry is not updating, but really don't know as I've never encountered this issue before in all the years using FBSD. Any ideas? Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"