LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2011|回复: 21

avant-window-navigator-0.2编译时错误,不知如何解决

[复制链接]
发表于 2007-10-12 01:24:07 | 显示全部楼层 |阅读模式
avant-window-navigator-0.2在10.2的源里面有,而10.3的还没,所以下了个avant-window-navigator-0.2.tar,准备编译安装,结果在执行 ./configure 后出现下面的问题。
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for a Python interpreter with version >= 2.3.5... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib64/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.5/site-packages
checking for headers required to compile python extensions... found
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PYGTK... configure: error: Package requirements (pygtk-2.0 >= 2.8.0) were not met:

No package 'pygtk-2.0' 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 PYGTK_CFLAGS
and PYGTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
在/usr/lib64/下面找到了pkgconfig的目录,但是为空的
而pygtk2.0的目录为/usr/lib64/pygtk/2.0
请高手帮我看看,现谢谢了
发表于 2007-10-12 03:46:20 | 显示全部楼层
原来是 x86_64-Multilib 编译的问题。
你那样编译肯定不行的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-12 08:56:02 | 显示全部楼层
我该怎么做呢??
回复 支持 反对

使用道具 举报

发表于 2007-10-12 14:27:58 | 显示全部楼层
这个你做起来可能会有一些麻烦。
因为你不知道 x86_64 多库如何编译,而且因为是发行版,编译本就较困难。
然后,你还应该确定你要编译的是 32bit 还是 64bit ?
另外,你可能还有一些依赖的包没有装上。或者是这些包装上了,但没有 devel 什么的(不知道敲错没有) ,也就是编译需要的 include 。

还有,就算方法正确,也不能保证一定能够编译通过。我这里因为软件版本太新,不能通过编译的有很多。
要在 x86_64 中编译软件,需要有 CLFS 加 CBLFS 的 x86_64-Multilib 功底。

你还是找 rpm 包好了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-12 15:10:19 | 显示全部楼层
这么说,我是没有希望了,你能不能做一个rpm包呢?
回复 支持 反对

使用道具 举报

发表于 2007-10-12 22:37:29 | 显示全部楼层
rpm包,我不会做。x86_64的编译,我知道那么一点点。

先还是应该看下解包目录的 README 或 INSTALL 文件。
如果你编译 64 位的,用 64bit 的方法。同时需要的 64位的库也都要先安装。如果你没有从哪些资料上得知软件包的依赖关系,你可以在 ./configure 的时候从屏幕上看到。
其实你在 ./configure 的时候,它已经提示过了,你需要指定 PKG_CONFIG_PATH 。如果你要编译的是 64位,通常应该指定 /xxx/lib64/pkgconfig 。

64bit
---------------------------------------------------------
  1. [color=green]export PKG_CONFIG_PATH64=/usr/lib64/pkgconfig:/xxx/lib64/pkgconfig:/yyy/lib64/pkgconfig:/zzz/lib64/pkgconfig[/color]
复制代码
上面的 xxx yyy zzz 要替换掉的。如果你的系统中只有 /usr/lib64/pkgconfig 和 /usr/X11R6/pkgconfig ,那就只需要写这两个。如果只有一个就写一个。我的系统和你的不一样,不好完全照抄的。
  1. echo $PKG_CONFIG_PATH64
  2. export BUILD64="-m64"
  3. echo $BUILD64
复制代码
  1. CC="gcc ${BUILD64}"  PKG_CONFIG_PATH=$PKG_CONFIG_PATH64 \
  2.     ./configure --prefix=/usr
复制代码
---------------------------------------------------------

如上法,--prefix=/usr 是指定安装目录为 /usr ,如果在./configure 的这命令之后提示有什么包没安装,你就先找 rpm 包装上。注意 devel 的包要一并装上。如果没有,才尝试编译。

按上面的,如果能通过  configure 检测,之后可以 make 命令,如果无误,就可以make install 安装了。若有任何错误,先检查,然后再考虑 make distclean 或删除源码树重新解包编译。你还可以 用此方法在源码解包的目录中查看编译时可选的参数。
  1. ./configure --help | more
复制代码
如果确定 64 位的无法通过,可以考虑 32 位,但是,需要安装32位库,会更麻烦。x86_64就是为了同时支持 32位 和 64 位的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-12 23:17:50 | 显示全部楼层
下面是install的内容
Installation Instructions
*************************

Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
2006 Free Software Foundation, Inc.

This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.

Basic Installation
==================

Briefly, the shell commands `./configure; make; make install' should
configure, build, and install this package.  The following
more-detailed instructions are generic; see the `README' file for
instructions specific to this package.

   The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation.  It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions.  Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').

   It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring.  Caching is
disabled by default to prevent problems with accidental use of stale
cache files.

   If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release.  If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.

   The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'.  You need `configure.ac' if
you want to change it or regenerate `configure' using a newer version
of `autoconf'.

The simplest way to compile this package is:

  1. `cd' to the directory containing the package's source code and type
     `./configure' to configure the package for your system.

     Running `configure' might take a while.  While running, it prints
     some messages telling which features it is checking for.

  2. Type `make' to compile the package.

  3. Optionally, type `make check' to run any self-tests that come with
     the package.

  4. Type `make install' to install the programs and any data files and
     documentation.

  5. You can remove the program binaries and object files from the
     source code directory by typing `make clean'.  To also remove the
     files that `configure' created (so you can compile the package for
     a different kind of computer), type `make distclean'.  There is
     also a `make maintainer-clean' target, but that is intended mainly
     for the package's developers.  If you use it, you may have to get
     all sorts of other programs in order to regenerate files that came
     with the distribution.

