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

Can't install erlang on Fedora41 #321

Open
Rope-a-dope opened this issue Oct 29, 2024 · 1 comment
Open

Can't install erlang on Fedora41 #321

Rope-a-dope opened this issue Oct 29, 2024 · 1 comment

Comments

@Rope-a-dope
Copy link

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
Copy link
Author

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

~ ❯ mise use -g erlang
mise [email protected]                                                                                                       ⠒  1sGetting releases from GitHub...
mise [email protected]                                                                                                       ⠒  2sDownloading (from GitHub) Erlang/OTP 27.1.2 to /home/smallv/.cache/mise/erlang/kerl/archives...
mise [email protected]                                                                                                       ⠉  6sExtracting source code for normal build...
mise [email protected]                                                                                                       ⠄ 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 [email protected]                                                                                                       ⠤ 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 [email protected]                                                                                                       ⠈  6mErlang/OTP 27.1.2 (27.1.2) has been successfully built.

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