asdf-vm/asdf-erlang là dự án mã nguồn mở trên GitHub với 532 sao, viết chủ yếu bằng Shell. Erlang plugin for asdf version manager
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Erlang plugin for asdf version manager that relies on kerl for builds.
This plugin aims to combine the best of both worlds by using kerl.
kerl's compatibility and build scripts, together with asdf's easy version switching and support for the .tool-versions file. You do not need to have kerl already installed to use this. The plugin will install it's own version of kerl automatically.
Important: Make sure to read the Before asdf install section below to install dependencies!
Use
Check asdf readme for instructions on how to install & manage versions of Erlang. To specify custom options you can set environment variables just as you would when using kerl. For example, to skip the Java dependency during installation use:
See kerl for the complete list of customization options. Note that the KERL_BASE_DIR and KERL_CONFIG environment variables are set by the plugin when it runs kerl so it will not be possible to customize them.
Before asdf install
Ubuntu and Debian
Note that if you are using a previous version of Linux, you may need a different version of one of the below
libraries.
Ubuntu 16.04 LTS "Xenial Xerus"
Install the build tools (dpkg-dev g++ gcc libc6-dev make debianutils m4 perl)
apt-get -y install build-essential autoconf
Needed for HiPE (native code) support, but already installed by autoconf
apt-get -y install m4
For building with wxWidgets (start observer or debugger!). Note that you may need to select the right wx-config before installing Erlang.
apt-get -y install libwxgtk3.0-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev
For building ssl (libssh-4 libssl-dev zlib1g-dev)
apt-get -y install libssh-dev
ODBC support (libltdl3-dev odbcinst1debian2 unixodbc)
apt-get -y install unixodbc-dev
For building documentation:
apt-get install xsltproc fop
If you want to install all the above:
apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop
Ubuntu 20.04 LTS
If you need to use wxWebView in Erlang you'll want to install a library for it:
apt-get -y install libwxgtk-webview3.0-gtk3-dev
If you want to install all the above:
apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk
Ubuntu 24.04 LTS
If you want to install all the above:
apt-get -y install build-essential autoconf m4 libwxgtk3.2-dev libwxgtk-webview3.2-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk
Provides most of the needed build tools.
pacman -S --needed base-devel
Needed for terminal handling
pacman -S ncurses
For building with wxWidgets (start observer or debugger!). Make sure wx-config --selected-config prints gtk3-unicode-... before installing Erlang. Older OTP builds may require wxgtk2, in that case install wxgtk2-dev from AUR.
pacman -S glu mesa wxwidgets-gtk3 libpng
For building ssl
pacman -S libssh
ODBC support
sudo pacman -S unixodbc
For building documentation and elixir reference builds:
sudo pacman -S libxslt fop
Dealing with ODBC issues on arch
You may encounter an ODBC error with an output along these lines:
error: ld returned 1 exit status
[x86_64-pc-linux-gnu/Makefile:112: ../priv/bin/x86_64-pc-linux-gnu/odbcserver] Error 1
or
* odbc : ODBC library - link check failed
This issue has been discussed here and also appears on kerl. There are
a link error on Kerl auto configure. If you see this, add a export flag --with-odbc to KERL-CONFIGURE. Here is
an example that skips the java dependency and also sets a specific (and existing)
path for unixodbc installed via pacman:
Note, for MacOS 10.15.4 and newer, 22.3.1 is the earliest version that can be installed through kerl (and, therefore, asdf). Earlier versions will fail to compile. See this issue for details.
Install the build tools
brew install autoconf
Install OpenSSL
brew install [email protected]Erlang 24.1 and older require OpenSSL 1.1, read more here
Note, Erlang 25.1 and newer support OpenSSL 3.0, even for production use.
If you want to build Erlang with [email protected], install it by brew install openssl
For building with wxWidgets (start observer or debugger!). Note that you may need to select the right wx-config before installing Erlang.
brew install wxwidgets
For building documentation and elixir reference builds:
brew install libxslt fop
Dealing with OpenSSL issues on macOS
You may encounter an SSL error with an output along these lines:
crypto : No usable OpenSSL found
ssh : No usable OpenSSL found
ssl : No usable OpenSSL found
This issue has been documented on kerl. If you see this
error, you can use the --with-ssl
flag with a path before installing Erlang. Here is an example that skips the java dependency and also sets a specific (and existing)
path for OpenSSL installed via brew on macOS.
Needed for terminal handling
sudo yum install -y ncurses-devel
For building with wxWidgets (start observer or debugger!). Note that you may need to select the right wx-config before installing Erlang.
sudo yum install -y wxGTK-devel wxBase
For building ssl
sudo yum install -y openssl-devel
For jinterface
sudo yum install -y java-1.8.0-openjdk-devel
ODBC support
sudo yum install -y libiodbc unixODBC-devel.x86_64 erlang-odbc.x86_64
For the documentation to be built
sudo yum install -y libxslt fop
Solus
Install the build tools
sudo eopkg it -c system.devel
For building with wxWidgets (start observer or debugger!). Note that you may need to select the right wx-config before installing Erlang.
I ran into an issue where javac wasn't a recognized command in the terminal despite having installed openjdk-8 and openjdk-8-devel. Turns out it wasn't added to PATH by default. So simply add it to PATH like so:
# In ~/.bashrc add these to add Java to PATH
JAVA_HOME=/usr/lib64/openjdk-8
PATH=$PATH:$JAVA_HOME/bin
# In terminal
source ~/.bashrc
openSUSE Tumbleweed
Even after you have installed the dependencies below, the Erlang installer will warn that g++ and openssl-devel appear missing. This is safe to ignore.
The basic stuff to get Erlang to compile:
sudo zypper install unzip make automake autoconf gcc-c++ ncurses-devel
For crypto, ssh, and others (you probably want this):
Erlang may come with documentation included (as man pages, pdfs and html files,
or even embedded documentation (via c:h function)).
For man pages this allows typing erl -man ets to get info on ets module.
For embedded documentation (on OTP 23+):
In Erlang's erl: via c:h/1,2,3 and c:ht/1,2,3 for types
In Elixir's iex (Elixir 1.7+): via h/1 and t/1 for types
asdf-erlang uses kerl for builds, and kerl is
capable of building the docs for specified version of Erlang in required
formats.
For kerl to be able to build Erlang documentation two requirements have to be met:
KERL_BUILD_DOCS environment variable has to be set to value yes
Additional dependencies have to be installed. For detailed list of dependencies for your OS please refer to the specific section above
Additionally, HTML and Man formats can be ignored entirely:
KERL_INSTALL_HTMLDOCS set to no to not install HTML docs
KERL_INSTALL_MANPAGES set to no to skip Man pages.
By default, docs in both of these formats are installed if KERL_BUILD_DOCS is set.
It may be a good idea to disable those formats to save space, since docs can easily take around 200MB in addition to 100MB of base installation, yet to still have docs inside shell.
Note: Environment variable has to be set before asdf install erlang <version> is executed, to take effect.
Setting the environment variable in bash
Type: export KERL_BUILD_DOCS=yes to create KERL_BUILD_DOCS environment variable and set it to true.
Repeat the same for KERL_INSTALL_HTMLDOCSKERL_INSTALL_MANPAGES if required (see above).
This line could be added to your .bashrc in case you want KERL_BUILD_DOCS to be set for future (future installations of Erlang).
To remove environment variable: unset KERL_BUILD_DOCS.
Setting the environment variable in fish shell
Type: set -xg KERL_BUILD_DOCS yes to set environment variable.
Repeat the same for KERL_INSTALL_HTMLDOCSKERL_INSTALL_MANPAGES if required (see above).
In case you want it to be persisted between sessions (machine reboots - for example for future installations) type set -xU KERL_BUILD_DOCS yes.
To remove environment variable type: set -e KERL_BUILD_DOCS.
Use a specific version of kerl
Overriding the default kerl version shouldn't ever be necessary, but if you want to you a specific version of kerl you can set:
asdf-vm/asdf-erlang có 532 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/asdf-vm/asdf-erlang. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
asdf-vm/asdf-erlang có phải mã nguồn mở không?
Có — asdf-vm/asdf-erlang phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/asdf-vm/asdf-erlang.
asdf-vm/asdf-erlang còn đang phát triển không?
Commit gần nhất trên asdf-vm/asdf-erlang là 1.1 năm trước (theo timestamp GitHub). Repo có 124 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
asdf-vm/asdf-erlang dùng license gì?
asdf-vm/asdf-erlang phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
asdf-vm/asdf-erlang là gì?
asdf-vm/asdf-erlang (asdf-vm/asdf-erlang) là dự án Shell trên GitHub. Theo mô tả gốc: Erlang plugin for asdf version manager
asdf-vm/asdf-erlang viết bằng ngôn ngữ gì?
asdf-vm/asdf-erlang chủ yếu viết bằng Shell. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc thêm về asdf-vm/asdf-erlang ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/asdf-vm/asdf-erlang là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
asdf-erlang có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về asdf-erlang.