Solved

compile error on libzip:adjust PKG_CONFIG_PATH

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

743 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

15 Experts available now in Live!

Get 1:1 Help Now