PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, March 15, 2022

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

 March 15, 2022     fedora, lamp, mysql     No comments   

Issue

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.

-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

!!!Now this is when i get that error message!!!!!!.

Thanks in advance


Solution

It appears that the scripts you are trying to execute have CR+LF EOL marker. You can verify that by issuing:

file <filename>

(The output would contain with CRLF line terminators.)

Change it to LF and the scripts should execute fine. See http://en.wikipedia.org/wiki/Newline for more.



Answered By - devnull
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing