Solved

compile error on libzip:adjust PKG_CONFIG_PATH

Posted on 2012-03-21
2
1,479 Views
Last Modified: 2012-06-22
Hi,

I tried to compile the mysql workbench. I get to this stage:
checking for ZIP... configure: error: Package requirements (libzip) were not met:

No package 'libzip' 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 ZIP_CFLAGS
and ZIP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Open in new window


So I run the yum install:
[root@seokingdomheaven mysql-workbench-gpl-5.2.38-src]# yum install libzip
Loaded plugins: fastestmirror
Repository remi is listed more than once in the configuration
Repository remi-test is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * epel: www.muug.mb.ca
 * rpmfusion-free-updates-testing: mirror.web-ster.com
 * rpmforge: apt.sw.be
 * rpmfusion-free-updates: mirror.web-ster.com
 * updates: mirror.its.sfu.ca
 * base: mirror.its.sfu.ca
 * extras: mirror.its.sfu.ca
Excluding Packages from CentOS-5 - Updates
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Setting up Install Process
Parsing package install arguments
Package libzip-0.9-1.el5.rf.x86_64 already installed and latest version
Nothing to do

Open in new window



But I still get the error. How do I adjust the PKG_CONFIG_PATH and where do find out where the libzip is?
Running find / -name libzip returns nothing.

Thanks,
Victor
0
Comment
Question by:Victor Kimura
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 37752526
Hi!

Try:
# locate libzip

Maybe you need the developement package of libzip?
libzip-devel

Regards, Tobias
0
 
LVL 35

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 37754849
The file you are missing is called libzip.pc. Its correct location is /usr/lib/pkgconfig/libzip.pc.
Google does find a libzip-devel as Tobias suggested - that looks like what you need. It will also supply /usr/include/zip.h I expect.
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question