/usr/bin/perl:bad interpreter :no file or directory
来源:互联网 发布:小猪o2o9.0源码下载 编辑:程序博客网 时间:2024/05/29 19:29
bash: ./vmware-install.pl: /usr/bin/perl: bad interpreter: 没有那个文件或目录
问题原因:由于.pl文件是用perl语言编写的程序文件,所以想要执行该文件,需要linux下有安装好的perl运行环境,才能够执行.pl程序
解决办法:安装perl运行环境
1、安装Perl环境
yum install perl*这个命令基本上把perl的模块给安装齐了。
yum install cpan
CPAN这个就不用说了吧,大家都懂。
如果你对perl模块版本要求比较高,希望是新版的那么请按照一下安装:
yum install perl
yum install cpan
以后有什么需要直接用cpan编译安装。
2、下载安装最新Perl版本
首先下载最新的perl源码包:
[root@akinlau /]# wget http://www.cpan.org/src/5.0/perl-5.16.1.tar.gz
解压源码包
[root@akinlau /]# tar -xzf perl-5.16.1.tar.gz
编译并安装,目录可以自定义
[root@akinlau /]# cd perl-5.16.1
[root@akinlau perl-5.16.1]# ./Configure -des -Dprefix=/usr/local/perl
[root@akinlau perl-5.16.1]# make
[root@akinlau perl-5.16.1]# make test
[root@akinlau perl-5.16.1]# make install
[root@akinlau perl-5.16.1]# perl -v
This is perl 5, version 16, subversion 1 (v5.16.1) built for x86_64-linux
Copyright 1987-2012, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using “man perl” or “perldoc perl”. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
如果看到以上信息,就证明安装成功了
- /usr/bin/perl:bad interpreter :no file or directory
- Perl 脚本执行错误/usr/bin/perl^M: bad interpreter: No such file or directory
- /usr/bin/perl^M: bad interpreter: No such file or directory
- nagios监控客户端报错/usr/bin/perl^M: bad interpreter: No such file or directory
- /usr/bin/expect: bad interpreter: No such file or directory
- -bash: /usr/bin/autocrorder: /usr/bin/python^M: bad interpreter: No such file or directory
- bash: /usr/bin/autocrorder: /usr/bin/python^M: bad interpreter: No such file or directory
- -bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory
- -bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory
- -bash: /usr/bin/yum: /usr/bin/python2.6.62.6.6: bad interpreter: No such file or directory
- 在安装VMware-tools出现bash:./vmware-install.pl :/usr/bin/perl:bad interpreter:No such file or directory.
- -bash: /usr/bin/fap: /bin/bash^M: bad interpreter: No such file or directory
- /usr/bin/python^M: bad interpreter: No such file or directory
- bash: /usr/bin/php^M: bad interpreter: No such file or directory
- -bash: ./****.py: /usr/bin/python^M: bad interpreter: No such file or directory
- -bash: ./cli: /usr/bin/php^M: bad interpreter: No such file or directory
- -bash: /usr/bin/python^M: bad interpreter: No such file or directory
- 解决/usr/bin/python\r\n^M: bad interpreter: No such file or directory
- [转] DCT变换、DCT反变换、分块DCT变换
- Jdbc连接
- c++网络编程客户端
- MySQL 可以用localhost 连接,但不能用IP连接的问题,局域网192.168.*.* 无法连接mysql
- 省市县/区 数据字典及查询方法
- /usr/bin/perl:bad interpreter :no file or directory
- WPF自定义控件与样式(1)-矢量字体图标(iconfont)
- JVM 年轻代和年老代 大小设置
- 581 Shortest Unsorted Continuous Subarray
- UVA 10601 CUBES (正方体Polya,有限制)
- 按下回车键将焦点转换到表单的下一个元素
- 【Scikit-Learn 中文文档】支持向量机
- 11.18/19-Java-作业
- 自己动手写BootLoader