Solved

compile error on libzip:adjust PKG_CONFIG_PATH

Posted on 2012-03-21
2
1,371 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
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 34

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now