[ruby-core:120452] [Ruby master Bug#20147] FreeBSD libyaml
From:
"Dan0042 (Daniel DeLorme) via ruby-core" <ruby-core@...>
Date:
2024-12-31 00:02:12 UTC
List:
ruby-core #120452
Issue #20147 has been updated by Dan0042 (Daniel DeLorme).
kaiquekandykoga (Ka=EDque Koga) wrote in #note-5:
> It seems that the include directive in gcc looks for /usr/local/include, =
however the include directive in clang does not look for /usr/local/include.
That sounds about right. When compiling Ruby on FreeBSD, I have this at the=
beginning of my script to make everything flow smoothly:
v=3D" -I/usr/local/include"; [[ $CPPFLAGS =3D *"$v"* ]] || export CPPFL=
AGS+=3D"$v"
v=3D" -L/usr/local/lib"; [[ $LIBS =3D *"$v"* ]] || export LIBS+=
=3D"$v"
As a result, `RbConfig::CONFIG` contains the /usr/local directories and tha=
t makes gem install also flow smoothly (iirc)
----------------------------------------
Bug #20147: FreeBSD libyaml
https://bugs.ruby-lang.org/issues/20147#change-111233
* Author: kaiquekandykoga (Ka=EDque Koga)
* Status: Open
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
I use ruby-install to manage multiple Ruby versions. Some time ago I had is=
sues installing Ruby 3.2.2 https://github.com/postmodern/ruby-install/issue=
s/463, and the same issue was open for ruby-build in https://github.com/rbe=
nv/ruby-build/issues/2184. I am trying to install Ruby 3.3.0 using ruby-ins=
tall, and the same behaviour is occurring. Please, take a look in the links=
I have provided for detailed information.
``` shell
/usr/home/kandy/src/ruby-3.3.0/lib/yaml.rb:3: warning: It seems your ruby i=
nstallation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
uh-oh! RDoc had a problem:
cannot load such file -- psych
run with --debug for full backtrace
*** Error code 1
Stop.
make: stopped in /usr/home/kandy/src/ruby-3.3.0
!!! Compiling ruby 3.3.0 failed!
```
Thank you.
--=20
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.rub=
y-lang.org/