免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2375 | 回复: 1

请教:aramok安装问题,PKG_CONFIG_PATH相关 [复制链接]

论坛徽章:
1
摩羯座
日期:2015-01-08 14:01:55
发表于 2008-07-31 15:16 |显示全部楼层
此乃我在aramok源码包下使用./configure --prefix=/usr/local/aramok执行后的警告,aramok源码包已解压缩在/usr/local/aramok-1.4.9.1处。
<br>taglib-1.5已经以源码方式安装在/usr/local下,没指定安装路径的默认安装方式。
<br>
  1. checking for taglib >= 1.5... checking for taglib >= 1.4... Package taglib was not found in the pkg-config search path. Perhaps you should add the directory containing `taglib.pc' to the PKG_CONFIG_PATH environment variable No package 'taglib' found
  2. configure: error: Library requirements (taglib >= 1.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
复制代码
<br>以下是aramok的./configure --help内容:<br>
  1. `configure' configures this package to adapt to many kinds of systems.

  2. Usage: ./configure [OPTION]... [VAR=VALUE]...

  3. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  4. VAR=VALUE.  See below for descriptions of some of the useful variables.

  5. Defaults for the options are specified in brackets.

  6. Configuration:
  7.   -h, --help              display this help and exit
  8.       --help=short        display options specific to this package
  9.       --help=recursive    display the short help of all the included packages
  10.   -V, --version           display version information and exit
  11.   -q, --quiet, --silent   do not print `checking...' messages
  12.       --cache-file=FILE   cache test results in FILE [disabled]
  13.   -C, --config-cache      alias for `--cache-file=config.cache'
  14.   -n, --no-create         do not create output files
  15.       --srcdir=DIR        find the sources in DIR [configure dir or `..']

  16. Installation directories:
  17.   --prefix=PREFIX         install architecture-independent files in PREFIX
  18.                           [/usr]
  19.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  20.                           [PREFIX]

  21. By default, `make install' will install all the files in
  22. `/usr/bin', `/usr/lib' etc.  You can specify
  23. an installation prefix other than `/usr' using `--prefix',
  24. for instance `--prefix=$HOME'.

  25. For better control, use the options below.

  26. Fine tuning of the installation directories:
  27.   --bindir=DIR           user executables [EPREFIX/bin]
  28.   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  29. --libexecdir=DIR       program executables [EPREFIX/libexec]
  30.   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  31.   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  32.   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  33.   --libdir=DIR           object code libraries [EPREFIX/lib]
  34.   --includedir=DIR       C header files [PREFIX/include]
  35.   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  36.   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  37.   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  38.   --infodir=DIR          info documentation [DATAROOTDIR/info]
  39.   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  40.   --mandir=DIR           man documentation [DATAROOTDIR/man]
  41.   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  42.   --htmldir=DIR          html documentation [DOCDIR]
  43.   --dvidir=DIR           dvi documentation [DOCDIR]
  44.   --pdfdir=DIR           pdf documentation [DOCDIR]
  45.   --psdir=DIR            ps documentation [DOCDIR]

  46. Program names:
  47.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  48.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  49.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

  50. System types:
  51.   --build=BUILD     configure for building on BUILD [guessed]
  52.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  53.   --target=TARGET   configure for building compilers for TARGET [HOST]

  54. Optional Features:
  55.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  56.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  57.   --disable-fast-perl     disable fast Makefile generation (needs perl)
  58.   --enable-debug=ARG      enables debug symbols (yes|no|full) default=no
  59.   --disable-debug         disables debug output and debug symbols default=no
  60. --enable-strict         compiles with strict compiler options (may not
  61.                           work!)
  62.   --disable-warnings      disables compilation with -Wall and similar
  63.   --enable-profile        creates profiling infos default=no
  64.   --disable-dependency-tracking  speeds up one-time build
  65.   --enable-dependency-tracking   do not reject slow dependency extractors
  66.   --enable-pch            enables precompiled header support (currently only
  67.                           KCC or gcc >=3.4+unsermake) default=no
  68.   --enable-coverage       use gcc coverage testing
  69.   --enable-new-ldflags    enable the new linker flags
  70.   --enable-final          build size optimized apps (experimental - needs lots
  71.                           of memory)
  72.   --enable-closure        delay template instantiation
  73.   --enable-nmcheck        enable automatic namespace cleanness check
  74.   --enable-shared[=PKGS]  build shared libraries [default=yes]
  75.   --enable-static[=PKGS]  build static libraries [default=no]
  76.   --enable-libsuffix      /lib directory suffix (64,32,none,auto=default)
  77.   --enable-fast-install[=PKGS]
  78.                           optimize for fast installation [default=yes]
  79.   --disable-libtool-lock  avoid locking (might break parallel builds)
  80.   --enable-pie            platform supports PIE linking default=detect
  81.   --enable-embedded       link to Qt-embedded, don't use X
  82.   --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
  83.   --enable-mac            link to Qt/Mac (don't use X)
  84.   --disable-mt            link to non-threaded Qt (deprecated)
  85.   --disable-threading     disables threading even if libpthread found
  86.   --disable-rpath         do not use the rpath feature of ld
  87.   --disable-path-check    don't try to find out, where to install
  88.   --enable-mysql          build Amarok with MySQL support
  89.   --enable-postgresql     build Amarok with PostgreSQL support
  90.   --disable-amazon        disable Amazon cover download support
  91.                           default=enable

  92. Optional Packages:
  93.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  94.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  95.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  96.   --with-pic              try to use only PIC/non-PIC objects [default=use
  97.                           both]
  98.   --with-tags[=TAGS]      include additional configurations [automatic]
  99.   --with-extra-includes=DIR
  100.                           adds non standard include paths
  101.   --with-extra-libs=DIR   adds non standard library paths
  102.   --with-qt-dir=DIR       where the root of Qt is installed
  103.   --with-qt-includes=DIR  where the Qt includes are.
  104.   --with-qt-libraries=DIR where the Qt library is installed.
  105.   --without-arts          build without aRts default=no
  106.   --without-xine          build Amarok without xine-engine
  107.   --with-nmm              build Amarok with NMM-engine
  108.   --with-nmm-dir          path to the NMM default=/usr/local
  109.   --with-helix            build Amarok with Helix-engine
  110.   --with-yauap            build Amarok with yauap-engine
  111.   --without-opengl        build Amarok without OpenGL support
  112.   --without-included-sqlite
  113.                           build Amarok using system sqlite library
  114.   --without-libvisual     build Amarok without libvisual support
  115.   --without-musicbrainz   build Amarok without MusicBrainz support
  116.   --with-libnjb           build Amarok with Nomad Jukebox support from libnjb
  117.   --with-libmtp           build Amarok with support for MTP devices
  118.   --with-libkarma         build Amarok with Rio Karma support
  119.   --with-ifp              build Amarok with ifp support
  120.   --with-libgpod          build Amarok with iPod support from libgpod
  121.   --with-mp4v2            build Amarok with M4A/AAC tag support from
  122.                           mp4v2/faad2
  123.   --with-mp4v2-dir        path to mp4v2 default=/usr
  124.   --without-daap          build Amarok without support for DAAP

  125. Some influential environment variables:
  126.   CC          C compiler command
  127.   CFLAGS      C compiler flags
  128.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  129.               nonstandard directory <lib dir>
  130.   LIBS        libraries to pass to the linker, e.g. -l<library>
  131.   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  132.               you have headers in a nonstandard directory <include dir>
  133.   CPP         C preprocessor
  134.   CXX         C++ compiler command
  135.   CXXFLAGS    C++ compiler flags
  136.   CXXCPP      C++ preprocessor
  137.   F77         Fortran 77 compiler command
  138.   FFLAGS      Fortran 77 compiler flags
  139.   XMKMF       Path to xmkmf, Makefile generator for X Window System
  140.   PKGCONFIGFOUND
  141.               Path to pkg-config

  142. Use these variables to override the choices made by `configure' or to help
  143. it to find libraries and programs with nonstandard names/locations.
复制代码
<br>个人觉得这一句是关键:--with-tags[=TAGS]      include additional configurations [automatic]
<br>由于之前提示要添加taglib.pc,故寻找到taglib.pc的路径后我使用如下指令配置:
<br>./configure --prefix=/usr/local/aramok --with-tags=/usr/local/lib/pkgconfig/taglib.pc
<br>注意:电脑中含有taglib.pc项的所有文件及路径如下
<br>
  1. /usr/local/lib/pkgconfig/taglib.pc
  2. /usr/local/taglib-1.5/taglib.pc
  3. /usr/local/taglib-1.5/taglib.pc.cmake
  4. /usr/local/taglib-1.5/taglib.pc.in
复制代码
<br>
<br>输出结果如下:error: invalid tag name: /usr/local/lib/pkgconfig/taglib.pc,并且用其余3个路径代替,得到的结果还是无效。

<br>小弟在此请教改如何设置./configure,有劳各位不吝赐教,谢谢!

论坛徽章:
1
摩羯座
日期:2015-01-08 14:01:55
发表于 2008-07-31 16:47 |显示全部楼层
自问自答时间到了

解决方式是用export设定PKG_CONFIG_PATH的新路径:
  1. export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
复制代码

由于本人的路径为/usr/local/lib/pkgconfig/taglib.pc,故添加/usr/local/lib/pkgconfig,具体情况请按照具体的配置来设定。

更详细资料请参照:
http://hi.baidu.com/dexinmeng/bl ... 8941d5277fb571.html

题外话,linux果然比较深奥,涉及面比较广,特别是路径,要好好研究。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP