I'm trying to install Python-3.6.5 on a machine that does not have any package manager installed, like apt-get or yum. I do have root access.
I can wget Python, but when I run the ./configure, I get the following error:
configure: error: no acceptable C compiler found in $PATH
Okay, so next I try to install GCC. I follow these instructions:
cd /bin
wget http://www.netgull.com/gcc/releases/gcc-4.8.5/gcc-4.8.5.tar.gz
tar -xvf gcc-4.8.5.tar.gz
cd gcc-4.8.5
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.8.5/configure --prefix=$HOME/gcc-4.8.5 --enable-languages=c,c++,fortran,go
And on that last command, I once again get:
configure: error: no acceptable C compiler found in $PATH
Lots of googling and reading led me to suggestion to add CC=/usr/bin/gcc like so:
CC=/usr/bin/gcc-x $PWD/../gcc-4.8.5/configure --prefix=$HOME/gcc-4.8.5 --enable-languages=c,c++,fortran
That gets me a new error:
configure: error: C compiler cannot create executables
Any ideas here? I'm really at a loss here, I've spent a long time trying to figure this one out and it's annoying me to no end.