AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 29125
Accepted
coffee-grinder
coffee-grinder
Asked: 2011-03-06 07:33:01 +0800 CST2011-03-06 07:33:01 +0800 CST 2011-03-06 07:33:01 +0800 CST

为 Nagios 安装 GD 图形库的最佳方法是什么?

  • 772

在尝试安装 Nagios 3.2.3 时,我运行了他们的 ./configure 脚本并得到了这些错误:

checking for main in -liconv... no
checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... no
checking for gdImagePng in -lgd (order 3)... no
checking for gdImagePng in -lgd (order 4)... no


*** GD, PNG, and/or JPEG libraries could not be located... *********

Boutell's GD library is required to compile the statusmap, trends
and histogram CGIs.  Get it from http://www.boutell.com/gd/, compile
it, and use the --with-gd-lib and --with-gd-inc arguments to specify
the locations of the GD library and include files.

NOTE: In addition to the gd-devel library, you'll also need to make
      sure you have the png-devel and jpeg-devel libraries installed
      on your system.

NOTE: After you install the necessary libraries on your system:
      1. Make sure /etc/ld.so.conf has an entry for the directory in
         which the GD, PNG, and JPEG libraries are installed.
      2. Run 'ldconfig' to update the run-time linker options.
      3. Run 'make clean' in the Nagios distribution to clean out
         any old references to your previous compile.
      4. Rerun the configure script.

NOTE: If you can't get the configure script to recognize the GD libs
      on your system, get over it and move on to other things.  The
      CGIs that use the GD libs are just a small part of the entire
      Nagios package.  Get everything else working first and then
      revisit the problem.  Make sure to check the nagios-users
      mailing list archives for possible solutions to GD library
      problems when you resume your troubleshooting.

********************************************************************

我要哪个包?libgd2-xpm-dev?libgd2-noxpm-dev?php5-gd?我不想自己做任何图像处理——我只是想让 Nagios 工作。

graphics
  • 2 2 个回答
  • 29160 Views

2 个回答

  • Voted
  1. Best Answer
    Chad Stovern
    2011-03-06T07:57:18+08:002011-03-06T07:57:18+08:00

    如果您查看nagios 网站上的快速入门指南,您会注意到 Ubuntu 7.10 及更高版本的指南要求您libgd2-xpm-dev使用以下命令进行安装:

    sudo apt-get install libgd2-xpm-dev
    

    那应该为你做!当然,您始终可以按照 Ubuntu Server 指南安装 nagios 软件包,而不是自己构建它。

    • 6
  2. Aret
    2013-09-04T12:43:52+08:002013-09-04T12:43:52+08:00

    我使用了这样的命令:

    sudo apt-get install php5-gd
    sudo service apache2 restart
    
    • 1

相关问题

  • 在 VirtualBox 中将 Ubuntu 作为访客机器运行时如何启用视觉效果?[关闭]

  • System76 在他们的笔记本电脑中使用 ATI 卡——好还是坏?

  • Ubuntu 在使用 Intel 显卡 855MG 的 HP Compaq nx9020 上安装后冻结

  • 从休眠状态启动后,Netbook Remix 进入低图形模式 [关闭]

  • 如何让更多人参与为 Ubuntu 改进 X.org?[关闭]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    我需要什么命令来解压缩/提取 .tar.gz 文件?

    • 8 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Marko Smith

    如何使用命令行将用户添加为新的 sudoer?

    • 7 个回答
  • Marko Smith

    更改文件夹权限和所有权

    • 9 个回答
  • Martin Hope
    EmmyS 我需要什么命令来解压缩/提取 .tar.gz 文件? 2011-02-09 14:50:41 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve