On Wed, Oct 31, 2012 at 10:11:13PM +0800, Austin Zhang wrote: > Hi,  > > I am trying to compile powertop on my box: ubuntu 12.04, X86-64. > > (1)compiling issue > > Here, my system didn’t install libnl-1, but I installed libnl2 (under /usr/lib) > and libnl-3 (under /lib). > > Then when ‘./configure’, I got: > > checking for LIBNL... no > > configure: error: Package requirements (libnl-1) were not met: > >  No package 'libnl-1' found > > so seemed the below logic in configure.ac doesn’t work > > …… > > has_libnl_ver=0 > > PKG_CHECK_MODULES([LIBNL], [libnl-3.0 libnl-genl-3.0], [ > >         has_libnl_ver=3], [ > >         AC_SEARCH_LIBS([nl_socket_alloc], [nl-3 nl-genl-3], [ > >                 has_libnl_ver=3], [ > >                 AC_SEARCH_LIBS([nl_socket_alloc], [nl], [ > >                         has_libnl_ver=2], [ > >                         PKG_CHECK_MODULES([LIBNL], [libnl-1], [has_libnl_ver= > 1], [])])])]) > > …… Based on the file lists you sent in a followup post, it appears that Ubuntu uses a different naming convention for these libraries, so AC_SEARCH_LIBS will not find the function it needs in either libnl-3 or libnl-genl-3, since they don't exist. Is there a -devel package you can install that provides a pkgconfig file for libnl-3? -Patrick