Skip to Content.
Sympa Menu

baslinux - Re: [BL] can't installpkg

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: David Moberg <davidjmoberg AT gmail.com>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] can't installpkg
  • Date: Tue, 3 Jan 2006 09:56:06 -0800

On 1/2/06, sindi keesan <keesan AT sdf.lonestar.org> wrote:
> Fixed, sort of, based on David's helpful suggestion about /lib, /bin,
> /sbin. I compared and they looked the same.
>
> I theb\n did an ls /sbin/*pkg and found explodepkg, which worked.
> Then I tried installpkg -r bison.tgz after copying bison.tgz to /,
> which was supposed to be a recursive installation. It appeared to be
> removing all the symlinks in the entire partition, but possibly only in
> /lib, went by too fast to see. I should have read the instructions.
>
> So I copied over my photos and kernels to the other computer after booting
> with BL3, then deleted some junk from there and copied back most of that
> to a spare partition on this first computer so I would have a working BL2
> while working on the broken one. I copied using Steven's send/receive
> script, and the symlinks ended up correct in the new /lib.
>
> I compared the broken and the working BL2 /lib /bin and /sbin and they
> looked the same, except that on the second computer some files were 2, 3
> or 4 bytes larger, possibly something to do with a larger partition there.

They should be the same, regardless of partition size.

> I then copied the /lib /bin and /sbin directories from the working copy to
> the broken one on the same computer, using cp -a (copy all?). I did not
> copy /usr/X11R6/lib or /usr/local/lib. /lib and /usr/X11R6/lib have lib*so
> files with symlinks.
>
> I can now installpkg but it complains about a lot of libraries not being
> symlinks, in /lib. (There are a few that are in /lib, /usr/lib, and
> /usr/local/lib from libc5 which truly are not symlinks but are there for
> libc5 netpbm, which I should replace with a BL2 version some day).
>
> Apparently when you copy symlinks with cp, you don't copy the link, but
> the file to which it is linked.

cp -a is supposed to copy links 'properly'.

> QUESTION:
>
> Can I safely delete these libraries (rm *so.?) while using BL2, or is
> there some way to run ldconfig without first deleting these 'not a
> symbolic link' files in BL2, or to run it from BL3 to make links in BL2? I
> can also do this manually, from BL3, for 20-30 pairs of files:
> ln -sf libss.so.2.0 libss.so.2, etc.

You should use 'ln -sf'. Maybe it is possible to make a script, but
I don't know how such a script would differentiate between links
and regular files.

David




Archive powered by MHonArc 2.6.24.

Top of Page