Project

General

Profile

Actions

Bug #18790

closed

cannot load such file -- digest (LoadError)

Added by k0kubun (Takashi Kokubun) 9 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:108616]

Description

I got asked by @hsbt (Hiroshi SHIBATA) to file this.

Backtrace

configuring psych
/home/k0kubun/src/github.com/ruby/ruby/tool/extlibs.rb:7:in `require': cannot load such file -- digest (LoadError)
        from /home/k0kubun/src/github.com/ruby/ruby/tool/extlibs.rb:7:in `<top (required)>'
        from /home/k0kubun/src/github.com/ruby/ruby/ext/psych/extconf.rb:24:in `require_relative'
        from /home/k0kubun/src/github.com/ruby/ruby/ext/psych/extconf.rb:24:in `<top (required)>'
        from ../ext/extmk.rb:217:in `load'
        from ../ext/extmk.rb:217:in `block in extmake'
        from /home/k0kubun/src/github.com/ruby/ruby/lib/mkmf.rb:324:in `open'
        from ../ext/extmk.rb:213:in `extmake'
        from ../ext/extmk.rb:577:in `block in <main>'
        from ../ext/extmk.rb:573:in `each'
        from ../ext/extmk.rb:573:in `<main>'
make[1]: *** [ext/configure-ext.mk:105: ext/psych/exts.mk] Error 1
make[1]: Leaving directory '/home/k0kubun/src/github.com/ruby/ruby/.ruby'
make: *** [uncommon.mk:289: exts.mk] Error 2

How to reproduce

Build ruby without libyaml-dev (?). My build was fixed once I run the apt-get command written in https://github.com/rbenv/ruby-build/wiki, which was probably auto-removed when I upgraded Ubuntu 20.04 to 22.04.


Related issues 3 (0 open3 closed)

Related to Ruby master - Feature #18571: Removed the bundled sources from release package after Ruby 3.2Closedhsbt (Hiroshi SHIBATA)Actions
Has duplicate Ruby master - Bug #18764: Build Error when Using msys2-mingw64 and Ruby 3.2ClosedActions
Has duplicate Ruby master - Bug #18758: Ruby fails to build on M1 Mac when x86 Homebrew is installedClosedActions
Actions #1

Updated by jeremyevans0 (Jeremy Evans) 8 months ago

  • Has duplicate Bug #18764: Build Error when Using msys2-mingw64 and Ruby 3.2 added
Actions #2

Updated by jeremyevans0 (Jeremy Evans) 8 months ago

  • Has duplicate Bug #18758: Ruby fails to build on M1 Mac when x86 Homebrew is installed added

Updated by yahonda (Yasuo Honda) 8 months ago

There is a similar issue with Red Hat Enterprise Linux 8. To install libyaml-devel package, it needs 'codeready-builder-for-rhel-8-x86_64-rpms' repository enabled. Refer to https://github.com/rbenv/ruby-build/discussions/1976 .

Updated by hsbt (Hiroshi SHIBATA) 4 months ago

  • Status changed from Assigned to Closed

The download feature for libyaml and libffi with extlibs has been removed from Ruby 3.2.0-preview2.

This issue no longer happened.

Actions #5

Updated by hsbt (Hiroshi SHIBATA) 4 months ago

  • Related to Feature #18571: Removed the bundled sources from release package after Ruby 3.2 added
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0