Skip to content

Using ASDF with Elixir and Phoenix #1

@denielchiang

Description

@denielchiang

@reachfh when I follow this blog and try do this on ubuntu 18.04 in Digital Ocean

sudo bin/build-install-asdf

Got error above

==> Running pre_build task
===> Installing build deps with ASDF
elixir 1.9.1-otp-22 is already installed
Extracting source code
mv: cannot move './otp-OTP-22.0.7' to '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0.7/otp_src_22.0.7/otp-OTP-22.0.7': Directory not empty
Building Erlang/OTP 22.0.7 (asdf_22.0.7), please wait...
APPLICATIONS DISABLED (See: /home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0.7/otp_build_22.0.7.log)
 * jinterface     : No Java compiler found

DOCUMENTATION INFORMATION (See: /home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0.7/otp_build_22.0.7.log)
 * documentation  :
 *                  xmllint is missing.
 *                  Using fakefop to generate placeholder PDF files.

Build failed.
make[3]: *** [x86_64-unknown-linux-gnu/wxe_funcs.o] Error 1
make[3]: Leaving directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0.7/otp_src_22.0.7/lib/wx/c_src'
/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0.7/otp_src_22.0.7/make/otp_subdir.mk:29: recipe for target 'opt' failed
make[2]: *** [opt] Error 2
make[2]: Leaving directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0.7/otp_src_22.0.7/lib/wx'
/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0.7/otp_src_22.0.7/make/otp_subdir.mk:29: recipe for target 'opt' failed
make[1]: *** [opt] Error 2
make[1]: Leaving directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0.7/otp_src_22.0.7/lib'
Makefile:490: recipe for target 'libs' failed
make: *** [libs] Error 2

Please see /home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0.7/otp_build_22.0.7.log for full details.

After I saw the log, it complain virtual memory exhausted: Cannot allocate memory

Exactly the same like this issue. Instead of using $5/mo droplets, it needs 4 GB for swap space($20/mo) when it has memory leaking problems.

After I resize my droplets to $20/mo, everything is fine now.
And.... Yes, I resize it back to $5/mo, after I've done with installing.

Just let you know that, maybe you want to update your blog?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions