Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on OSX 10.13.4 requires autoconf dependency #344

Open
bdickason opened this issue May 9, 2018 · 9 comments
Open

Building on OSX 10.13.4 requires autoconf dependency #344

bdickason opened this issue May 9, 2018 · 9 comments

Comments

@bdickason
Copy link

bdickason commented May 9, 2018

After cloning source, I'm prompted to install the autoconf dependency but the 'Get Started' page doesn't link to where I can/should get this.

Can you reliably reproduce the issue? Yes

If so, please list the steps to reproduce below:

  1. Install a fresh-ish version of OSX (no dev tools, etc)
  2. Follow the instructions on the 'Get Started' page (./autogen.sh)

Expected behaviour

The script should run and let me run ./configure

Actual behaviour

I get an error that I need autoconf.

Any extra information that might be useful in the debugging process.

I suggest adding instructions/a link to get autoconf to the Get Started page. In my case, I downloaded brew and did a brew install autoconf automake libtool berkeley-db4 pkg-config openssl boost boost-build libevent

It might be worth also adding a check for all dependencies in at the start of the ./autogen.sh or ./configure process to ensure they're caught upfront vs. having to chase each one down one-by-one.

@bdickason
Copy link
Author

Follow-up issue (let me know if I should start a new thread):
Installing with latest autoconf from brew gives the error:

Can't exec "aclocal": No such file or directory at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory

@bdickason
Copy link
Author

I was able to get ./autogen.sh to run by installing:
automake autoconf libtool which do not come with OSX by default.

Without all 3 of these, users will run into build errors.

@bdickason
Copy link
Author

I'm consolidating OSX latest errors into this thread, let me know and I can break them out.

Building with the above libraries also let me know I need pkg-config and need to re-run autogen.sh

@bdickason
Copy link
Author

bdickason commented May 9, 2018

Received the error:

configure: error: libdb_cxx headers missing, Merit Core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)

Installed berkeley-db4 to resolve this.

@bdickason
Copy link
Author

New Error:

Installing boost and boost-build resolved this.

@bdickason
Copy link
Author

New Error:

configure: error: openssl  not found.

Installing openssl solved this

@bdickason
Copy link
Author

libevent is the final dependency I needed to get ./configure to run successfully.

@bdickason
Copy link
Author

Based on this, I'd suggest adding a step or a link to the following info for OSX users:

  1. Install brew (A package manager for OSX): https://brew.sh/
  2. Install the following dependencies: brew install autoconf automake libtool berkeley-db4 pkg-config openssl boost boost-build libevent

It might be worth also adding a check for all dependencies in #2 at the start of the ./autogen.sh or ./configure process to ensure they're caught upfront vs. having to chase each one down one-by-one.

@daves0
Copy link

daves0 commented May 9, 2018

Just tried the same on stock Ubuntu 18.04 with build-esentials installed, and I had to add libtool as well. Consider this ai +1 for adding dependency checks as part of the config process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants