Comments (9)
@peterlong Do you know what version of OTP you are using to build everything?
from erlang-jose.
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.
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.
CouchDB 2.0 uses OTP 17, which means we're limited to this. Any chance of making it OTP 17 compatible?
from erlang-jose.
@mkazlauskas Are you having a similar build issue to the one described above?
from erlang-jose.
from erlang-jose.
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.
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.
Cleaning up older/neglected issues 😖
Hopefully this is fixed now, please reopen if you're still having issues.
from erlang-jose.
Related Issues (20)
- Jose failed to compile when MIX_ENV=prod HOT 1
- This project is turning into abandonware: call for more maintainers HOT 4
- Actually run Elixir tests in CI
- Speed up CI, currently takes ~20 minutes to run
- Update ECDH-1PU related code to match latest draft
- Add support for JWK Thumbprint URI from IETF RFC 9278
- Add support for ECDH-SS JWE algorithms HOT 1
- Add support for ES256K algorithm
- More robust support detection mechanism
- jwk.ex: Reading from pem file fails with FunctionClauseError
- Support AWS ALB JWTs with padding
- How to include headers after compact/1? HOT 1
- CaseClauseError raised by JOSE.JWT.peek_protected/1 with malformed token
- CVE-2023-50966: DoS via a large p2c value in a JOSE header HOT 3
- Support OTP JSON Implementation
- Problem compiling Jose 1.11.8 with Rebar3 HOT 2
- Upgrade error for v1.11.8 HOT 1
- Spec for verify_strict/3 missing {class, reason} results from try/catch HOT 1
- Dialyzer is broken in version 1.11.10
- `public_key` deprecations in OTP `27.0` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erlang-jose.