iriscouch / build-couchdb

Batteries-included CouchDB build system
227 stars 36 forks source link

Missing dependencies (e.g. flex) on Ubuntu 13.04 #83

Open natevw opened 11 years ago

natevw commented 11 years ago

Recently upgraded the default Amazon quicklaunch "Ubuntu" machine (non-LTS) to whatever release it wanted to be at and had to add a bunch of dependencies before this would build now.

The README says to sudo apt-get install help2man make gcc zlib1g-dev libssl-dev rake help2man texinfo however after doing that I would get messages like:

Build CouchDB commit: 4363966b0d359a3200797bddf78fd784ae96628d
##
## Missing package: flex
##
## Try: sudo apt-get -y install flex
##
rake aborted!
Missing package: flex

Tasks: TOP => default => couchdb:build => couchdb:couchdb => erlang:build => build:os_dependencies => build:ubuntu_dependencies
(See full trace by running task with --trace)

It started getting to work once I'd done the equivalent of sudo apt-get install flex dctrl-tools libsctp-dev libxslt1-dev libcap2-bin in addition to the original list from the README.

natevw commented 11 years ago

I could submit a pull request on the README if you'd like, but this seems like a strange set of stuff (half of which I have no idea what it is or what needs it) that I'm wondering if there's some one missing parent dependency or something that would be more appropriate instead.

natevw commented 11 years ago

See also issue #79, towards the end (at least one can hope :smile:) of the build I get:

Can't exec "aclocal": No such file or directory at /home/natevw/build-couchdb/build/share/autoconf-2.62/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory

Trying again now after doing sudo apt-get install automake autoconf.

natevw commented 11 years ago

Success. Executive summary:

To build CouchDB on Ubuntu 13.04 you need the following dependencies:

sudo apt-get install help2man make gcc zlib1g-dev libssl-dev rake help2man texinfo flex dctrl-tools libsctp-dev libxslt1-dev libcap2-bin automake autoconf

Is this to be expected? If so we should get this into the README (looks like there's an open pull request for at least some of these).