mysql_install_db: /usr/bin/perl: bad interpreter:

centos 7安装mysql报错-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory

[[email protected] mysql]# ./scripts/mysql_install_db  --user=mysql

-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory

貌似提示注释器错误,没有/usr/bin/perl文件或者档案,解决办法(安装perl跟perl-devel即可):

执行  yum -y install perl perl-devel

后在初始化数据库即可。

bin/mysql_install_db 
FATAL ERROR: please install the following Perl modules before executing /usr/bin/mysql_install_db: 
Data::Dumper

yum install -y perl-Data-Dumper 即可。。

原文地址:http://blog.51cto.com/sf1314/2062149

时间: 2024-10-08 10:14:19

mysql_install_db: /usr/bin/perl: bad interpreter:的相关文章

-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file

安装完成后,初始化数据库报错如下: [[email protected] mysql]# ./scripts/mysql_install_db  --user=mysql -bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory 貌似提示注释器错误,没有/usr/bin/perl文件或者档案,解决办法(安装perl跟perl-devel即可): 执行  yum -y i

/usr/bin/perl: bad interpreter: No such file or di

在fedora中第一次安装vm tools时遇到了这个题,现将我的解决方法与大家分享,希望能对大家有所帮助! 问题:解压完vm tools的压缩包之后,我就在root权限下执行./vmware-install.pl,结果报错/usr/bin/perl: bad interpreter: No such file or directory,解决如下: 1.查看版本号:uname -r得到内核版本,yum install 获取的内核版本 然后再yum install gcc 2.下面到vmware-

/usr/bin/perl:bad interpreter:No such file or directory 的解决办法

yum -y install gcc gcc-c++ perl make kernel-headers kernel-devel 参考: https://blog.csdn.net/Hello_World_QWP/article/details/82624715 原文地址:https://www.cnblogs.com/sea-stream/p/10387794.html

/usr/bin/perl^M: bad interpreter: No such file or directory

1.web显示 2.nagios服务端测试 [[email protected] objects]# /usr/local/nagios/libexec/check_nrpe -H 10.0.0.10 -c check_memNRPE: Unable to read output 3.nagios客户端测试 [[email protected] ~]#/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1-c check_memNRPE: Unable

/usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory

问题:当你执行yum 命令时提示如下错误:/usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory解决方法:上面的提示说明yum脚本没有找到python命令.只要找到python命令的路径,然后建立个软链接即可.如:sudo ln -s /usr/bin/python2.4 /usr/bin/pythonps:yum命令是用python脚本写的.打开yum脚本,你可以看到. /usr/bin/yum: /u

-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 python多版本造成额问题 找不到python的路径 所以保持 -查找python#whereis pythonpython: /usr/bin/python /usr/bin/python2.4 /usr/lib/python2.4 /usr/local/bin/python2.7 /usr/local/bin/python

#!/usr/bin/python的作用

这是脚本语言共同遵守的规则:当第一行为 #!/path/to/script/interpreter时,指定了用来执行本脚本的解释器. 注意:1.必须是文件的第一行2.#!开头的,说明是脚本3./path/to/script/interpreter是脚本解释器的全路径名. 例如:#!/bin/sh shell脚本#!/usr/bin/perl perl脚本#!/usr/bin/python python脚本#!/usr/bin/python2 python2脚本#!/usr/bin/python3

#!/usr/bin/env 脚本解释程序的作用

the Zimbu programming language http://www.zimbu.org/getting-started ------------------------------------------------------------------------------ #!/usr/bin/env 在linux的一些bash的脚本,需在开头一行指定脚本的解释程序,如: #!/usr/bin/env python 再如: #!/usr/bin/env perl #!/usr

初始化mysql数据库 /usr/bin/mysql_install_db执行时报错

错误描述: FATAL ERROR: please install the following Perl modules before executing /usr/bin/mysql_install_db:Data::Dumper 解决办法: 安装autoconf库 yum -y install autoconf 再次运行 /usr/bin/mysql_install_db,错误解决. 原文地址:https://www.cnblogs.com/syq816/p/8582628.html