Relocateable GCC!!!!


 
Thread Tools Search this Thread
Operating Systems AIX Relocateable GCC!!!!
# 8  
Old 01-09-2011
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???
# 9  
Old 01-09-2011
Can you not compile up your own version of gcc from sources ? Its pretty simple (If the O/S is supported), and you can then specify the install dir.
# 10  
Old 01-09-2011
That sounds like what I have been asking for - can I get the source for gcc that I can install in a directory of my choice??

Thanks!

G
# 11  
Old 01-10-2011
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.

GCC, the GNU Compiler Collection - GNU Project - Free Software Foundation (FSF)


here is the option I used on my Solaris box. keep in mind you will have to setup your paths correctly when building and running the programs.

Code:
$ gcc -v
Reading specs from /usr/local/gcc-3.4.5/lib/gcc/sparc-sun-solaris2.9/3.4.5/specs
Configured with: ../gcc-3.4.5/configure --prefix=/usr/local/gcc-3.4.5 --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 3.4.5


Last edited by frank_rizzo; 01-10-2011 at 02:53 AM.. Reason: added gcc
# 12  
Old 01-10-2011
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.

Regards
zxmaus
# 13  
Old 01-10-2011
Quote:
Originally Posted by zxmaus
I mentioned it before - relocatable or not - you need root to install anything on the systems ...
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.
# 14  
Old 01-11-2011
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 -

1. Configure works well (maybe not as the next step fails)
2. Make fails with the following error -
Code:
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.

Thanks as always!
- G

Last edited by Scott; 01-11-2011 at 04:37 PM.. Reason: Less funny formatting, colours, etc. and more code tags, please!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Gcc with pipe

I want to compile all files in my directory i wrote find *.c | gcc -o * *.c but it dosent work :( Help pliz (12 Replies)
Discussion started by: rzili
12 Replies

2. UNIX for Dummies Questions & Answers

GCC installation .

I m trying to Install FTP (vsftpd-2.3.2) on my linux machine. # lsb_release -a LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID: EnterpriseEnterpriseServer Description: Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)... (7 Replies)
Discussion started by: pinga123
7 Replies

3. UNIX for Dummies Questions & Answers

Help with gcc and g++

Hi, I have recently got a job in unix, now training is going on and we have been practicing on telnet, so to practice at home I have installed vmware(virtual machine) and planning to download ubuntu. So my doubt is that whether I can write c and cpp progs in vi editor and can I run them by default... (5 Replies)
Discussion started by: vishal.973s
5 Replies

4. AIX

Gcc for AIX

Hi, I am working with AIX5.3 and I downloaded the gcc-4.2.4.tar.bz2 from the site and when I am trying to un-tar it.It is throwing error-- Please help me to resolve it. Thanks in Advance.. (6 Replies)
Discussion started by: smartgupta
6 Replies

5. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

6. SuSE

Linux gcc

Hi all, I am trying to create 64-bit shared libraries on Power PC "ppc64" architecture SuSe Linux 10 machine using gcc compiler. I am using "-m64" as an option for gcc to create 64-bit libraries which needs pam module. As we specify -m64 the compiler should look for all 64-bit... (0 Replies)
Discussion started by: vyshu2112
0 Replies

7. Programming

gcc *.c -lcurses

Can someone tell me what does -|curses do here when the C program got compiled? gcc *.c -lcurses Thanks! (1 Reply)
Discussion started by: whatisthis
1 Replies

8. Programming

Gcc

Dear all, Any body please guide, i require a C which will run in Linux environment. Its urgent please. warm regards, Senthil K (1 Reply)
Discussion started by: Senthil
1 Replies

9. Programming

warning from gcc

I get this error warning. test.c: In function 'main': test.c:5: warning: incompatible implicit declaration of built-in function 'memset' After compiling this code #include <stdio.h> int main() { char pBuffer; memset(pBuffer, 0, 32); return 0; } What seems... (2 Replies)
Discussion started by: sledge76
2 Replies

10. UNIX for Dummies Questions & Answers

cc and gcc not found

I am trying to compile c files using cc and gcc commands but getting errors cc and gcc not found. I tried man cc and man gcc still not found. Can somebody help me this problem. thanks (3 Replies)
Discussion started by: asif iqbal
3 Replies
Login or Register to Ask a Question