From: "Dan0042 (Daniel DeLorme) via ruby-core" Date: 2024-12-31T00:02:12+00:00 Subject: [ruby-core:120452] [Ruby master Bug#20147] FreeBSD libyaml Issue #20147 has been updated by Dan0042 (Daniel DeLorme). kaiquekandykoga (Ka�que 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=" -I/usr/local/include"; [[ $CPPFLAGS = *"$v"* ]] || export CPPFLAGS+="$v" v=" -L/usr/local/lib"; [[ $LIBS = *"$v"* ]] || export LIBS+="$v" As a result, `RbConfig::CONFIG` contains the /usr/local directories and that makes gem install also flow smoothly (iirc) ---------------------------------------- Bug #20147: FreeBSD libyaml https://bugs.ruby-lang.org/issues/20147#change-111233 * Author: kaiquekandykoga (Ka�que 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 issues installing Ruby 3.2.2 https://github.com/postmodern/ruby-install/issues/463, and the same issue was open for ruby-build in https://github.com/rbenv/ruby-build/issues/2184. I am trying to install Ruby 3.3.0 using ruby-install, 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 installation 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. -- 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.ruby-lang.org/