{"id":42,"date":"2015-06-17T00:54:32","date_gmt":"2015-06-17T00:54:32","guid":{"rendered":"http:\/\/168.138.249.13\/?p=42"},"modified":"2020-08-06T03:31:45","modified_gmt":"2020-08-06T03:31:45","slug":"corrigindo-o-erro-bad-interpreter-no-such-file-or-directory-no-oracle-linux-centos-ou-redhat","status":"publish","type":"post","link":"https:\/\/adrianotanaka.com.br\/index.php\/2015\/06\/17\/corrigindo-o-erro-bad-interpreter-no-such-file-or-directory-no-oracle-linux-centos-ou-redhat\/","title":{"rendered":"Corrigindo o erro bad interpreter: No such file or directory no Oracle Linux, CentOS ou RedHat"},"content":{"rendered":"\n<p>Hoje ao tentar instalar um pacote usando o comando yum install em uma m\u00e1quina de teste, o seguinte erro foi apresentado:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@presizing ~]# yum install httpd\n-bash: \/usr\/bin\/yum: \/usr\/bin\/python: bad interpreter: No such file or directory<\/code><\/pre>\n\n\n\n<p>Achei estranho esse erro, mas ao verificar o local para onde ele estava apontando(\/usr\/bin\/python), acabei achando o erro:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@presizing ~]# cd \/usr\/bin\/\n&#91;root@presizing bin]# ls -lhtr python*\n-rwxr-xr-x. 1 root root 1.4K Jan 22  2014 python2.6-config\n-rwxr-xr-x. 1 root root 8.9K Jan 22  2014 python2.6\n--->lrwxrwxrwx. 1 root root    6 Feb 19 10:57 python2 -> python\nlrwxrwxrwx. 1 root root   16 Feb 19 11:08 python-config -> python2.6-config\n--->lrwxrwxrwx. 1 root root   18 Feb 19 12:04 python -> \/usr\/bin\/python2.7<\/code><\/pre>\n\n\n\n<p>O caminho \/usr\/bin\/python aponta para \/usr\/bin\/python2.7 , um caminho que n\u00e3o existe, para resolver esse erro, tive que recriar os links simb\u00f3licos:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@presizing bin]# ln -f -s python2.6 python\n&#91;root@presizing bin]# ln -f -s python2.6 python2<\/code><\/pre>\n\n\n\n<p>Feito isso o pacote foi instalado com sucesso:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@presizing bin]# yum install httpd\nLoaded plugins: refresh-packagekit, security\n...\nUpdated:\n  httpd.x86_64 0:2.2.15-39.0.1.el6                                                         \n\nDependency Updated:\n  httpd-tools.x86_64 0:2.2.15-39.0.1.el6                                                   \n\nComplete!<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Hoje ao tentar instalar um pacote usando o comando yum install em uma m\u00e1quina de teste, o seguinte erro foi apresentado: Achei estranho esse erro, mas ao verificar o local para onde ele estava apontando(\/usr\/bin\/python), acabei achando o erro: O caminho \/usr\/bin\/python aponta para \/usr\/bin\/python2.7 , um caminho que n\u00e3o existe, para resolver esse erro, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"material-hide-sections":[],"footnotes":""},"categories":[7,1],"tags":[9],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-linux","category-uncategorized","tag-linux"],"_links":{"self":[{"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":1,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/posts\/42\/revisions\/43"}],"wp:attachment":[{"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}