asdf-vm / asdf-erlang

Erlang plugin for asdf version manager
https://github.com/asdf-vm/asdf
MIT License
483 stars 119 forks source link

Can't install erlang on Fedora41 #321

Open Rope-a-dope opened 3 weeks ago

Rope-a-dope commented 3 weeks ago

Fedora41 uses dnf5 which is short for dnf and the command as well as the packages change a little bit.

This is the documentation from current github page and I will comment below.

Install the build tools sudo yum groupinstall -y 'Development Tools' 'C Development Tools and Libraries' This command doesn't work. See the list below.

~ ❯ sudo dnf group list
Updating and loading repositories:
Repositories loaded.
ID                          Name                                       Installed
c-development               C Development Tools and Libraries                yes
d-development               D Development Tools and Libraries                 no

The command below doesn't work either.

~ ❯ sudo dnf group install -y 'C Development Tools and Libraries'

I had to install it with ID. Not sure if "d-development" needs to be installed.

~ ❯ sudo dnf group install -y c-development

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 wxGTK3-devel wxBase3 Neither package exist in Fedora repo, searched for quite a while and couldn't find the answer. Installing erlang will fail without these two.

Is it possible to update the description and also put all the necessary packages at the end just like what is done on Ubuntu? Thanks a lot!

Rope-a-dope commented 3 weeks ago

It's weird. After trying many time, it was successful.

~ ❯ mise use -g erlang
mise erlang@27.1.2                                                                                                       ⠒  1sGetting releases from GitHub...
mise erlang@27.1.2                                                                                                       ⠒  2sDownloading (from GitHub) Erlang/OTP 27.1.2 to /home/smallv/.cache/mise/erlang/kerl/archives...
mise erlang@27.1.2                                                                                                       ⠉  6sExtracting source code for normal build...
mise erlang@27.1.2                                                                                                       ⠄ 10sBuilding (normal) Erlang/OTP 27.1.2 (27.1.2); please wait...
Initializing (build) log file at /home/smallv/.cache/mise/erlang/kerl/builds/27.1.2/otp_build_27.1.2.log.
WARNING: [packages] Probe failed for g++ (distro: fedora): probe "rpm -q "g++"" returned 1
mise erlang@27.1.2                                                                                                       ⠤ 33sAPPLICATIONS INFORMATION (See: /home/smallv/.cache/mise/erlang/kerl/builds/27.1.2/otp_build_27.1.2.log)
 * wx             : No OpenGL headers found, wx will NOT be usable
 * No GLU headers found, wx will NOT be usable
 *     The requested wxWidgets build couldn't be found.
 *
 *     The configuration you asked for  requires a wxWidgets
 *     build with the following settings:
 *         --unicode
 *     but such build is not available.
 *     To see the wxWidgets builds available on this system, please use
 *     'wx-config --list' command. To use the default build, returned by
 *     'wx-config --selected-config', use the options with their 'auto'
 *     default values.
 *     If you still get this error, then check that 'wx-config' is
 *     in path, the directory where wxWidgets libraries are installed
 *     (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
 *     or equivalent variable and wxWidgets version is 3.0.2 or above.
 * wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed, wxWebView will NOT be available
 *         wxWidgets must be installed on your system.
 *         Please check that wx-config is in path, the directory
 *         where wxWidgets libraries are installed (returned by
 *         'wx-config --libs' or 'wx-config --static --libs' command)
 *         is in LD_LIBRARY_PATH or equivalent variable and
 *         wxWidgets version is 3.0.2 or above.

mise erlang@27.1.2                                                                                                       ⠈  6mErlang/OTP 27.1.2 (27.1.2) has been successfully built.