can someone please help. I am trying to set install a LAMP server on Fedora 18 I kept getting an error message whenever i run the "scripts/mysql_install_db --user=mysql" command.
有人可以帮忙吗我试图在Fedora 18上设置安装LAMP服务器每当我运行“scripts / mysql_install_db --user = mysql”命令时,我都会收到错误消息。
-bash: scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory
by the way, I want my 'P' to be a PHP and not Perl Below is how I went about the installation: $ groupadd mysql $ useradd -g msql -c "MySQL Server" mysql $ gzip... $ tar.... $ ln ... to create a symbolic link named (mysql) $ cd msql (pwd: /usr/local/mysql/) $ scripts/mysql_install_db --user=mysql
顺便说一句,我希望我的'P'是一个PHP而不是Perl下面是我如何进行安装:$ groupadd mysql $ useradd -g msql -c“MySQL Server”mysql $ gzip ... $ tar .. .. $ ln ...创建一个名为(mysql)的符号链接$ cd msql(pwd:/ usr / local / mysql /)$ scripts / mysql_install_db --user = mysql
!!!Now this is when i get that error message!!!!!!.
!!!现在这是我收到错误消息!!!!!!
Thanks in advance
提前致谢
1 个解决方案
#1
0
It appears that the scripts you are trying to execute have CR+LF EOL marker. You can verify that by issuing:
您尝试执行的脚本似乎具有CR + LF EOL标记。您可以通过签发来验证:
file <filename>
(The output would contain with CRLF line terminators
.)
(输出将包含CRLF行终止符。)
Change it to LF
and the scripts should execute fine. See http://en.wikipedia.org/wiki/Newline for more.
将其更改为LF,脚本应该可以正常执行。有关更多信息,请参见http://en.wikipedia.org/wiki/Newline。
#1
0
It appears that the scripts you are trying to execute have CR+LF EOL marker. You can verify that by issuing:
您尝试执行的脚本似乎具有CR + LF EOL标记。您可以通过签发来验证:
file <filename>
(The output would contain with CRLF line terminators
.)
(输出将包含CRLF行终止符。)
Change it to LF
and the scripts should execute fine. See http://en.wikipedia.org/wiki/Newline for more.
将其更改为LF,脚本应该可以正常执行。有关更多信息,请参见http://en.wikipedia.org/wiki/Newline。