No acceptable C compiler found in $PATH when installing

Dear All,

This new thread is copied from this link:
https://forums.suse.com/showthread.php?9855-no-acceptable-C-compiler-found-in-PATH-when-installing-py

because of wrong forum.
here is my problem:

I’m trying to update the python version from 2.6.x to 2.7.x in the SLES 11.4 for SAP Hana.
I follow the steps belows:

tar -zxvf Python-2.7.x.tar.gz
cd Python-2.7.x
./configure

command I get the following output:

checking for --enable-universalsdk… no
checking for --with-universal-archs… 32-bit
checking MACHDEP… linux3
checking EXTRAPLATDIR…
checking machine type as reported by uname -m… x86_64
checking for --without-gcc… no
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: in /home3/mikos89/Python-2.7.1': configure: error: no acceptable C compiler found in $PATH See config.log’ for more details.

I’ve got the solution in my old thread i.e. by installing gcc but the gcc installation failed.
The solution is put the DVD into server or else it cannot be read to get the ‘gcc’ and
‘linux-kernel-headers’ packages.

May I install gcc from gcc folder ? Please help. Thank you.

BR,
Stevena

Dear All,

I have tried to use the solution in this link:

https://lizards.opensuse.org/2013/10/07/opensuse-and-gcc-part1/

  • YaST way part.

but I do not know yet which file to install.
Here are the screen shot showing the list of gcc files there:

http://imgur.com/0zkT0RA

Pls help to solve this issue. Thank you.

BR,
Stevena

What you have selected should be plenty, or you can use the command from
the previous thread:

sudo zypper in gcc

#or

sudo zypper in gcc43

For this to work, whether via zypper or Yast, you’ll need to have
installation media setup properly.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.