# no acceptable C compiler found in $PATH when installing py

**URL:** <https://forums.suse.com/t/no-acceptable-c-compiler-found-in-path-when-installing-py/30202>\
**Category:** SLES Configure-Administer\
**Created:** [August 21, 2017, 8:04pm UTC](https://forums.suse.com/t/no-acceptable-c-compiler-found-in-path-when-installing-py/30202 "2017-08-21T20:04:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevena1974](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@stevena1974](https://forums.suse.com/u/stevena1974)\
**Post date:** [August 21, 2017, 8:04pm UTC](https://forums.suse.com/t/no-acceptable-c-compiler-found-in-path-when-installing-py/30202/1 "2017-08-21T20:04:34Z")

</div>

Dear All,

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.

How can this problem be solved? I’ve been trying to find a solution for 3 hours but it still stucks. Please help. Thank you.

BR,  
Stevena

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [August 21, 2017, 10:21pm UTC](https://forums.suse.com/t/no-acceptable-c-compiler-found-in-path-when-installing-py/30202/2 "2017-08-21T22:21:36Z")

</div>

Have you tried installing ‘gcc’? What have you tried to resolve this for  
that period of time?

```auto
sudo zypper install gcc
```

–  
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.

---

<div class="post-metadata">

**Author:** ![stevena1974](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@stevena1974](https://forums.suse.com/u/stevena1974)\
**Post date:** [August 22, 2017, 1:27am UTC](https://forums.suse.com/t/no-acceptable-c-compiler-found-in-path-when-installing-py/30202/3 "2017-08-22T01:27:36Z")

</div>

Thank you for your answer.

I m trying to install Gcc but failed. Here are the error messages:

The following NEW packages are going to be installed:  
gcc gcc43 glibc-devel linux-kernel-headers

4 new packages to install.  
Overall download size: 7.7 MiB. After the operation, additional 41.4 MiB will  
be used.  
Continue? [y/n/? shows all options] (y): y  
Retrieving package linux-kernel-headers-3.0-19.18.noarch (1/4), 813.0 KiB (3.0 MiB unpacked)  
Failed to mount cd:///?devices=/dev/sr0 on /var/adm/mount/AP\_0xkxfRUQ: Mounting media failed (mount: no medium found on /dev/sr0)

Please insert medium [SLES-for-SAP-Applications 11.4.4-1.2] #1 and type ‘y’ to continue or ‘n’ to cancel the operation. [yes/no] (no): no  
Failed to provide Package linux-kernel-headers-3.0-19.18. Do you want to retry retrieval?

[SLES-for-SAP-Applications 11.4.4-1.2|cd:///?devices=/dev/sr0] Can’t provide file ‘./suse/noarch/linux-kernel-headers-3.0-19.18.noarch.rpm’ from repository ‘SLES-for-SAP-Applications 11.4.4-1.2’  
History:

- Failed to mount cd:///?devices=/dev/sr0 on /var/adm/mount/AP\_0xkxfRUQ: Mounting media failed (mount: no medium found on /dev/sr0)

- Can’t provide ./suse/noarch/linux-kernel-headers-3.0-19.18.noarch.rpm

Abort, retry, ignore? [a/r/i] (a): a  
Problem occured during or after installation or removal of packages:  
Installation aborted by user

How to install it offline and from gcc folder ? What gcc version is applicable for SLES 11.4 ? Does the gcc-6.4.0.tar support SLES 11.4 for SAP ? Pls let me know. Thank you

Rgds,  
Stevena

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [August 22, 2017, 2:02am UTC](https://forums.suse.com/t/no-acceptable-c-compiler-found-in-path-when-installing-py/30202/4 "2017-08-22T02:02:43Z")

</div>

stevena1974 Wrote in message:  
[color=blue]

> 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.
> 
> How can this problem be solved? I’ve been trying to find a solution for  
> 3 hours but it still stucks. Please help. Thank you.[/color]

Firstly since you are using SUSE Linux Enterprise Server (SLES)  
for SAP Applications please note that there is a forum dedicated  
to that at  
[https://forums.suse.com/forumdisplay.php?41-SLES-SAP-Applications](https://forums.suse.com/forumdisplay.php?41-SLES-SAP-Applications)

Presumably since you are using SLES for SAP Applications for a  
reason, one of which being SAP and the another being support. If  
this is the case then you should not upgrade a software component  
by downloading the source for a later version and compiling  
yourself but instead do so via updated packages which SUSE  
release and support. If your server is registered and patch  
up-to-date then it has the latest Python SUSE have made available  
for and support SLES for SAP Applications 11 SP4.

## HTH.

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [August 22, 2017, 3:30am UTC](https://forums.suse.com/t/no-acceptable-c-compiler-found-in-path-when-installing-py/30202/5 "2017-08-22T03:30:54Z")

</div>

You need to put the DVD in or else it cannot be read to get the ‘gcc’ and  
‘linux-kernel-headers’ packages. Alternatively, register the box so it  
can get updates from online repositories.

–  
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.

---

<div class="post-metadata">

**Author:** ![stevena1974](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@stevena1974](https://forums.suse.com/u/stevena1974)\
**Post date:** [August 22, 2017, 4:10am UTC](https://forums.suse.com/t/no-acceptable-c-compiler-found-in-path-when-installing-py/30202/6 "2017-08-22T04:10:46Z")

</div>

Okay, I move this thread to the forum.

BR,  
Stevena
