Skip to content

Install FreeBSD Ruby 3.2.2 #463

@kaiquekandykoga

Description

@kaiquekandykoga

Description

I think it is related to rbenv/ruby-build#2184.

Steps To Reproduce

$ ruby-install 3.2.2

Expected Behavior

Install 3.2.2.

Actual Behavior


*** Following extensions are not compiled:
fiddle:
        Could not be configured. It will not be installed.
        /usr/home/kandy/src/ruby-3.2.2/ext/fiddle/extconf.rb:73: missing libffi. Please install libffi or use --with-libffi-source-dir with libffi source location.
        Check ext/fiddle/mkmf.log for more details.
psych:
        Could not be configured. It will not be installed.
        Check ext/psych/mkmf.log for more details.
readline:
        Could not be configured. It will not be installed.
        /usr/home/kandy/src/ruby-3.2.2/ext/readline/extconf.rb:62: Neither readline nor libedit was found
        Check ext/readline/mkmf.log for more details.
*** Fix the problems, then remove these directories and try again if you want.

...

Ignoring debug-1.6.3 because its extensions are not built. Try: gem pristine debug --version 1.6.3
Ignoring rbs-2.7.0 because its extensions are not built. Try: gem pristine rbs --version 2.7.0
/usr/home/kandy/src/ruby-3.2.2/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.2.2
!!! Compiling ruby 3.2.2 failed!

Environment

[kandy@freebsd ~]$ ruby-install --version
ruby-install: 0.9.0

[kandy@freebsd ~]$ uname -a
FreeBSD freebsd 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64

[kandy@freebsd ~]$ cc --version
FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)
Target: x86_64-unknown-freebsd13.1
Thread model: posix
InstalledDir: /usr/bin

[kandy@freebsd ~]$ pkg info --prefix libyaml
libyaml-0.2.5                  /usr/local

[kandy@freebsd ~]$ pkg info --prefix libffi
libffi-3.4.4                   /usr/local

[kandy@freebsd ~]$ pkg info --prefix readline
readline-8.2.1                 /usr/local

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions