This might be a piece of cake for you guys! But I have been ransacking the web (and my brain - no hardwork there!) to see if I could get my hands around a relocateable version of GCC - why so??
from compile problems I am facing, it is evident my current gcc version is clearly not updated
I am not a root user - so I am going to have to install this in my personal directory (I did put the request out to my UNIX admin, and it has been lying there for the last 2 weeks - I will be clearly in trouble if this was to get delayed any further!)
Question - could you help me locate and install gcc in a directory I could specify???
Truly appreciate any help you could provide!!!
G
---------- Post updated at 08:45 PM ---------- Previous update was at 08:43 PM ----------
You know how when you run the rpm to install the package - you could use the "--relocate" flag to install in a directory other than where the package currently points - THAT IS, IF THE PACKAGE ALLOWS IT, right??? i.e. if it is relocateable (can be seen by running the "rpm -qip " command on the package).
All rpms I have found through the web are "not relocatable".
Do you know of any RPM or software out there that will help me install GCC in a directory I could specify?
as far as I am aware of, there is no gcc package out there that can be relocated and would work on AIX. Apart from that, even if it would be you would have to install it as root user as it would have to do all the linking ... so this looks like you have no other choice than to wait ...
ok - but I always thought, it is especially convenient in Unix to have softwares versions installed in personal directories - and have the environment determine which version is used. not true??? if it's true, then is gcc an exception???
yes you can. download the source and build it. make sure use the --prefix configure option. also - it is not the norm to install software like a heavy weight compiler in a users home directory.
I mentioned it before - relocatable or not - you need root to install anything on the systems ...
BTW - why don't you just compile your code on any other system that does have gcc installed? With cross compiler options, you could even compile code for AIX on say a solaris box.
I believe that is why he is interested in compiling up GCC with a different prefix configured - in that event he does not have to be root or have root access to create a working gcc executable.
Ok - I did get the admin to upgrade the gcc version to 4.2 eventually. Thanks for your help so far!!!
However, if you guys wouldn't mind helping me out, I am having a problem with Apache installation that is using the new gcc compiler - here is the error -
Configure works well (maybe not as the next step fails)
Make fails with the following error -
collect2: library libgcc_s not found
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
I put /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/ in front of my current LIBPATH and LD_LLIBRARY_PATH (LD_LIBRARY_PATH was not set - perhaps not used by AIX).
Here is the configure I am using -