Skip to content

Package zlib was not found in the pkg-config search path. #4397

@justlooks

Description

@justlooks

problem when i compile the code

# make build
Wed Nov 28 16:17:09 CST 2018: Building source tree
# pkg-config --cflags  -- zlib zlib zlib
Package zlib was not found in the pkg-config search path.
Perhaps you should add the directory containing `zlib.pc'
to the PKG_CONFIG_PATH environment variable
No package 'zlib' found
Package zlib was not found in the pkg-config search path.
Perhaps you should add the directory containing `zlib.pc'
to the PKG_CONFIG_PATH environment variable
No package 'zlib' found
Package zlib was not found in the pkg-config search path.
Perhaps you should add the directory containing `zlib.pc'
to the PKG_CONFIG_PATH environment variable
No package 'zlib' found
pkg-config: exit status 1

make: *** [build] Error 2

solution

# yum install zlib-devel.x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions