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