GithubHelp home page GithubHelp logo

Comments (9)

potatosalad avatar potatosalad commented on August 22, 2024

@peterlong Do you know what version of OTP you are using to build everything?

from erlang-jose.

peterlong avatar peterlong commented on August 22, 2024

Hi @potatosalad, I downloaded 3 versions, otp_win64_17.5, otp_win64_19.2 and otp_win64_R16B03-1. I am about 90% sure I am using v17.5. It installed to c:\Program Files\erl6.4

My goal was to use the same version of Erlang as CouchDB 2.0. It has a erts-6.4 sub-folder, so I assume that matches with erl6.4.

Here is a log of how I tried to do this build.

C:\Users\Peter>set ERL_LIBS="c:\Program Files\erl6.4\lib"
C:\Users\Peter>set PATH=%PATH%;c:\Users\Peter\bin;"c:\Program Files\erl6.4\bin"
C:\Users\Peter>cd source

C:\Users\Peter\source>cd couch_jwt_auth

C:\Users\Peter\source\couch_jwt_auth>rebar.cmd get-deps co eunit
{error_logger,{{2017,2,8},{22,41,9}},std_error,"File operation error: eio. Target: \"c:\Program Files\erl6.4\lib\". Function: list_dir. Process: code_server."}

=ERROR REPORT==== 8-Feb-2017::17:41:09 ===
File operation error: eio. Target: "c:\Program Files\erl6.4\lib". Function: list_dir. Process: code_server.
'couch-config' is not recognized as an internal or external command,
operable program or batch file.
CONFIG ERROR:
Failed to run couch-config --erl-libs-dir
Ensure that couch-config is on the PATH, or set ERL_LIBS appropriately

==> couch_jwt_auth (get-deps)
Pulling jose from {git,"git://github.com/potatosalad/erlang-jose.git",
                       {tag,"1.8.1"}}
Cloning into 'jose'...
Pulling jsx from {git,"git://github.com/talentdeficit/jsx.git",{tag,"2.8.0"}}
Cloning into 'jsx'...
Pulling meck from {git,"https://github.com/eproxus/meck.git",{tag,"0.8.4"}}
Cloning into 'meck'...
==> jose (get-deps)
Pulling base64url from {git,"git://github.com/dvv/base64url.git",
                            {branch,"master"}}
Cloning into 'base64url'...
==> base64url (get-deps)
==> jsx (get-deps)
==> meck (get-deps)
==> base64url (compile)
Compiled src/base64url.erl
==> jose (compile)
Compiled src/jose_jwk_kty.erl
Compiled src/jose_block_encryptor.erl
Compiled src/jose_jws_alg.erl
Compiled src/jose_jwe.erl
Compiled src/jose_jws.erl
Compiled src/jose_jwk_use_sig.erl
Compiled src/jose_jwk_use_enc.erl
Compiled src/jose_curve448.erl
Compiled src/jose_sha3.erl
Compiled src/jose_jwe_enc.erl
c:/Users/Peter/source/couch_jwt_auth/deps/jose/src/jose_chacha20_poly1305.erl:13: undefined callback function block_decrypt/3 (behaviour 'jose_block_encryptor')
c:/Users/Peter/source/couch_jwt_auth/deps/jose/src/jose_chacha20_poly1305.erl:13: undefined callback function block_encrypt/3 (behaviour 'jose_block_encryptor')
ERROR: compile failed while processing c:/Users/Peter/source/couch_jwt_auth/deps/jose: rebar_abort
Compiling c:/Users/Peter/source/couch_jwt_auth/deps/jose/src/jose_chacha20_poly1305.erl failed:

from erlang-jose.

potatosalad avatar potatosalad commented on August 22, 2024

Optional callbacks were added in OTP 18 and while I have rebar detect OTP 17 and compile the code differently, it sounds like it's not working correctly. Have you tried building with OTP 18 or 19?

from erlang-jose.

mkazlauskas avatar mkazlauskas commented on August 22, 2024

CouchDB 2.0 uses OTP 17, which means we're limited to this. Any chance of making it OTP 17 compatible?

from erlang-jose.

potatosalad avatar potatosalad commented on August 22, 2024

@mkazlauskas Are you having a similar build issue to the one described above?

from erlang-jose.

mkazlauskas avatar mkazlauskas commented on August 22, 2024

from erlang-jose.

potatosalad avatar potatosalad commented on August 22, 2024

I'll try to look into why it's failing on OTP 17 and see if I can get things working again.

from erlang-jose.

mkazlauskas avatar mkazlauskas commented on August 22, 2024

Thanks. It should be OTP 17.3 since I'm using https://hub.docker.com/r/klaemo/couchdb/

Also, running on Linux.

from erlang-jose.

potatosalad avatar potatosalad commented on August 22, 2024

Cleaning up older/neglected issues 😖

Hopefully this is fixed now, please reopen if you're still having issues.

from erlang-jose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.