couchdb icon indicating copy to clipboard operation
couchdb copied to clipboard

erlang version preventing install

Open kenetik opened this issue 10 years ago • 5 comments

Requirement states 5.6.5+, however installed version is 6.2

configure: error: The installed Erlang version is less than 5.6.5 (R12B05).

$ erl
Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.2  

kenetik avatar Nov 08 '14 02:11 kenetik

I believe it's because of the way we are verifying erl -version

erlang_version_error="The installed Erlang version is less than 5.6.5 (R12B05)."

version="`${ERL} -version 2>&1 | ${SED} 's/[^0-9]/ /g'`"

if test `echo $version | ${AWK} "{print \\$1}"` -lt 5; then
    as_fn_error $? "$erlang_version_error" "$LINENO" 5
fi

if test `echo $version | ${AWK} "{print \\$2}"` -lt 6; then
    as_fn_error $? "$erlang_version_error" "$LINENO" 5
fi

if test `echo $version | ${AWK} "{print \\$2}"` -eq 6; then
    if test `echo $version | ${AWK} "{print \\$3}"` -lt 5; then
        as_fn_error $? "$erlang_version_error" "$LINENO" 5
    fi
fi

In your case erl -version would dump 6.2 but in below statement configure script is looking for 3rd field something like 6.2.x and given it's missing it fails

if test `echo $version | ${AWK} "{print \\$3}"` -lt 5; then
        as_fn_error $? "$erlang_version_error" "$LINENO" 5

abhi-bit avatar Sep 16 '15 16:09 abhi-bit

same issue.

amolc avatar Mar 21 '16 06:03 amolc

I doubt if installing this project would work independently because over the years we have tied it closely with Couchbase Server. Tried and tested way to play around with this project would be:

  • Follow the steps mentioned to checkout the Couchbase Server components using manifest repo.
  • Build the project once all dependencies are installed.
  • Fiddle around with project there by starting up server using ./install/bin/cocuhbase-server \--noinput -detached.

abhi-bit avatar Mar 21 '16 06:03 abhi-bit

Can someone come up with a yum repo for Centos 7. I feel bad that we are unable to deploy it on a linux server just because of some silly compile errors.

amolc avatar Mar 21 '16 09:03 amolc

erl Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]

amolc avatar Mar 21 '16 09:03 amolc