braindeaf
Need help with examples in chapter 2 of GraphQL APIs in Elixir with Absinthe book
Just opening GraphQL API in Elixir with Absinthe and realised I need Elixir 1.5.0 / OTP 20 to get the examples running. Is there an up to date version of the sample code anywhere or is there a surefire way of getting OTP 20 running on MacOSX 12.5.1
I’m using ASDF and it’s just spitting out the following and I am just staring blankly. I am not even sure I can get it running under Monterey.
The asdf_20.3.8.26 build has been deleted
Extracting source code
Building Erlang/OTP 20.3.8.26 (asdf_20.3.8.26), please wait...
Build failed.
configure: error:
You are natively building Erlang/OTP for a later version of MacOSX
than current version (12.5.1). You either need to
cross-build Erlang/OTP, or set the environment variable
MACOSX_DEPLOYMENT_TARGET to 12.5.1 (or a lower version).
make: *** No rule to make target `is_cross_configured'. Stop.
make: *** No rule to make target `all'. Stop.
Please see /Users/rl/.asdf/plugins/erlang/kerl-home/builds/asdf_20.3.8.26/otp_build_20.3.8.26.log for full details.
Failed at the first hurdle of Chapter 2. Boooo
Many thanks
RobL
Most Liked
dimitarvp
Doesn’t the code work with the latest Erlang and Elixir?
kokolegorille
Yes it does… last time I tried, I just started a new project, and added latest version of Absinthe + deps.
I also added dataloader, and could proceed with the code.
slouchpie
What the previous two posts are saying is that you can probably edit .tool-versions file in the repository. Change it to something like this:
elixir 1.14.0-otp-25
erlang 25.1.1
Then run asdf install again and start from the beginning (get deps, compile, etc)
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









