Ralat: adapter_gzip.cc:49:18: error: zlib.h: No such file or directory

linuxpenguin Ralat: adapter gzip.cc:49:18: error: zlib.h: No such file or directory  ralat os  zlib squid ralat linux libecap ecap Applikasi: Sebarang linux distro bagi kompilasi applikasi atau sebarang module / library. (Centos, Red Hat, Fedora, Ubuntu, Debian etc)

Ralat: adapter_gzip.cc:49:18: error: zlib.h: No such file or directory : yang menyebabkan kegagalan bagi arahan ” make ” dan ” make install ” bagi module atau pakej yang memerlukan zlib.h seperti “ squid-3.1.11.tar.gz ”

Situasi Masalah:

Terjadi semasa kompilasi bagi pakej  ” squid-3.1.11.tar.gz ” bagi kegunaan Ecap untuk squid dari laman : http://code.google.com/p/squid-ecap-gzip .. yang menyebabkan kegagalan bagi arahan ” make ” dan ” make install ” yang menyebabkan arahan berkaitan dengannya turut memaparkan ralat seperti berikut:

  • adapter_gzip.cc:119: error: âz_streamâ does not name a type
  • adapter_gzip.cc: In member function âvoid Adapter::Xaction::gzipInitialize()â:
  • adapter_gzip.cc:185: error: âcrc32â was not declared in this scope
  • adapter_gzip.cc:188: error: âstruct Adapter::Xaction::GzipContextâ has no member named âzstreamâ
  • adapter_gzip.cc:188: error: âZ_DEFLATEDâ was not declared in this scope
  • adapter_gzip.cc:188: error: âMAX_WBITSâ was not declared in this scope
  • adapter_gzip.cc:188: error: âZ_DEFAULT_STRATEGYâ was not declared in this scope
  • adapter_gzip.cc:188: error: âdeflateInit2â was not declared in this scope
  • adapter_gzip.cc:192: error: âZ_OKâ was not declared in this scope
  • adapter_gzip.cc: In member function âvirtual void Adapter::Xaction::noteVbContentDone(bool)â:
  • adapter_gzip.cc:503: error: âstruct Adapter::Xaction::GzipContextâ has no member named âzstreamâ
  • adapter_gzip.cc:505: error: âstruct Adapter::Xaction::GzipContextâ has no member named âzstreamâ
  • adapter_gzip.cc:505: error: âZ_FINISHâ was not declared in this scope
  • adapter_gzip.cc:505: error: âdeflateâ was not declared in this scope
  • adapter_gzip.cc:507: error: âstruct Adapter::Xaction::GzipContextâ has no member named âzstreamâ
  • adapter_gzip.cc:507: error: âdeflateEndâ was not declared in this scope
  • adapter_gzip.cc:508: error: âstruct Adapter::Xaction::GzipContextâ has no member named âzstreamâ
  • adapter_gzip.cc: In member function âvirtual void Adapter::Xaction::noteVbContentAvailable()â:
  • adapter_gzip.cc:559: error: âBytefâ was not declared in this scope
  • adapter_gzip.cc:559: error: expected primary-expression before â)â token
  • adapter_gzip.cc:559: error: âcrc32â was not declared in this scope
  • adapter_gzip.cc:569: error: âZ_DEFLATEDâ was not declared in this scope
  • adapter_gzip.cc:581: error: âstruct Adapter::Xaction::GzipContextâ has no member named âzstreamâ
  • adapter_gzip.cc:581: error: expected primary-expression before â)â token
  • adapter_gzip.cc:581: error: expected â;â before âvbâ
  • adapter_gzip.cc:582: error: âstruct Adapter::Xaction::GzipContextâ has no member named âzstreamâ
  • adapter_gzip.cc:583: error: âstruct Adapter::Xaction::GzipContextâ has no member named âzstreamâ
  • adapter_gzip.cc:583: error: expected primary-expression before â)â token
  • adapter_gzip.cc:584: error: âstruct Adapter::Xaction::GzipContextâ has no member named âzstreamâ
  • adapter_gzip.cc:585: error: âstruct Adapter::Xaction::GzipContextâ has no member named âzstreamâ
  • adapter_gzip.cc:587: error: âstruct Adapter::Xaction::GzipContextâ has no member named âzstreamâ
  • adapter_gzip.cc:587: error: âZ_SYNC_FLUSHâ was not declared in this scope

zlib h missing 365x480 Ralat: adapter gzip.cc:49:18: error: zlib.h: No such file or directory  ralat os  zlib squid ralat linux libecap ecap

Cara Atasi:

Zlib.h adalah pakej yang biasa nya ditemui dari pakej -developer (-dev atau -devel) ..

  1. Install zlib-devel .. dari apt-get ataupun yum seperti: “ yum install zlib-devel “
  2. Seterusnya lakukan arahan bagi ” make ” dan ” make install ” semula. ;)

Perkara yang berkaitan ...
  1. Ralat: configure error the compiler (g++) failed to pass a simple C++ test
      Applikasi: Sebarang linux distro bagi kompilasi applikasi atau sebarang module /...
  2. Ralat: Error Copying File or Folder hard disk external
      Applikasi: Windows Explorer (Windows 2000/XP, Windows Vista/7) Ralat: Keluar mesej seperti...
  3. Ralat Squid Error 1067 the process terminated unexpectedly
      Applikasi: Windows Service Management Console & Squid Proxy Server Ralat: “Could...
  4. Ralat file * from install of VirtualBox_Old conflicts with file from package VirtualBox_new
      Applikasi: RPM / Yum (Fedora, Red Hat, CentOS) Ralat: Dari Shell...
  5. Ralat The name org.freedesktop.PackageKit was not provided by any .service files
      Applikasi: YUM (fedora, red hat, CentOS) Ralat: Keluar error message prompt...

Kategori: OSRalat

Tags:


... Carian ...