configure: error: source directory already configured; run "make distclean" there first #632

issue vusirikala opened this issue on June 3, 2019
  1. vusirikala commented at 1:31 AM on June 3, 2019: none

    I was trying to install this library on my mac. I first entered ./autogen.sh and it outputs

    lindys-MacBook-Pro:secp256k1-master satya$ ./autogen.sh 
    glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
    glibtoolize: copying file 'build-aux/ltmain.sh'
    glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
    glibtoolize: copying file 'build-aux/m4/libtool.m4'
    glibtoolize: copying file 'build-aux/m4/ltoptions.m4'
    glibtoolize: copying file 'build-aux/m4/ltsugar.m4'
    glibtoolize: copying file 'build-aux/m4/ltversion.m4'
    glibtoolize: 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'
    

    I then ran make and it shows the following error.

    lindys-MacBook-Pro:secp256k1-master satya$ configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /Applications/SageMath/config/install-sh -c -d
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    configure: error: source directory already configured; run "make distclean" there first
    

    When entered make distclean it shows

    lindys-MacBook-Pro:secp256k1-master satya$ sudo make distclean
    Password:
    make: *** No rule to make target `distclean'.  Stop.
    lindys-MacBook-Pro:secp256k1-master satya$ sudo make clean
    make: *** No rule to make target `clean'.  Stop.
    

    Any idea how to solve this issue?

  2. real-or-random commented at 6:45 AM on June 3, 2019: contributor

    I think the issue is that the command is ./configure and not configure.

  3. vusirikala commented at 7:17 AM on June 3, 2019: none

    The issue was the build-aux directory. I removed this directory and then used commands ./autogen.sh and ./configure. It worked. After that, when I used make, it shows Makefile:4: *** missing separator. Stop.

  4. vusirikala closed this on Jun 3, 2019


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me