错误是什么“糟糕的翻译“意思? [英] what does the error " bad interpreter" mean?

查看:73
本文介绍了错误是什么“糟糕的翻译“意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我以前从来没有写过PHP脚本在我家Ubuntu上运行

机器(虽然我为我写了几十个PHP cron作业web

服务器),所以我想我会从一个非常简单的测试开始:


#!/ usr / share / php5

<?php

echo" hello";

?>

在终端窗口中,我尝试执行此操作,我得到一个坏的

interperter错误:


lkrubner @ programmerpc3:/ $ / home / lkrubner / cron_jobs /

dailyBackupSpaceBunny.php


bash:/home/lkrubner/cron_jobs/dailyBackupSpaceBunny.php:/ usr / share /

php5:糟糕的翻译:权限被拒绝

这是什么意思?


/ usr / share /中的php5解释器的权限设置为755.机器上的任何

脚本都应该能够执行。

解决方案

/ home / lkrubner / cron_jobs /

dailyBackupSpaceBunny.php

bash:/ home / lkrubner / cron_jobs / dailyBackupSpaceBunny.php:/ usr / share /

php5:糟糕的翻译:允许拒绝

这是什么意思?

/ usr / share /中的php5解释器的权限设置为755.机器上的任何

脚本都应该能够执行。


lawrence k schreef:


我已经知道了ver在编写PHP脚本之前在我家Ubuntu上运行

机器(虽然我已经为我的网络写了几十个PHP cron作业

服务器),所以我想我会从一个非常简单的测试开始:


#!/ usr / share / php5

<?php

echo" hello";

?>


在终端窗口中,我尝试执行此操作,然后收到错误的

interperter错误:


lkrubner @ programmerpc3:/


/ home / lkrubner / cron_jobs /

dailyBackupSpaceBunny.php


bash:/home/lkrubner/cron_jobs/dailyBackupSpaceBunny.php:/ usr / share /

php5:糟糕的翻译:权限被拒绝


这是什么意思?


/ usr / share /中的php5解释器的权限设置为755.机器上的任何

脚本应该能够执行。



这意味着你得到了错误的口译员

试试:


I''ve never before written a PHP script to run on my home Ubuntu
machine (though I''ve written dozens of PHP cron jobs for my web
server), so I thought I''d start off with a very simple test:

#!/usr/share/php5
<?php
echo "hello";
?>
In a terminal window, I try to execute this, and I get a "bad
interperter" error:

lkrubner@programmerpc3:/$ /home/lkrubner/cron_jobs/
dailyBackupSpaceBunny.php

bash: /home/lkrubner/cron_jobs/dailyBackupSpaceBunny.php: /usr/share/
php5: bad interpreter: Permission denied
What does that mean?

The php5 interpreter in /usr/share/ has permissions set to 755. Any
script on the machine should be able to execute.

解决方案

/home/lkrubner/cron_jobs/
dailyBackupSpaceBunny.php

bash: /home/lkrubner/cron_jobs/dailyBackupSpaceBunny.php: /usr/share/
php5: bad interpreter: Permission denied
What does that mean?

The php5 interpreter in /usr/share/ has permissions set to 755. Any
script on the machine should be able to execute.


lawrence k schreef:

I''ve never before written a PHP script to run on my home Ubuntu
machine (though I''ve written dozens of PHP cron jobs for my web
server), so I thought I''d start off with a very simple test:

#!/usr/share/php5
<?php
echo "hello";
?>
In a terminal window, I try to execute this, and I get a "bad
interperter" error:

lkrubner@programmerpc3:/


/home/lkrubner/cron_jobs/
dailyBackupSpaceBunny.php

bash: /home/lkrubner/cron_jobs/dailyBackupSpaceBunny.php: /usr/share/
php5: bad interpreter: Permission denied
What does that mean?

The php5 interpreter in /usr/share/ has permissions set to 755. Any
script on the machine should be able to execute.

it means you got the wrong interpreter
try:


这篇关于错误是什么“糟糕的翻译“意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