Compilers and Options
=====================

Some systems require unusual options for compilation or linking that the
`configure' script does not know about.  Run `./configure --help' for
details on some of the pertinent environment variables.

   You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment.  Here
is an example:

     ./configure CC=c99 CFLAGS=-g LIBS=-lposix

   *Note Defining Variables::, for more details.

Compiling For Multiple Architectures
====================================

You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory.  To do this, you can use GNU `make'.  `cd' to the
directory where you want the object files and executables to go and run
the `configure' script.  `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.

   With a non-GNU `make', it is safer to compile the package for one
architecture at a time in the source code directory.  After you have
installed the package for one architecture, use `make distclean' before
reconfiguring for another architecture.

Installation Names
==================

By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc.  You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX'.

   You can specify separate installation prefixes for
architecture-specific files and architecture-independent files.  If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.

   In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files.  Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.

   If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.

Optional Features
=================

Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System).  The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.

   For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.

Specifying the System Type
==========================

There may be some features `configure' cannot figure out automatically,
but needs to determine by the type of machine the package will run on.
Usually, assuming the package is built to be run on the _same_
architectures, `configure' can figure that out, but if it prints a
message saying it cannot guess the machine type, give it the
`--build=TYPE' option.  TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:

     CPU-COMPANY-SYSTEM

where SYSTEM can have one of these forms:

     OS KERNEL-OS

   See the file `config.sub' for the possible values of each field.  If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.

   If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.

   If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.

Sharing Defaults
================

If you want to set default values for `configure' scripts to share, you
can create a site shell script called `config.site' that gives default
values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists.  Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.

Defining Variables
==================

Variables not defined in a site shell script can be set in the
environment passed to `configure'.  However, some packages may run
configure again during the build, and the customized values of these
variables may be lost.  In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'.  For example:

     ./configure CC=/usr/local2/bin/gcc

causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script).

Unfortunately, this technique does not work for `CONFIG_SHELL' due to
an Autoconf bug.  Until the bug is fixed you can use this workaround:

     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash

`configure' Invocation
======================

`configure' recognizes the following options to control how it operates.

`--help'
`-h'
     Print a summary of the options to `configure', and exit.

`--version'
`-V'
     Print the version of Autoconf used to generate the `configure'
     script, and exit.

`--cache-file=FILE'
     Enable the cache: use and save the results of the tests in FILE,
     traditionally `config.cache'.  FILE defaults to `/dev/null' to
     disable caching.

`--config-cache'
`-C'
     Alias for `--cache-file=config.cache'.

`--quiet'
`--silent'
`-q'
     Do not print messages saying which checks are being made.  To
     suppress all normal output, redirect it to `/dev/null' (any error
     messages will still be shown).

`--srcdir=DIR'
     Look for the package's source code in directory DIR.  Usually
     `configure' can determine that directory automatically.

`configure' also accepts some other, not widely useful, options.  Run
`configure --help' for more details.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-12 23:18:41 | 显示全部楼层
这个是readme的
Avant Window Navigator (Awn) - http://launchpad.net/awn
=======================================================

A dock-like bar which sits at the bottom of you screen, allowing you to launch
and control applications. Also has the ability to embed external applets. Look
and feel are fully customisable, and theming support is also available.

Installation
============

libwnck-1.0
gnome-desktop-2.0
libgnome-2.0
gnome-vfs-2.0
gconf-2.0
x11
xproto
dbus-glib-1
libglade-2.0
xdamage
xcomposite
xrender

You will also need the following python packages (these are debian-specific naming, but should also be easy to find on other systems):
python2.5-dev
python-gnome2-dev
python-gnome2-desktop-dev
python-gnome2-extras-dev

Usage
=====

You can launch Awn from Applications->Accessories->Avant Window Navigator. You
can edit preferences by either launching Awn Manager from System->references->Awn Manager, or right-clicking on the far left or right of the main bar, and selecting 'Preferences'.

If Awn Manager does not start, please run `awn-manager` from the terminal to
see if any dependancies are missing.

Help
====

If you have any questions/bug reports/ideas, you can find help in the following
locations:

http://launchpad.net/awn - Main project page
http://awn.wetpaint.com - Wiki
http://www.planetblur.org/hosted/awnforum - Forum
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-12 23:46:31 | 显示全部楼层
export PKG_CONFIG_PATH64=/usr/lib64/pkgconfig
echo $PKG_CONFIG_PATH64

export BUILD64="-m64"
echo $BUILD64

CC="gcc ${BUILD64}" PKG_CONFIG_PATH=$PKG_CONFIG_PATH64 \
./configure --prefix=/usr
最后提示
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PYGTK... configure: error: Package requirements (pygtk-2.0 >= 2.8.0) were not met:

No package 'pygtk-2.0' 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 PYGTK_CFLAGS
and PYGTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
我也没有找到pygtk-2.0的包
回复 支持 反对

使用道具 举报

发表于 2007-10-13 00:34:31 | 显示全部楼层
先确定你安装了以上必须依赖的包,然后尝试编译。可能也不能完全按我先前说的方法编译的。按最上面第一帖的提示, PKG_CONFIG_PATH 的路径是要给出的。
有些软件包编译 32bit 或 64bit 有自己的方法,如果有 ./configure 后能看到什么链接提示,有什么 FAQ 可能问题很快就解决了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表