Bitcoin Forum
May 12, 2024, 12:30:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: seek for help  (Read 689 times)
gushuji (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
July 02, 2016, 04:11:54 AM
 #1

hi friends
     I have got a problem when I was doing compiling bitcoin source code, and find "configure.ac:1084: error: possibly undefined macro: PKG_CONFIG_LIBDIR", which I can not know what is the reason.
     Could anyone help me on this? I am using Ubuntu 14.04 LTS now.
     Thanks for the good guy.


root@gujianliang:/home/gu/bitcoin1/bitcoin# ./autogensh
bash: ./autogensh: No such file or directory
root@gujianliang:/home/gu/bitcoin1/bitcoin# ./autogen.sh
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
libtoolize: copying file 'build-aux/m4/libtool.m4'
libtoolize: copying file 'build-aux/m4/ltoptions.m4'
libtoolize: copying file 'build-aux/m4/ltsugar.m4'
libtoolize: copying file 'build-aux/m4/ltversion.m4'
libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
configure.ac:45: installing 'build-aux/compile'
configure.ac:28: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
libtoolize: copying file 'build-aux/m4/libtool.m4'
libtoolize: copying file 'build-aux/m4/ltoptions.m4'
libtoolize: copying file 'build-aux/m4/ltsugar.m4'
libtoolize: copying file 'build-aux/m4/ltversion.m4'
libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
configure.ac:10: installing 'build-aux/compile'
configure.ac:9: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
libtoolize: copying file 'build-aux/m4/libtool.m4'
libtoolize: copying file 'build-aux/m4/ltoptions.m4'
libtoolize: copying file 'build-aux/m4/ltsugar.m4'
libtoolize: copying file 'build-aux/m4/ltversion.m4'
libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
configure.ac:1084: error: possibly undefined macro: PKG_CONFIG_LIBDIR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/local/bin/autoconf failed with exit status: 1






1715473858
Hero Member
*
Offline Offline

Posts: 1715473858

View Profile Personal Message (Offline)

Ignore
1715473858
Reply with quote  #2

1715473858
Report to moderator
1715473858
Hero Member
*
Offline Offline

Posts: 1715473858

View Profile Personal Message (Offline)

Ignore
1715473858
Reply with quote  #2

1715473858
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715473858
Hero Member
*
Offline Offline

Posts: 1715473858

View Profile Personal Message (Offline)

Ignore
1715473858
Reply with quote  #2

1715473858
Report to moderator
cr1776
Legendary
*
Offline Offline

Activity: 4032
Merit: 1301


View Profile
July 02, 2016, 10:22:26 AM
 #2

Do you have pkgconfig installed? Which version of Bitcoin core?
gushuji (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
July 03, 2016, 03:20:27 AM
 #3

Hi
   
I have installed pkg-config, and also I have used the command to set "export $PKG_CONFIG_LIBDIR=/usr/lib/x86_64-linux-gnu/pkgconfig",  still happens this problem.
root@gujianliang:/home/gu/bitcoin1/bitcoin# export $PKG_CONFIG_LIBDIR
bash: export: `/usr/lib/x86_64-linux-gnu/pkgconfig': not a valid identifier


And I use "git clone https://github.com/bitcoin/bitcoin.git" to download the bitcoin source code.  Do you mean the bitcoin version will impact the compiling?

thanks.
icanscript
Hero Member
*****
Offline Offline

Activity: 686
Merit: 502



View Profile
July 04, 2016, 12:13:13 AM
 #4

try

Quote
sudo apt-get install autotools autotools-dev automake

maybe even try afterwards

Quote
sudo apt-get install autoconf
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!