[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: trouble installing cxx



On Fri, 2003-01-03 at 09:00, Alan Young wrote:
> On 02 Jan 2003 23:45:31 +0100 Dannis 't Hart <dchart@dds.nl> wrote:
> 
> > Hi,
> > 
> > So, after receiving a password from HP/Compaq for the .rpm.crypt files,
> > I was able to succesfully install ccc-6.5.9-001-6.alpha.rpm (after
> > changing /usr/bin/gcc back from /usr/bin/gcc-3.2 to /usr/bin/gcc-2.95,
> > though).
> > 
> > But now, trying to install cxx-6.3.9.7-1.alpha.rpm (which isn't the
> > latest one available; that would be 6.5.9.31-1.alpha.rpm) I run into
> > some trouble.
> > 
> > It complains:
> > 
> > chmod: failed to get attributes of
> > `usr/lib/compaq/cxx-6.3.9.7/alpha-linux/bin/crtbegin.o': No such file or
> > directory
> > chmod: failed to get attributes of
> > `usr/lib/compaq/cxx-6.3.9.7/alpha-linux/bin/crtend.o': No such file or
> > directory
> 
> Hi,
> 
> It might be a typo in the install script.  The paths you show above are
> missing the initial / at the beginning. The paths should begin as /usr
> not just usr.
> 
> Also, these two files are just symlinks into files that reside in your gcc
> installation directory.  You might want to check you flipped your
> /usr/lib/gcc-lib/ subdirectories correctly between 2.95 and 3.2.
> 
> Alan
> 
Your hints convinced me to search for the install script. The error
appeared while executing /var/lib/dpkg/info/cxx.postinst.
Nevertheless, this script seemed correct; the relative paths are
intentional, from an unpacking directory. After looking closer, I
noticed it was actually an inconsistency in the RPM, because it made a
symlink to /usr/lib/crtbegin.o and /usr/lib/crtend.o. And of course
these became dangling, because Debian puts them in
/usr/lib/gcc-lib/alpha-linux/2.95.4

So, the workaround was to temporarily create 2 extra symlinks:

cd /usr/lib
ln -s /usr/lib/gcc-lib/alpha-linux/2.95.4/crtbegin.o crtbegin.o
ln -s /usr/lib/gcc-lib/alpha-linux/2.95.4/crtend.o crtend.o

And then the packages installed right. 
It consequently makes correct symlinks in
/usr/lib/compaq/cxx-6.3.9.7/alpha-linux/bin

So you can clean up the temporary symlinks in /usr/lib.

Dannis.



Reply to: