Cpio: copy failed - No space left on device when I use rpm

Hello,

I want to install GCC gcc-4.8.1-2.src.rpm for AIX 6.1
when I lance my command

rpm -i gcc-4.8.1-2.src.rpm 

I have this error

unpacking of archive failed on file gcc-4.8.1.tar.bz2: cpio: copy failed - No space left on device

I checked the free space and I am surpise becouse I have a free space in all file systems:confused: ( df )

Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 4.44 1.58 65% 40830 2% /
/dev/hd2 8.38 3.97 53% 102589 5% /usr
/dev/hd9var 4.00 1.29 68% 7046 1% /var
/dev/hd3 7.81 2.26 72% 2839 1% /tmp
/dev/hd1 8.06 7.67 5% 716 1% /home
/proc - - - - - /proc
/dev/hd10opt 0.25 0.07 74% 3118 5% /opt
/dev/hd11admin 0.12 0.12 7% 28 1% /admin
/dev/fslv00 78.12 10.04 88% 303179 10% /BOInst
/dev/fslv01 19.75 19.71 1% 1050 1% /sapbidata
/dev/fslv02 19.62 18.35 7% 3849 1% /sapbilogs
/dev/fslv03 10.88 1.11 90% 13148 5% /oracle
/dev/fslv04 13.88 2.12 85% 39723 8% /oracle/DBI
/dev/fslv05 1.00 0.71 30% 22 1% /oracle/client/11x_64
/dev/fslv06 1.00 1.00 1% 4 1% /oracle/DBI/origlogA
/dev/fslv07 1.00 1.00 1% 4 1% /oracle/DBI/origlogB
/dev/fslv08 1.00 1.00 1% 4 1% /oracle/DBI/mirrlogA
/dev/fslv09 1.00 1.00 1% 4 1% /oracle/DBI/mirrlogB

Have you any idea please ....

As a matter of fact: yes i have. Have a look at your output of df :

Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd10opt 0.25 0.07 74% 3118 5% /opt

Do you really think 70M are going to be sufficient for a complete compiler and libraries? As far as i remember gcc is installing to "/opt" and a quick survey of my own repository reveals:

find /opt/repo/perzl -name "*gcc*" -exec du -g {} \;
0.02    ./gcc-4.8.2-1.aix5.3.ppc.rpm
0.02    ./gcc-4.8.3-1.aix6.1.ppc.rpm
0.02    ./gcc-4.8.3-1.aix7.1.ppc.rpm
0.01    ./gcc-c++-4.8.2-1.aix5.3.ppc.rpm
0.01    ./gcc-c++-4.8.3-1.aix6.1.ppc.rpm
0.01    ./gcc-c++-4.8.3-1.aix7.1.ppc.rpm
0.01    ./gcc-cpp-4.8.2-1.aix5.3.ppc.rpm
0.01    ./gcc-cpp-4.8.3-1.aix6.1.ppc.rpm
0.01    ./gcc-cpp-4.8.3-1.aix7.1.ppc.rpm
0.01    ./gcc-gfortran-4.8.2-1.aix5.3.ppc.rpm
0.01    ./gcc-gfortran-4.8.3-1.aix6.1.ppc.rpm
0.01    ./gcc-gfortran-4.8.3-1.aix7.1.ppc.rpm
0.00    ./libgcc-4.8.2-1.aix5.3.ppc.rpm
0.00    ./libgcc-4.8.3-1.aix6.1.ppc.rpm
0.00    ./libgcc-4.8.3-1.aix7.1.ppc.rpm
0.08    ./src/gcc-4.8.3-1.src.rpm
0.08    ./src/gcc-4.8.2-1.src.rpm

I hope that helps.

bakunin

Thanks for you response, I increased the free space for /opt but now when I launch the command ( with root)

rpm -i gcc-4.8.1-2.src.rpm

I have no errors but nothing happened
when I use

rpm -qa gcc

I have

package gcc is not installed

Any idea :confused:

yes.

The command:

is wrong. The right command is rpm -q gcc or rpm -qa | grep gcc

I made a mistakes...
I have wrote

rpm -q gcc

but the system not find any gcc

sorry, i didn't notice - it is a source rpm. you will never see it in rpm -q output. the source code of gcc is now in /opt/freeware/src/packages/

1 Like

thanks agent.kgb

I find it in the location

First off: please show the COMPLETE output of a command you want us to analyse. I can't see your screen from here (sorry - magic crystal ball is undergoing repair at the moment) so i am at a loss what exactly hasn't happened.

Second, i wonder why you install the source package ("...src.rpm") instead of the binary package ("...ppc.rpm"). I thought you wanted to use the compiler to compile other programs, not compile it on your platform from its sources.

To install a working version of the gcc compiler download the necessary packages (see above, the list created with "du", the list should be pretty complete) from the perzl site. Change into the directory all the files are and issue

rpm -Uvh gcc-4.8.3-1.aix7.1.ppc.rpm

I hope this helps.

bakunin