Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

compile error on libzip:adjust PKG_CONFIG_PATH

Posted on 2012-03-21
2
Medium Priority
?
1,563 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 35

Accepted Solution

by:
Duncan Roe earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month9 days, 3 hours left to enroll

877 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