From: Phil L. <ph...@fi...> - 2004-10-20 19:46:45
|
On Oct 20, 2004, at 10:26, Phil Lawrence wrote: > I've searched the archive of this list, but didn't find anyone > talking about how to install aixtoolbox RPMS as a non-privileged user... OK, I gave it my best shot, but could use a hand: ----------SETUP STUFF-------------------- bash-2.04$ cat bin/setup-rpmbuildroot MYRPMBUILD="myrpmbuild" # Set up build area mkdir \ $HOME/$MYRPMBUILD \ $HOME/$MYRPMBUILD/tmp \ $HOME/$MYRPMBUILD/platform \ $HOME/$MYRPMBUILD/platform/$OSTYPE \ $HOME/$MYRPMBUILD/platform/$OSTYPE/rpm \ $HOME/$MYRPMBUILD/BUILD \ $HOME/$MYRPMBUILD/RPMS \ $HOME/$MYRPMBUILD/RPMS/i386 \ $HOME/$MYRPMBUILD/SOURCES \ $HOME/$MYRPMBUILD/SPECS \ $HOME/$MYRPMBUILD/SRPMS # Set up .rpmmacros file echo "%user_home %(echo \$HOME)" > $HOME/.rpmmacros echo "%_dbpath %{user_home}/$MYRPMBUILD/platform/%(echo $OSTYPE)/rpm" >> $HOME/.rpmmacros echo "%_tmppath %{user_home}/$MYRPMBUILD/tmp" >> $HOME/.rpmmacros echo "%_topdir %{user_home}/$MYRPMBUILD" >> $HOME/.rpmmacros # Create private RPM database rpm --initdb # At this point you won't be able to install any package as they all require # /bin/sh. As usual, it won't look whether or not the physical file is here, # it will simply search the current database. Your private and currently empty # database that is. # Work around the above fact echo "provides: /bin/sh" > $HOME/.rpmrc ----------------------------------------- ----------THE ATTEMPT-------------------- bash-2.04$ pwd /home/prl2 bash-2.04$ ls -l coreutils-5.0-1.aix5.1.ppc.rpm -rw------- 1 prl2 staff 2548929 Oct 20 12:35 coreutils-5.0-1.aix5.1.ppc.rpm bash-2.04$ rpm -U -vv --prefix /home/prl2/ATLA coreutils-5.0-1.aix5.1.ppc.rpm D: counting packages to install D: found 1 packages D: looking for packages to download D: retrieved 0 packages D: New Header signature D: Signature size: 68 D: Signature pad : 4 D: sigsize : 72 D: Header + Archive: 2548761 D: expected size : 2548761 D: opening database mode 0x102 in /home/prl2/myrpmbuild/platform/aix4.3.2.0/rpm error: package coreutils is not relocateable ----------------------------------------- Any ideas? Is this just not possible, i.e. I must install from source? Thanks, Phil |