gcc $PATH problem

gcc is installed as we can see below . but while installing some other software it raises some issue regarding $PATH
Help needed please.

linux-pbb1:/home/ambarish/software/xine-lib-1.1.16.2 # gcc

Program ‘gcc’ is present in package ‘gcc’, which is installed on your system.

Absolute path to ‘gcc’ is ‘/usr/bin/gcc’. Please check your $PATH variable to see whether it contains the mentioned path.

bash: gcc: command not found
linux-pbb1:/home/ambarish/software/xine-lib-1.1.16.2 # ./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking build system type… (cached) i686-pc-linux-gnu
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: no acceptable C compiler found in $PATH
See `config.log’ for more details.
linux-pbb1:/home/ambarish/software/xine-lib-1.1.16.2 #

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

And, did you check $PATH to see if the path to ‘gcc’ was in there? It
definitely should be, but it’s possible that it is not. Post the output from:

env | grep PATH

Good luck.

ambarish os wrote:
> gcc is installed as we can see below . but while installing some other
> software it raises some issue regarding $PATH
> Help needed please.
>
>
>
> linux-pbb1:/home/ambarish/software/xine-lib-1.1.16.2 # gcc
>
> Program ‘gcc’ is present in package ‘gcc’, which is installed on your
> system.
>
> Absolute path to ‘gcc’ is ‘/usr/bin/gcc’. Please check your $PATH
> variable to see whether it contains the mentioned path.
>
> bash: gcc: command not found
> linux-pbb1:/home/ambarish/software/xine-lib-1.1.16.2 # ./configure
> checking for a BSD-compatible install… /usr/bin/install -c
> checking whether build environment is sane… yes
> checking for a thread-safe mkdir -p… /bin/mkdir -p
> checking for gawk… gawk
> checking whether make sets $(MAKE)… yes
> checking build system type… i686-pc-linux-gnu
> checking host system type… i686-pc-linux-gnu
> checking build system type… (cached) i686-pc-linux-gnu
> checking for gcc… no
> checking for cc… no
> checking for cl.exe… no
> configure: error: no acceptable C compiler found in $PATH
> See `config.log’ for more details.
> linux-pbb1:/home/ambarish/software/xine-lib-1.1.16.2 #
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJuSk9AAoJEF+XTK08PnB5NWMQAJshRvIY8i5RE7VXvBn4DhvR
8+4y/0J89Zu0pk6V2Ja7l/mawRk7G8y/bUqXS548Ypvc+CSwMksV7OmIUm/HY9iJ
RHxb/YRPDMd3Fhkx6rikYYRtXfQEUflA4c+fgf2s0pBIdisbB/ZN6yIgNKmEsyhD
Pjvvm83Ico1rDqAYONJSO/X4JTET0XMK2669hYDHuo9L/H+Zo1tk6LRQtqqnonW0
suf3iEha1ODNhZ/0A/HSin1yV9HHcb646xGbPoYLBTJ3KTvVhDXBcx1Tonmvaz4B
ecIXMca46QiKxvQ2fx6RnFecsmVUkF1KWPfR52uh4n1cOLHcSA2O/hhfARRu7Uxm
EDfxSX2gl8twUbRxy12RQVqFO8kJLVgN8PnrQFQi0r54nIF7ErmPxm41I8rb30rC
KI8UDABwCxTqdDpOa8IqM8LpSgZoXTF3pNdYBcGDAxZ7F8P8DMbAw3C+izVMDog6
juevuPNFf3CemlIVj8tzWwECiewqpWrhsoUT3BRm2A9qkAjpUEIP3DRbnGKtFqDN
b7i1f7klryWalhy/xPye1EXE+/Gkxptmhmx85TZZhaaTLM6MvDg95VTedIjTJH78
q5LubNmwLQu66khK+kmeDLmW/CgTE9ajgC5kk937tp4x6REoRtYFke6alP0dZSXH
HWBl7ODw38PUv8gYJ8Ih
=qHr+
-----END PGP SIGNATURE-----

linux-pbb1:/home/ambarish/software/xine-lib-1.1.16.2 # env | grep PATH
MANPATH=/usr/local/man:/usr/share/man
XNLSPATH=/usr/share/X11/nls
PATH=/home/ambarish/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/real/RealPlayer
ALSA_CONFIG_PATH=/etc/alsa-pulse.conf
INFOPATH=/usr/local/info:/usr/share/info:/usr/info
LADSPA_PATH=/usr/lib/ladspa

please also explain what can u understand from above stuff

linux-pbb1:/home/ambarish/software/xine-lib-1.1.16.2 # env | grep PATH
MANPATH=/usr/local/man:/usr/share/man
XNLSPATH=/usr/share/X11/nls
PATH=/home/ambarish/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/real/RealPlayer
ALSA_CONFIG_PATH=/etc/alsa-pulse.conf
INFOPATH=/usr/local/info:/usr/share/info:/usr/info
LADSPA_PATH=/usr/lib/ladspa

what can u understand , how can we go about $PATH prblm. for gcc

Hi
Your compiling as root user? You only need to compile as a user and
install as root. I’m guessing when you changed to root you used su not
su - as it’s showing your user environment not root’s.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (i586) Kernel 2.6.27.15-2-default
up 23:41, 1 user, load average: 0.25, 0.18, 0.34
GPU GeForce 6600 TE/6200 TE - Driver Version: 180.35

in which directory i shall put my path for gcc. what should the syntax look like.

Hi
Have you tried the configure command as your user rather than root? Can
you confirm your gcc version?

According to your previous output the path to gcc is in your
environment.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (i586) Kernel 2.6.27.15-2-default
up 1 day 19:44, 1 user, load average: 0.39, 0.36, 0.28
GPU GeForce 6600 TE/6200 TE - Driver Version: 180.35