Project

General

Profile

Actions

Bug #20147

open

FreeBSD libyaml

Added by kaiquekandykoga (Kaíque Koga) 4 months ago. Updated 3 months ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:116009]

Description

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.

/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.

Updated by hsbt (Hiroshi SHIBATA) 4 months ago

I could install Ruby 3.2.2 on FreeBSD 14.0 with ruby-build and the following configuration.

./configure "--prefix=$HOME/.rbenv/versions/3.1.3" --enable-shared --with-readline-dir=/usr/local --with-libffi-dir=/usr/local --with-libyaml-dir=/usr/local --with-openssl-dir=/usr/local --with-ext=openssl,psych,+ --disable-dtrace

I'm not sure why FreeBSD didn't detect headers from /usr/local implicitly.

Updated by kaiquekandykoga (Kaíque Koga) 3 months ago

The day I reported this bug I was still able to compile Ruby using master. Today I have decided to try compiling again from master, before compiling I have fetched from upstream and the compilation was not working anymore. If I use the 7f9c174102d0e2369befc7b88f2c073becaa7560 that is the last commit from January 5 is compiling. I am trying to find what was the recent commit that broke the compilation, at least for me. I have upgraded my machine recently, and I am using FreeBSD 14.0-RELEASE-p4 at the present.

Updated by kaiquekandykoga (Kaíque Koga) 3 months ago

The 76afbda5b566148b9e73939e0ff9b8464d59806c. The last commit from January 6 is not compiling. It seems that something was changed on January 6 that broke the compilation in my environment.

Updated by kaiquekandykoga (Kaíque Koga) 3 months ago

Analyzing the changes made on January 6. From 9b78ef75522b1f6aa20fc81ddf06e5fb40db152d I am not able to compile. Even though the previous commits I can compile, the message of yaml.h not being found keep showing up.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0