I’m trying to build ruby 4.0.1 using rbenv/ruby-build. I’m getting the following error:
patch@patchbox:\~ $ more /tmp/ruby-build.20260215224033.55463.WMeLVQ/ruby-4.0.1/ext/psych/mkmf.log
pkg_config: checking for pkg-config for yaml-0.1… -------------------- not fou
nd
## LD_LIBRARY_PATH=.:../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --exists yaml-0.1
package configuration for yaml-0.1 is not found
find_header: checking for yaml.h… -------------------- no
LD_LIBRARY_PATH=.:../.. LSAN_OPTIONS=detect_leaks=0 “gcc -o conftest -I../../.ex
t/include/aarch64-linux -I../.././include -I../.././ext/psych -mbranch-protec
tion=pac-ret -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3
-fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wd
uplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -W
write-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn
-Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missi
ng-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-p
arentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-param
eter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -
Wunused-variable -Wmisleading-indentation -Wundef -fPIC conftest.c -L. -L../..
-L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,–no-as-needed
-Wl,-rpath,/home/patch/.rbenv/versions/4.0.1/lib -L/home/patch/.rbenv/versions
/4.0.1/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread -lm -lpthrea
d -lc”
checked program was:
/\* begin \*/
1: #include “ruby.h”
2:
3: int main(int argc, char \**argv)
4: {
5: return !!argv\[argc\];
6: }
/* end \*/
LD_LIBRARY_PATH=.:../.. LSAN_OPTIONS=detect_leaks=0 “gcc -I../../.ext/include/aa
rch64-linux -I../.././include -I../.././ext/psych -mbranch-protection=pac-ret
-fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-m
ath -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-co
nd -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-string
s -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-f
unction-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-ini
tializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-e
quality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-un
used-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-vari
able -Wmisleading-indentation -Wundef -fPIC -c conftest.c”
conftest.c:3:10: fatal error: yaml.h: No such file or directory
3 | #include <yaml.h>
| ^\~\~\~\~\~\~\~
compilation terminated.
checked program was:
/\* begin */
1:* #include *“ruby.h”
2:
3:* #include *<yaml.h>
/* end \*/
---
(END)
Any idea what package supplies yaml.h?