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

erlang version preventing install #2

Open
kenetik opened this issue Nov 8, 2014 · 5 comments
Open

erlang version preventing install #2

kenetik opened this issue Nov 8, 2014 · 5 comments

Comments

@kenetik
Copy link

kenetik commented Nov 8, 2014

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  
@abhi-bit
Copy link
Contributor

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

@amolc
Copy link

amolc commented Mar 21, 2016

same issue.

@abhi-bit
Copy link
Contributor

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.

@amolc
Copy link

amolc commented Mar 21, 2016

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
Copy link

amolc commented Mar 21, 2016

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

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

No branches or pull requests

3 participants