Skip to content Skip to sidebar Skip to footer

How To Fix "bad Interpreter" Error When Using Yum?

$ yum install httpd-devel -bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory How can I fix this?

Solution 1:

The first line of any bash, Perl, or Python script tells bash where to find the correct interpreter. For yum it is:

#!/usr/bin/python

You can tell where Python is actually installed by typing:

which python

The best way to fix this is to add a symbolic link. For example:

ln -s /usr/local/bin/python /usr/bin/python

That way you don't have to fix it in every script.

Post a Comment for "How To Fix "bad Interpreter" Error When Using Yum?"