Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th November 2008, 01:23 AM
sabian Offline
Registered User
 
Join Date: Nov 2008
Posts: 2
Installing GCC without root permissions

Is it possible to install gcc, even just for myself, without having root permissions on Fedora Core 6? I've tried everything I can think of including setting rpm's --root to a /home/<user>/ directory but can't seem to get anywhere, but then again I'm sort of a linux newbie.

Any help, even if you just tell me it's immpossible so I can stop trying, would be very much appreciated.
Reply With Quote
  #2  
Old 5th November 2008, 01:45 AM
LBCoder Offline
Registered User
 
Join Date: Oct 2008
Posts: 221
"Possible" and "do you really want to" are two totally different things. It is most definitely possible, but it is NOT something that you will want to do. It is also unlikely to work properly when it is done.
Reply With Quote
  #3  
Old 5th November 2008, 07:07 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
Sabian, Welcome to Fedora! FC6 reached "End of Life", therefore no support to get rpms thru yum, etc.

Please update to Fedora 9. Fedora 10 will be release this month.
Reply With Quote
  #4  
Old 5th November 2008, 08:37 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
Yes you can do it, and it's not terribly hard:

Here is an example for F8, but YOU will have to find the RPMs for YOUR distro.

cd
mkdir mygcc
cd mygcc
wget http://download.fedora.redhat.com/pu....2-33.i386.rpm
wget http://download.fedora.redhat.com/pu....2-33.i386.rpm
rpm --root=$(pwd) --nodeps --relocate /=$(pwd) -ihv gcc*rpm
rpm --root=$(pwd) --nodeps --relocate /=$(pwd) -ihv cpp*rpm
cd


You'll have to add these .. .try putting then in your ~/.bash_profile
PATH=$HOME/mygcc/usr/bin:$HOME/mygcc/usr/libexec:$PATH
export LD_LIBRARY_PATH=$HOME/mygcc/usr/lib/gcc/i386-redhat-linux/4.1.2:$LD_LIBRARY_PATH


# examples use ...

[stevea@lycoperdon ~]$ gcc -sysroot=$HOME/mygcc -I /usr/include -o hello hello.c
[stevea@lycoperdon ~]$ ./hello
Hello, cruel world!


Note that if you need additional libraries you'll have to find the packages and install (rpm command above.

You'll probably want to link from ~/mygcc/usr/include to /usr/include. Also see the -isysroot option to gcc.
This assumes that you system has binutils installed (almost certain) and also con basic shared libraries.

Ignore the error msg from the rpm commands.
Reply With Quote
  #5  
Old 5th November 2008, 08:44 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
Quote:
Originally Posted by LBCoder View Post
"Possible" and "do you really want to" are two totally different things. It is most definitely possible, but it is NOT something that you will want to do. It is also unlikely to work properly when it is done.
Why would you not want to ? I use cross compilers built under accounts all day long !
Unlikely to work ??? Only if you don't get all the dependencies. rpm can help identify them.
That "Can't do" attitude won't take you far.
Reply With Quote
  #6  
Old 5th November 2008, 08:47 PM
sabian Offline
Registered User
 
Join Date: Nov 2008
Posts: 2
Very helpful, thanks a bunch!


Quote:
Originally Posted by marcrblevins View Post
Sabian, Welcome to Fedora! FC6 reached "End of Life", therefore no support to get rpms thru yum, etc.

Please update to Fedora 9. Fedora 10 will be release this month.
Trust me I'd love to, but no sysadmin privileges here and if I couldn't get them to install gcc I can't imagine the trouble I'd have trying to get them to update the OS.

--Thanks again
Reply With Quote
  #7  
Old 5th December 2009, 01:51 PM
lexje Offline
Registered User
 
Join Date: Dec 2009
Posts: 2
windows_xp_2003firefox
curl-config not found

Hi,

I realize this is an old thread.
Nevertheless it has helped me today, so thanks for that :-)

I'd like to be able to keep my own git repository on my hosted webserver

I am trying to get make working on my hosted shared server, running centos.
At least the make command is recognized now, but I'm stuck at:
Code:
[~/src/git-1.6.5.4]# make
/bin/sh: curl-config: command not found
    CC fast-import.o
/bin/sh: /usr/bin/gcc: Permission denied
make: *** [fast-import.o] Error 126
I've tried adding libgcc-4.1.2-46.el5_4.1.x86_64.rpm to /mygcc but am not sure what to add to my .bash_profile to make it work.

Would I also need these:
rpm-build-4.4.2.3-18.el5.x86_64.rpm
make-3.81-3.el5.x86_64.rpm


How can I solve this?
Any problems that I have not foreseen yet?

Thanks a lot,

Erwin
Reply With Quote
  #8  
Old 5th December 2009, 04:41 PM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
linuxfedorafirefox
lexje,
Do you have the root password to install those packages?

If not, you have to ask your "webhoster" to install it for you.
Reply With Quote
  #9  
Old 5th December 2009, 04:43 PM
lexje Offline
Registered User
 
Join Date: Dec 2009
Posts: 2
windows_xp_2003firefox
non root install

Thanks for replying;
No, I have no root access -
I am exactly looking into achieving this as non-root...

Erwin
Reply With Quote
Reply

Tags
gcc, installing, permissions, root

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissions / Root help JadedBeauty86 Using Fedora 1 8th January 2009 03:51 PM
root permissions zichzach Using Fedora 2 10th June 2006 12:19 PM
Root permissions while logged in as something else? phantomcow2 Using Fedora 3 16th April 2006 03:56 PM
KPPP needs root permissions lukeedw Servers & Networking 4 26th October 2004 11:33 PM


Current GMT-time: 05:42 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat