Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8005899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:20:31+00:00 2026-06-04T17:20:31+00:00

After checking the posts: Install gcc on linux with no root privilege https://stackoverflow.com/questions/9316118/installing-gcc-as-non-root My

  • 0

After checking the posts:

Install gcc on linux with no root privilege

https://stackoverflow.com/questions/9316118/installing-gcc-as-non-root

My problem still cannot be solved so I post it here.

I am trying to install GCC 4.7 on Linux with gcc version 4.1.2 20080704 (Red Hat 4.1.2-52).

I run configure with prefix to be my home directory.

./configure \
    --with-gmp=/remote/home/gcc_4_7_2012_5_28/gmp505 \
    --with-mpfr=/remote/home/gcc_4_7_2012_5_28/mpfr242 \
    --with-mpc=/remote/home/gcc_4_7_2012_5_28/mpc081 \
    --disable-libjava

Then, make is ok. But, make check is not ok, I got error:

make[1]: Entering directory `/remote/home/gcc_4_7_2012_5_28/trunk'

make[2]: Entering directory `/remote/gcc_4_7_2012_5_28/trunk/host-x86_64-unknown-linux-gnu/fixincludes'

autogen -T ../.././fixincludes/check.tpl ../.././fixincludes/inclhack.def

make[2]: execvp: autogen: Permission denied

make install is not ok. 

make[1]: Entering directory `/remote/home/gcc_4_7_2012_5_28/trunk'
/bin/sh ./mkinstalldirs /usr/local /usr/local

make[2]: Entering directory `/remote/home/gcc_4_7_2012_5_28/trunk/host-x86_64-unknown-linux-gnu/fixincludes'

rm -rf /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/install-tools
/bin/sh ../.././fixincludes/../mkinstalldirs /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/install-tools

mkdir -p -- /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/install-tools

mkdir: cannot create directory `/usr/local/libexec/gcc': Permission denied

I cannot get root privilege.

Any help is appreciated.

Thanks !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:20:33+00:00Added an answer on June 4, 2026 at 5:20 pm

    When compiling GCC, you should never build it in its source tree!

    You forgot a prefix in your configure arguments, perhaps something like

    mkdir $HOME/gcc-build
    cd $HOME/gcc-build
    /your/path/to-source-tree/gcc-4.7.0/configure --prefix $HOME/pref \
             --program-suffix -my4.7 \
    # other configure arguments go here 
    

    of course, you’ll find your compiler installed in $HOME/pref/bin/gcc-my4.7 so I recommend adding $HOME/pref/bin to your $PATH and $HOME/pref/lib to your $LD_LIBRARY_PATH

    You might try to build the GCC MELT [meta-] plugin once you installed successfully your GCC 4.7

    The gcc-help@gcc.gnu.org mailing list is a good place to get such help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After checking out code for the first time from a repository into Eclipse using
After checking out a branch in a repository git always prints a list of
After checking 20+ answers I'm sure there is no way to trace (using JS
How to remove using jquery html table row after checking checkbox that in this
I have an array of uint-types in C#, After checking if the program is
I like the pattern I saw in this blog post ( http://marekblotny.blogspot.com/2009/04/conventions-after-rewrite.html ), where
$URL:https://demo.firstach.com/https/TransRequest.asp?Login_ID=someit&Transaction_Key=somekey&Customer_ID=23&Customer_Name=Muhammad Naeem&Customer_Address=Address&Customer_City=city&Customer_State=HI&Customer_Zip=54000&Customer_Phone=--&Customer_Bank_ID=111111118&Customer_Bank_Account=12345678901234567890&Account_Type=Business Checking&Transaction_Type=Debit&Frequency=Once&Number_of_Payments=1&Effective_Date=12%2F05%2F2010&Amount_per_Transaction=10.00&Check_No=&Memo=&SECCType=WEB $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
After highlighting text, I would like to obtain the paragraph in which the selected
After merging a branch back to the trunk what do most people do with
After some experience with functional languages, I'm starting to use recursion more in Java

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.