Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-07-2012, 03:46 PM   #1
LQ Newbie
Registered: Aug 2009
Posts: 11

Rep: Reputation: 0
configure script not found error

(this is a repost of, just trying to grab a larger audience)

I'm trying to compile the mplayer2 encoder branch statically (because I am slightly modifying the libav libraries).

So I run
configure --enable-static
It always ends with this error:

Checking for Libav (libavutil > 51.21.0:libavcodec > 53.34.0:libavformat > 53.20.0:libswscale >= 2.0.0:libpostproc >= 52.0.0) ...
./configure: 6012: ./configure: pkg-config --static: not found
The relevant lines leading up to line 6012 are:

all_libav_libs="libavutil > 51.21.0:libavcodec > 53.34.0:libavformat > 53.20.0:libswscale >= 2.0.0:libpostproc >= 52.0.0"
echocheck "Libav ($all_libav_libs)"
if $_pkg_config --exists --print-errors $all_libav_libs ; then
  IFS=":"   # shell should not be used for programming
  if $_pkg_config --exists --print-errors $all_libav_libs ; then
  inc_ffmpeg=$($_pkg_config --cflags $all_libav_libs)
  _ld_tmp=$($_pkg_config --libs $all_libav_libs)
  extra_ldflags="$extra_ldflags $_ld_tmp"
  extra_cflags="$extra_cflags $inc_ffmpeg"
  unset IFS
  die "Unable to find development files for some of the required Libav libraries above. Aborting."
with 6012 being the first if statement.

I dumped out the $_pkg_config which is "pkg-config --static". There are no special characters within the string. But for some reason it is as if sh is treating "pkg-config --static" as the name of a binary.

I tried putting various parenthesis around the command, but with no avail:
if [ $($_pkg_config --exists --print-errors $all_libav_libs) ] ; then
What am I missing here?
Old 06-08-2012, 05:25 AM   #2
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,323

Rep: Reputation: 252Reputation: 252Reputation: 252
Is pkg-config installed on your system?
Old 06-08-2012, 11:28 AM   #3
LQ Newbie
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
I have checked.

I think this a problem with dash. I ran it through gdb and I can see it calling find_command('pkg-config --static', ... )


configure, pkg-config, scripting, shell

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
configure error qt not found DeZern Linux - Software 2 05-15-2010 05:41 PM
Conmpile error wen compile php:configure: error: libpng.(a|so) not found tanveer Linux - Software 5 02-03-2009 06:13 AM
configure script fails with: SDL_image lib not found! slackermax Fedora 1 10-16-2008 03:48 PM
./configure fails with: libz... configure: error: not found. erpe Linux - Software 17 10-11-2006 05:56 PM
qt-mt not found error during configure Boomba Linux - Software 4 02-15-2005 04:06 PM

All times are GMT -5. The time now is 11:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration