Installing gcc on AIX 5.3

Hi everyone. I'm trying to install gcc on aix 5.3 and I'm getting the following error:
#rpm -i  gcc-4.2.4-1.aix5.3.ppc.rpm
error: failed dependencies:
        info is needed by gcc-4.2.4-1

I have the following info packages:
info-4.6-1.aix5.1.ppc.rpm
texinfo-4.6-1.aix5.1.ppc.rpm

What is that I am missing?

Does the directory in which these are depend? I have these currently in /tmp directory?
courionAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

woolmilkporcCommented:
Hi,
of course it's necessary to install the rpm.
Issue 'rpm -i /tmp/info-4.6-1.aix5.1.ppc.rpm'
and everything will be fine!
wmp
 
0
courionAuthor Commented:
Hi,

I tried rpm -i /tmp/info-4.6-1.aix5.1.ppc.rpm.

I get the following error:
error: /tmp/info-4.6-1.aix5.1.ppc.rpm cannot be installed.

thanks
0
woolmilkporcCommented:
Where did you get the package from?
This is the IBM toolbox page -
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html
The version available there should work! Could you try it, if you got your package  from elsewhere?
wmp
 
0
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

woolmilkporcCommented:
... sorry for the question - are you 'root' when you try the rpm installation?
0
courionAuthor Commented:
Yes I am the "root". I downloaded it from the toolbox page you mentioned.
0
woolmilkporcCommented:
This is weird. To be sure I just installed it on one of my 5.3 boxes, without any problem.
What is your oslevel -s? Mine is 5300-04-01.
What does 'rpm -qlp /tmp/info-4.6-1.aix5.1.ppc.rpm'  say?
 
0
courionAuthor Commented:
Here is what I got.

oslevel -s
5300-09-01-0847

rpm -qlp /tmp/info-4.6-1.aix5.1.ppc.rpm
query of /tmp/info-4.6-1.aix5.1.ppc.rpm failed.
0
woolmilkporcCommented:
So your package seems somewhat broken!
This is what I get -
root@lpa101:/mnt/fixdist>ls -l info-4.6-1.aix5.1.ppc.rpm
-rwxr--r--   1 xxxxxxxx xxxxxxx     166536 Mar 13 16:07 info-4.6-1.aix5.1.ppc.rpm*
root@lpa101:/mnt/fixdist>rpm -qlp ./info-4.6-1.aix5.1.ppc.rpm
/etc/X11/applnk/Utilities/info.desktop
/etc/info-dir
/opt/freeware/bin/info
/opt/freeware/bin/install-info
/opt/freeware/doc/info-4.6
/opt/freeware/doc/info-4.6/COPYING
/opt/freeware/info/dir
/opt/freeware/info/info-stnd.info.gz
/opt/freeware/info/info.info.gz
/sbin/install-info
/usr/info
 
 I think you should download the package one more time. Who knows what happened there?
0
courionAuthor Commented:
I downloaded the package again. But nothing useful. At first I thought the issue was because of the permission as root did not have execute perm on this file. I added that and re-tried but I see the same.

Also when I run using SMIT this is not recognized as something installable. Dont know why.
0
woolmilkporcCommented:
An rpm package doesn't need execute permission, only 'read'.
Is your package of the same size as mine? Here is 'sum' and 'md5sum' of my package -
root@lpa101:/mnt/fixdist>sum info-4.6-1.aix5.1.ppc.rpm
40679   163 info-4.6-1.aix5.1.ppc.rpm
root@lpa101:/mnt/fixdist>md5sum info-4.6-1.aix5.1.ppc.rpm
41c631a5119f195a63f449deb17cad47  info-4.6-1.aix5.1.ppc.rpm
How did you download it? binary ftp?
Installation via smitty should work. You could issue 'inutoc /tmp', although this is normally no longer needed. Choose 'install from all available...', give /tmp as input device/directory' and use at the next menu <F4> to select. The package should show up. Select with <F7> and go!
 
0
courionAuthor Commented:
for sum:
sum info-4.6-1.aix5.1.ppc.rpm
30642 163 info-4.6-1.aix5.1.ppc.rpm

md5sum:
I dont have it.

How did I download it?
I downloaded the package and ftp'd over to the AIX box.

via smitty?
Yes. I did exactly the same but "info" is never listed in the packages. I have all others except this.

Any dependency?
Is there any pre-req install for info or any order that needs to be followed. As few other packages like SSH have already been installed.
0
woolmilkporcCommented:
If there was a missing dependency, rpm would tell you.
Strange that the 'sum' doesn't match!
I have to beg your pardon again for a question - did you use 'binary' with the ftp?
Can't you use 'scp' or the like?
Another question - can you do 'rpm -qlp' against any other package you have?
 
0
courionAuthor Commented:
binary with ftp?
I missed that question in your previous comment. I havent used binary with ftp. I am doing ftp from a windows to unix.

rpm -qlp?
When I use rpm -qlp against other packages it list bunch of files.

scp?
Never used this before.
0
woolmilkporcCommented:
So the problem is definitely that the package is broken!

Did you transfer the other packages the same way?
Is there a 'use binary transfer' option in your Windows ftp client? If yes, switch it on.
Or do you use Windows commandline ftp? With that you must issue the 'bin' subcommand before put!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.