【问题标题】:ubuntu 12.04 install fontforge No package 'zlib' foundubuntu 12.04 install fontforge 找不到包'zlib'
【发布时间】:2012-11-28 10:32:37
【问题描述】:

1,当我尝试 ./configure 它说:

checking for ZLIB... configure: error: Package requirements (zlib) were not met:

No package 'zlib' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ZLIB_CFLAGS
and ZLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

2,我尝试安装 zlib 使用它说的 aptitude

packages contain "zlib" in their name:
  libio-compress-zlib-perl libcompress-raw-zlib-perl libcompress-zlib-perl 
  gambas2-gb-compress-zlib libghc6-zlib-dev libghc6-zlib-doc libzlib-ruby 
  zlibc zlib-bin libghc6-zlib-prof zlib-gst gambas2-gb-compress-bzlib2 
  haskell-zlib-doc libio-zlib-perl zlib1g-dbg zlib1g-dev 
  libghc6-zlib-prof-0.5.2.0-b96bd zlib1g libzlib-ruby1.8 libjzlib-java 
  libghc6-zlib-dev-0.5.2.0-b96bd 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 69 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done

3,最后我安装了 zlib1g,但是 fontforge 配置也找不到 zlib dpkg -l zlib1g

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  zlib1g         1:1.2.3.3.dfsg compression library - runtime

是否需要配置环境变量 ZLIB_CFLAGS 和 ZLIB_LIBS 怎么做?

【问题讨论】:

    标签: ubuntu installation zlib fontforge


    【解决方案1】:

    你正在从源代码编译一些东西,所以你需要可用的头文件,这些头文件总是在 -dev 包中,即 zlib1g-dev。

    【讨论】:

      猜你喜欢
      • 2015-12-17
      • 1970-01-01
      • 2014-08-20
      • 2014-05-17
      • 1970-01-01
      • 1970-01-01
      • 2013-07-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多