GNU/GCC on AIX server without Root rights


 
Thread Tools Search this Thread
Operating Systems AIX GNU/GCC on AIX server without Root rights
# 1  
Old 06-08-2010
Error GNU/GCC on AIX server without Root rights

Hello I'm new to this Forum and I've got a big Problem.
Currently I have to Install Bacula ( Backup Software) on a IBM machine(with AIX 5.3) via SSH there is no chance for me for a directly interaction with the Server.

The Main problem is, I don't have Root access and no chance to get it.
And I'm not able to restart the Server, because there is very much traffic on it.

I have to Compile/Install Bacula and here comes the next problem ...
There is only a C Compiler installed, to compile Bacula i need to Install GNU/GCC Compiler.

I found a way to Install GNU/GCC without root access.
See : Installing GCC without root permissions - FedoraForum.org

Now there is another Problem :
If try it how its described in fedoraforum I get this message from the IBM Server :

Code:
$ rpm --root=$(pwd) --nodeps --relocate /=$(pwd) -ihv gcc*rpm
failed to open /home/pribas/max/mygcc/var/opt/freeware/lib/rpm/packages.rpm: No such file or directory


I figured out that the path of packages.rpm is wrong.

My next try:
Code:
bash-3.00$ rpm --root=$(pwd) --nodeps --relocate /=$(pwd) -ihv gcc*rpm
path  is not relocateable for package gcc-c++-4.2.0-3
bash-3.00$ rpm --root=$(pwd) --nodeps /=$(pwd) -ihv gcc*rpm
error: cannot open file /=/home/pribas/max/mygcc: No such file or directory
gcc-c++                     unpacking of archive failed on file /opt/freeware/bin/g++: cpio: open failed - Permission denied

--------------------------------------------------------------------------------------------------
If there would be anyone who could help my this would be awesome.
THANKS ! Smilie

Last edited by pludi; 06-08-2010 at 05:43 AM.. Reason: code tags, please...
# 2  
Old 06-08-2010
Hello,

you can compile and use bacula or any other stuff as long as it only concerns the dirs that you have permission to write/read etc.

So get the appropriate gcc binary(for your arch) and compile the bacula from source(if you are not able to locate bacula binary) and run it inside in your /home dir.

However there's no possibility of installing any app without root credentials.

Regards,
Gaurav.
This User Gave Thanks to gaurav1086 For This Post:
# 3  
Old 06-08-2010
Okay i'm going to check the permissions of the directories and try to install it there if I have any permissions ... i will see .

Thank you very much !Smilie
# 4  
Old 06-08-2010
Quote:
Originally Posted by maxkoch
The Main problem is, I don't have Root access and no chance to get it.
Report your problem; state, that there is no way to do your work without certain requirements and let them choke on their paranoia. Nobody can do any meaningful work lacking the necessary means to do it - that includes software, hardware, permissions and much more.

Sorry, but this is the best advice i can give. You want to compile a program, (which maybe might work with a finite number of workarounds,) then want to install the program (which definitely won't work without root access) and you want to reboot the system - which also won't be possible without root authority.

Just as an aside: you want to compile software with a C-compiler which is not supported by the OS vendor - are you sure you really want such a software to run on your system?

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 5  
Old 06-08-2010
There is no way to get the root access thats the problem.
Not the Server of the Company i work for ...

And It's like a test for me. Actually I'm in a Trainee Ship for a apprenticeship.

My first task was to Configure and Install Bacula on my Workstation (Solaris)
I've done this without any problems.
Well and the second task now is to Install Bacula on this damn IBM machine which isn't even from my Company.

Well but I recognized that my "Boss" also has no idea how to do this.

Well and i checked all directory permissions ... I've got no chance to Install Gcc and so no chance to compile Bacula ...

Thanks for your statements and help !
# 6  
Old 06-08-2010
If you dive into gcc there are (or at least there used to be) cross-compiler options, that is to say that you coukld use your Solaris machine to compile for an AIX target.

From memory its a lot of work to do it - but may be a way forward for you.
This User Gave Thanks to ross.mather For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

AIX 7.1 gcc 4.8.5 issue

hey guys , after migrate our AIX server from 6.1 to 7.1 , we insalled c compilator with rpm files Server:root:/ > rpm -qa | grep gcc libgcc-4.8.5-1 gcc-cpp-4.8.5-1 gcc-4.8.5-1 gcc-c++-4.8.5-1 but whene we proceed to compile a c programm we have this error exec(): 0509-036... (17 Replies)
Discussion started by: yahia
17 Replies

2. AIX

AIX Virtualization Rights

Hi people, I just registered on this forum and this is my first message. I'm trying to understand the AIX Virtualization Rights (or whatever name it's called). If I have a S814 quad-core server with licensed AIX Enterprise Edition for four cores and also licensed PowerVM Enterprise... (8 Replies)
Discussion started by: raphaelmsx
8 Replies

3. Red Hat

How to check local accounts have root and user access rights ?

Hi, I have three servers,For 3 servers how i can take output,all the local accounts and details of whether the access is Root or User access. cheers (1 Reply)
Discussion started by: ranjithm
1 Replies

4. AIX

Finding Root cause of AIX server reboot itself

Hi, please explain that how to find the rootcause of aix servers reboot itself. Which log or commands should be used to analyse the reboot incident? Please explain in detail. (3 Replies)
Discussion started by: cyberkingjk
3 Replies

5. AIX

gnu make fir AIX 5.3 and gcc 3.3.2

Hi all i had installed gcc version 3.3.2 on my AIX 5.3 machine. which make utility i have to instal so it will fit the gcc version tnx skfn (2 Replies)
Discussion started by: skfn1203
2 Replies

6. UNIX for Dummies Questions & Answers

Similar rights to root account

hi guys I am using a monitoring application for some linux, but in order to monitor these linux the application needs the root account.... my problem is the company I work for for security policies root account is not allowed... so how can create a similar account like root to grant access to... (1 Reply)
Discussion started by: karlochacon
1 Replies

7. AIX

Transferring files from one AIX server to another AIX server in binary mode

Hi, I am a newbie to AIX. We have 2 AIX5.3 servers in our environment, I need to transfer some files in Binary mode from one server to another and some files in ASCII mode from one server to another server. Could you please help me as to how I need to do that? Thanks, Rakesh (4 Replies)
Discussion started by: rakeshc.apps
4 Replies

8. AIX

Upgrading AIX 5.2 to AIX 6.1 - GCC compatibility

Hi All, We are in the processing of upgrading our AIX server OS from 5.2.0.0 to 6.1. And we have a set of highly critical running C applications in AIX box. I have a question like whether this upgradation of OS will affect any C code compilation and C runtime enviornment... how does AIX 6.1... (1 Reply)
Discussion started by: karthikc
1 Replies

9. 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

10. AIX

gcc with AIX 4.3

hi, i need to install a source code from an open source on AIX 4.3. but first i need to install gcc. is gcc going to screw up AIX 4.3? the box is doing heavy legacy stuff with engine and db2 on it. and over 200 users. any comment would be appreciated. thanks (9 Replies)
Discussion started by: itik
9 Replies
Login or Register to Ask a Question