Requirements
I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata
OpenMandriva Lx version
OpenMandriva Lx release 6.0 (Vanadium) Rock for x86_64
Desktop environment (KDE, LXQT…)
Hyprland
Description of the issue (screenshots if relevant):
Installing rbenv
I am attempting to download/manage versions of Ruby using rbenv. If you go to rbenv.org and look at the installation instructions for a distro-agnostic install it directs you to install like so:
Installation
To install rbenv and ruby-build on a system with either Homebrew or git, paste this into your terminal:
curl -fsSL https://rbenv.org/install.sh | bash
Executing the above (which I’ve later figured out is the rbenv-installer seems to work, and I can execute commands using it.
☒ Installing a specific version of Ruby
- I decide to install Ruby 3.2.0, because that is what is recommended for my project requirements. To do this with
rbenv, I command the execute the following:
rbenv install rbx-4.20
-
My initial log reads that the
BUILD FAILED (OpenMandriva Lx 6.0 on x86_64 using ruby-build 20251008)[1]. -
I notice at the bottom of the output:
See the full build log at /tmp/ruby-build.20251009172817.4213.log, so I check the contents of the log [2] with:
less /tmp/ruby-build.20251009172817.4213.log
And scroll to the bottom.
Installing build-essentials in an attempt to rectify the issue
-
Due to things like
string.hbeing missing, I make an ignorant assumption (I don’t have much experience with C nor building software from source) that I need some build essentials. I look up “build essentials” in the OMLx forums (i.e., this website) and find the Developer Tools (build-essential equivalent) thread, and make the determination to installbuild-essentials. -
After installing
build-essentials, I recieve another build failure with the exact content of the first build failure in my shell [1]. I check the contents of/tmp/ruby-build.20251009175855.6328.logwith:
less /tmp/ruby-build.20251009175855.6328.log
And I’m now at a loss.
My guess is that the key to solving the issue would be in the last few lines of the output, which mentions things like linux-gnu-ld.bfd: final link failed: bad value [3]. However, I lack expertise in this department.
Relevant information (hardware involved, software version, logs or output…)
The following section is going to contain the content of my references during my Description of the issue, there will be citation numbers that will correspond to the ordered list here.
- Build failure on OMLx ROCK 6.0:
wolfdaemon@sigma:~$ rbenv install rbx-4.20
==> Downloading openssl-1.0.2u.tar.gz...
-> aria2c --allow-overwrite=true --no-conf=true --console-log-level=warn --stderr -o openssl-1.0.2u.tar.gz https://www.openssl.org/source/openssl-1.0.2u.tar.gz
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
29d72d|OK | 19MiB/s|/tmp/ruby-build.20251009172817.4213.hrWjQ5/openssl-1.0.2u.tar.gz
Status Legend:
(OK):download completed.
==> Installing openssl-1.0.2u...
-> ./config "--prefix=$HOME/.rbenv/versions/rbx-4.20/openssl" "--openssldir=$HOME/.rbenv/versions/rbx-4.20/openssl/ssl" --libdir=lib zlib-dynamic no-ssl3 shared "-Wl,-rpath,$HOME/.rbenv/versions/rbx-4.20/openssl/lib" no-ssl2 no-krb5
-> make -j 12
BUILD FAILED (OpenMandriva Lx 6.0 on x86_64 using ruby-build 20251008)
You can inspect the build directory at /tmp/ruby-build.20251009172817.4213.hrWjQ5
See the full build log at /tmp/ruby-build.20251009172817.4213.log
- Contents of the initial build log
/tmp/ruby-build.20251009172817.4213.log. Because there are too many lines for me to copy, I will include the entire log file as an attachment to this post
ruby-build.20251009172817.4213.txt (29 KB):
...
../include/openssl/crypto.h:120:11: fatal error: stdlib.h: No such file or directory
120 | # include <stdlib.h>
| ^~~~~~~~~~
compilation terminated.
make[1]: *** [<builtin>: mem.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [<builtin>: cryptlib.o] Error 1
make[1]: *** [<builtin>: mem_dbg.o] Error 1
make[1]: *** [<builtin>: ex_data.o] Error 1
make[1]: *** [<builtin>: cpt_err.o] Error 1
make[1]: *** [<builtin>: uid.o] Error 1
make[1]: *** [<builtin>: o_str.o] Error 1
make[1]: *** [<builtin>: o_dir.o] Error 1
make[1]: *** [<builtin>: o_fips.o] Error 1
make[1]: *** [<builtin>: o_time.o] Error 1
make[1]: *** [<builtin>: o_init.o] Error 1
make[1]: Leaving directory '/tmp/ruby-build.20251009172817.4213.hrWjQ5/openssl-1.0.2u/crypto'
make: *** [Makefile:287: build_crypto] Error 1
external command failed with status 2
- Contents of the build log after installing
build-essentials. Because there are too many lines for me to copy, I will include the entire log file as an attachment to this post as well
ruby-build.20251009175855.6328.txt. (321.5 KB):
...
/usr/bin/x86_64-openmandriva-linux-gnu-ld.bfd: libcrypto.a(ecp_nistz256-x86_64.o): warning: relocation against `OPENSSL_ia32cap_P' in read-only section `.text'
/usr/bin/x86_64-openmandriva-linux-gnu-ld.bfd: libcrypto.a(sha1-x86_64.o): relocation R_X86_64_PC32 against undefined symbol `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC
/usr/bin/x86_64-openmandriva-linux-gnu-ld.bfd: final link failed: bad value
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile.shared:169: link_a.gnu] Error 1
make[4]: Leaving directory '/tmp/ruby-build.20251009175855.6328.EbVUs0/openssl-1.0.2u'
make[3]: *** [Makefile:357: do_linux-shared] Error 2
make[3]: Leaving directory '/tmp/ruby-build.20251009175855.6328.EbVUs0/openssl-1.0.2u'
make[2]: *** [Makefile:310: libcrypto.so.1.0.0] Error 2
make[2]: Leaving directory '/tmp/ruby-build.20251009175855.6328.EbVUs0/openssl-1.0.2u'
make[1]: *** [Makefile:111: shared] Error 2
make[1]: Leaving directory '/tmp/ruby-build.20251009175855.6328.EbVUs0/openssl-1.0.2u/crypto'
make: *** [Makefile:287: build_crypto] Error 1
external command failed with status 2