简体   繁体   English

错误:需要失败的依赖项 /usr/bin/perl

[英]Error: failed dependencies /usr/bin/perl is needed

I am installing Mysql server on Fedora.我正在 Fedora 上安装 Mysql 服务器。

When running this command:运行此命令时:

[sugumar@localhost softwares]$ rpm -i MySQL-server-5.6.21-1.el6.i686.rpm 

it shows the following error它显示以下错误

error: Failed dependencies:
    /usr/bin/perl is needed by MySQL-server-5.6.21-1.el6.i686

So I have installed Perl:所以我已经安装了 Perl:

Downloaded Activeperl tarball:下载 Activeperl tarball:

  1. tar -xzvf Activeper.tar.gz
  2. cd Activeperl
  3. sh install.sh

     Enter top level directory for install [/opt/Activeperl]: yes

But still when I try to install Mysql, it shows the same error但是当我尝试安装 Mysql 时,它仍然显示相同的错误

error: Failed dependencies:
    /usr/bin/perl is needed by MySQL-server-5.6.21-1.el6.i686

What should I do?我该怎么办?

Run Following command运行以下命令

rpm -ivh --nodeps MySQL-server-5.6.21-1.el6.i686.rpm

Try install with no dependencies(nodeps), mostly you wont receive this dependency errors尝试在没有依赖项的情况下安装(nodeps),大多数情况下您不会收到此依赖项错误

rpm only knows that software is installed if it is noted in the rpm database. rpm 仅在 rpm 数据库中注明该软件时才知道该软件已安装。 That only happens if you use rpm (or yum or, probably, packagekit) to install the software.只有在您使用 rpm(或 yum 或可能是 packagekit)安装软件时才会发生这种情况。 Just installing ActivePerl like that isn't going to change anything.像这样安装 ActivePerl 不会改变任何东西。

As you seem to have the MySQL rpm downloaded already, you can use yum's "localinstall" feature to install a local rpm and all of its dependencies.由于您似乎已经下载了 MySQL rpm,您可以使用 yum 的“localinstall”功能来安装本地 rpm 及其所有依赖项。

$ yum localinstall MySQL-server-5.6.21-1.el6.i686.rpm

But, like others, I'm really surprised that your system doesn't already have Perl installed.但是,和其他人一样,我真的很惊讶您的系统还没有安装 Perl。 I'd be very wary of a system in that condition.在这种情况下,我会非常警惕系统。

Perhaps your perl is installed at /bin, not /usr/bin?也许你的 perl 安装在 /bin,而不是 /usr/bin? Try to make a symbolic link for it.尝试为它建立一个符号链接。 In fact, many applications/scripts have their default perl path, either /usr/bin/perl or /bin/perl.事实上,许多应用程序/脚本都有其默认的 perl 路径,即 /usr/bin/perl 或 /bin/perl。 So, in my machine, I always have both paths pointing to perl (one physical, one symbolic).因此,在我的机器中,我总是有两条路径指向 perl(一个物理路径,一个符号路径)。

check if you perl is in /bin or /usr/bin检查您的 perl 是否在 /bin 或 /usr/bin 中

ls -l /bin/perl
ls -l /usr/bin/perl

If that's the problem, try to make a symbolic link:如果这是问题所在,请尝试创建符号链接:

ln -s /bin/perl /usr/bin/perl

Install the Perl supplied with Fedora:安装 Fedora 提供的 Perl:

sudo yum install perl

This should give you /usr/bin/perl (and a lot more).这应该给你/usr/bin/perl (以及更多)。

But how could it go missing in the first place?但它怎么会一开始就消失了呢? Looks like someone's been messing with your system.看起来有人在搞乱你的系统。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为Bugzilla安装usr / bin / perl install-module.pl DBD :: mysql时出错 - Error when installing usr/bin/perl install-module.pl DBD::mysql for Bugzilla mac osx 10.9.2上的mysql-python:错误:命令'/ usr / bin / clang'失败,退出状态为1 - mysql-python on mac osx 10.9.2: error: command '/usr/bin/clang' failed with exit status 1 /var/cache/apt/archives/libdbi-perl_1.612-1_amd64.deb E:子进程/usr/bin/dpkg返回错误码(1) - /var/cache/apt/archives/libdbi-perl_1.612-1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) -bash:脚本/ mysql_install_db:/ usr / bin / perl:错误的解释器:没有这样的文件或目录 - -bash: scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory 安装mysql时子进程/usr/bin/dpkg返回错误码(1) - Sub-process /usr/bin/dpkg returned an error code (1) While Installing mysql 编译与DLZ绑定时CentOS错误“ / usr / bin / ld:找不到-lmysqlclient” - CentOS error while compiling Bind with DLZ “/usr/bin/ld: cannot find -lmysqlclient” / usr / bin / docker-current:解析引用..无效的引用格式时出错 - /usr/bin/docker-current: Error parsing reference .. invalid reference format ln: /usr/bin/mysql: 不允许操作 - ln: /usr/bin/mysql: Operation not permitted 在backgroud中启动/ usr / bin / mysqld_safe - start /usr/bin/mysqld_safe in backgroud perl:符号查找错误:/usr/local/lib/perl/5.10.1/auto/DBD/mysql/mysql.so:未定义符号:mysql_init - perl: symbol lookup error: /usr/local/lib/perl/5.10.1/auto/DBD/mysql/mysql.so: undefined symbol: mysql_init
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM