日期:2014-05-16  浏览次数:20593 次

Ubuntu 上安装nrpe 报错
Ubuntu上 装nrpe时 报错 configure: error: Cannot find ssl libraries, 怎么解决

1. ./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib 试了不行
而且我找不到ssl-lib,感觉是库的问题

2. 试了apt-get install libssl-dev重装 出现依赖性的问题
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  ifupdown: Depends: upstart-job
            Depends: initscripts (>= 2.88dsf-13.3) but 2.86.ds1-61ubuntu11 is to be installed
  initramfs-tools: Depends: util-linux (> 2.15~rc1) but 2.14.2-1ubuntu4 is to be installed
  libssl-dev: Depends: libssl1.0.0 (= 1.0.1-4ubuntu5.3) but it is not going to be installed
              Recommends: libssl-doc but it is not going to be installed
  mountall: Breaks: initscripts (< 2.88dsf-13.3) but 2.86.ds1-61ubuntu11 is to be installed
  plymouth: Depends: upstart-job
            Recommends: plymouth-theme-ubuntu-text but it is not going to be installed or
                        plymouth-theme
  udev: Depends: upstart-job
        Depends: util-linux (> 2.15~rc2) but 2.14.2-1ubuntu4 is to be installed
        Depends: upstart (>= 1.4-0ubuntu6) but 0.3.9-8 is to be installed
难道要一个一个解决依赖性的问题吗,有没有别的办法。

------解决方案--------------------
恭喜你遇到依赖问题,从显示看出只是有些库比较老,没啥大问题强制安装吧
apt-get -f install libssl-dev
或者aptitude install,ubuntu会提供给你个可选方案,直接回车

------解决方案--------------------
sudo apt-get install libssl-dev