Installing C compiler from source code on shared host server












0















I purchased a shared host server at bluehost.



I need to be able to install new python modules, but since I have no root permissions at the server I cannot do that with the current python that is built int and installed.



I am trying to install python in my working space so I will have root privileges ( I cannot use apt-get install - it has to be from source code ).



I downloaded the python tar file and extracted it, and as I try to install it , it throws me the following error:



configure: error: in '/home2/ofekafsc/python/Python-3.6.5':



configure: error: no acceptable C compiler found in $PATH



Same thing happens when I try to install GCC



ofekafsc@ofek-afs.com [~/gcc/objdir]# $PWD/../gcc-8.2.0/configure --prefix=$HOME /gcc-8.2.0 --enable-languages=c,c++,fortran,go
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... no, using cp -p
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libmpx support... yes
checking for libhsail-rt support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in '/home2/ofekafsc/gcc/objdir':
configure: error: no acceptable C compiler found in $PATH



As I said, I do not have high enough of privilege to do something such as sudo apt-get install gcc , I have to install it from source.



Any help fixing the issue will be happily accepted!!










share|improve this question


















  • 1





    You cannot compile GCC without already having a compiler installed. It is a chicken and egg situation. The only way around it is compiling on another system and copying it over, which is effectively what apt-get achieves.

    – Mokubai
    Jan 23 at 14:15
















0















I purchased a shared host server at bluehost.



I need to be able to install new python modules, but since I have no root permissions at the server I cannot do that with the current python that is built int and installed.



I am trying to install python in my working space so I will have root privileges ( I cannot use apt-get install - it has to be from source code ).



I downloaded the python tar file and extracted it, and as I try to install it , it throws me the following error:



configure: error: in '/home2/ofekafsc/python/Python-3.6.5':



configure: error: no acceptable C compiler found in $PATH



Same thing happens when I try to install GCC



ofekafsc@ofek-afs.com [~/gcc/objdir]# $PWD/../gcc-8.2.0/configure --prefix=$HOME /gcc-8.2.0 --enable-languages=c,c++,fortran,go
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... no, using cp -p
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libmpx support... yes
checking for libhsail-rt support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in '/home2/ofekafsc/gcc/objdir':
configure: error: no acceptable C compiler found in $PATH



As I said, I do not have high enough of privilege to do something such as sudo apt-get install gcc , I have to install it from source.



Any help fixing the issue will be happily accepted!!










share|improve this question


















  • 1





    You cannot compile GCC without already having a compiler installed. It is a chicken and egg situation. The only way around it is compiling on another system and copying it over, which is effectively what apt-get achieves.

    – Mokubai
    Jan 23 at 14:15














0












0








0








I purchased a shared host server at bluehost.



I need to be able to install new python modules, but since I have no root permissions at the server I cannot do that with the current python that is built int and installed.



I am trying to install python in my working space so I will have root privileges ( I cannot use apt-get install - it has to be from source code ).



I downloaded the python tar file and extracted it, and as I try to install it , it throws me the following error:



configure: error: in '/home2/ofekafsc/python/Python-3.6.5':



configure: error: no acceptable C compiler found in $PATH



Same thing happens when I try to install GCC



ofekafsc@ofek-afs.com [~/gcc/objdir]# $PWD/../gcc-8.2.0/configure --prefix=$HOME /gcc-8.2.0 --enable-languages=c,c++,fortran,go
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... no, using cp -p
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libmpx support... yes
checking for libhsail-rt support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in '/home2/ofekafsc/gcc/objdir':
configure: error: no acceptable C compiler found in $PATH



As I said, I do not have high enough of privilege to do something such as sudo apt-get install gcc , I have to install it from source.



Any help fixing the issue will be happily accepted!!










share|improve this question














I purchased a shared host server at bluehost.



I need to be able to install new python modules, but since I have no root permissions at the server I cannot do that with the current python that is built int and installed.



I am trying to install python in my working space so I will have root privileges ( I cannot use apt-get install - it has to be from source code ).



I downloaded the python tar file and extracted it, and as I try to install it , it throws me the following error:



configure: error: in '/home2/ofekafsc/python/Python-3.6.5':



configure: error: no acceptable C compiler found in $PATH



Same thing happens when I try to install GCC



ofekafsc@ofek-afs.com [~/gcc/objdir]# $PWD/../gcc-8.2.0/configure --prefix=$HOME /gcc-8.2.0 --enable-languages=c,c++,fortran,go
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... no, using cp -p
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libmpx support... yes
checking for libhsail-rt support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in '/home2/ofekafsc/gcc/objdir':
configure: error: no acceptable C compiler found in $PATH



As I said, I do not have high enough of privilege to do something such as sudo apt-get install gcc , I have to install it from source.



Any help fixing the issue will be happily accepted!!







linux ubuntu installation python gcc






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 23 at 13:02









RanABRanAB

1




1








  • 1





    You cannot compile GCC without already having a compiler installed. It is a chicken and egg situation. The only way around it is compiling on another system and copying it over, which is effectively what apt-get achieves.

    – Mokubai
    Jan 23 at 14:15














  • 1





    You cannot compile GCC without already having a compiler installed. It is a chicken and egg situation. The only way around it is compiling on another system and copying it over, which is effectively what apt-get achieves.

    – Mokubai
    Jan 23 at 14:15








1




1





You cannot compile GCC without already having a compiler installed. It is a chicken and egg situation. The only way around it is compiling on another system and copying it over, which is effectively what apt-get achieves.

– Mokubai
Jan 23 at 14:15





You cannot compile GCC without already having a compiler installed. It is a chicken and egg situation. The only way around it is compiling on another system and copying it over, which is effectively what apt-get achieves.

– Mokubai
Jan 23 at 14:15










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397451%2finstalling-c-compiler-from-source-code-on-shared-host-server%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397451%2finstalling-c-compiler-from-source-code-on-shared-host-server%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Сан-Квентин

Алькесар

Josef Freinademetz