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

Using ASDF with Elixir and Phoenix #1

Open
denielchiang opened this issue Jul 22, 2019 · 0 comments
Open

Using ASDF with Elixir and Phoenix #1

denielchiang opened this issue Jul 22, 2019 · 0 comments

Comments

@denielchiang
Copy link

denielchiang commented Jul 22, 2019

@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?

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

1 participant