Gentoo It Seems Your Ruby Installation Is Missing Psych

Posted on  by 

Package: src:ruby-psych;Maintainer for src:ruby-psych is Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>;

Reported by: Lucas Nussbaum <lucas@debian.org>

Date: Sun, 3 May 2020 13:10:14 UTC

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share. Confirm for us that you are not running a Ruby installer like 'rvm' or similar. This might be a problem if you try to run a locally-installed JRuby while a Ruby installer has also activated a different Ruby install. Make sure you don't have any GEMHOME or similar environment variables. Browse other questions tagged ruby-on-rails or ask your own question. The Overflow Blog Podcast 331: One in four visitors to Stack Overflow copies code.

Severity: serious

Don’t get the wrong idea; I’m not actually writing this in RubyFrontier from within Ruby 1.9.3. RubyFrontier isn’t ready for Ruby 1.9! But in order for RubyFrontier ever to have even a chance of becoming ready for Ruby 1.9, clearly I would sooner or later have to install Ruby 1.9.

Tags: bullseye, ftbfs, sid

Found in version ruby-psych/3.1.0+really3.1.0-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox

Report forwardedto debian-bugs-dist@lists.debian.org, Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>:
Bug#959571; Package src:ruby-psych. (Sun, 03 May 2020 13:10:16 GMT) (full text, mbox, link).

Acknowledgement sentto Lucas Nussbaum <lucas@debian.org>:
New Bug report received and forwarded. Copy sent to Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>. (Sun, 03 May 2020 13:10:16 GMT) (full text, mbox, link).

Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

To: submit@bugs.debian.org
Subject: ruby-psych: FTBFS: LoadError: no such file to load -- psych

Information forwardedto debian-bugs-dist@lists.debian.org, Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>:
Bug#959571; Package src:ruby-psych. (Thu, 06 Aug 2020 21:06:02 GMT) (full text, mbox, link).

Acknowledgement sentto Mike Gerow <gerow@google.com>:
Extra info received and forwarded to list. Copy sent to Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>. (Thu, 06 Aug 2020 21:06:02 GMT) (full text, mbox, link).

Gentoo It Seems Your Ruby Installation Is Missing Psych

Message #10 received at 959571@bugs.debian.org (full text, mbox, reply):

To: 959571@bugs.debian.org
Subject: Re: ruby-psych: FTBFS: LoadError: no such file to load -- psych

Message sent onto Lucas Nussbaum <lucas@debian.org>:
Bug#959571. (Sat, 05 Sep 2020 08:03:02 GMT) (full text, mbox, link).

Message #13 received at 959571-submitter@bugs.debian.org (full text, mbox, reply):

From: Sebastian Ramacher <noreply@salsa.debian.org>
Subject: Bug#959571 marked as pending in audacity

Added tag(s) pending.Request was from Sebastian Ramacher <noreply@salsa.debian.org>to 959571-submitter@bugs.debian.org. (Sat, 05 Sep 2020 08:03:02 GMT) (full text, mbox, link).

Removed tag(s) pending.Request was from Sven Mueller <sven.mueller72@gmail.com>to control@bugs.debian.org. (Thu, 03 Dec 2020 18:03:06 GMT) (full text, mbox, link).

Send a report that this bug log contains spam.

Debian bug tracking system administrator <owner@bugs.debian.org>.Last modified:Wed May 19 17:37:12 2021; Machine Name:buxtehude

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham,1997,2003 nCipher Corporation Ltd,1994-97 Ian Jackson,2005-2017 Don Armstrong, and many other contributors.

With package managers or third-party tools, you have plenty of optionsto install and manage Ruby.

You may already have Ruby installed on your computer. You can checkinside a terminal emulator by typing:

This should output some information on the installed Ruby version.

Choose Your Installation Method

There are several ways to install Ruby:

  • On a UNIX-like operating system, using your system’spackage manager is easiest.However, the packaged Ruby version may not be the newest one.
  • Installers can be used to install a specific or multipleRuby versions. There is also an installer for Windows.
  • Managers help you to switch between multiple Ruby versionson your system.
  • Finally, you can also build Ruby from source.

On Windows 10, you can also use the Windows Subsystem for Linuxto install one of the supported Linux distributions and use any of theinstallation methods available on that system.

It seems your ruby installation is missing psych

Here are available installation methods:

  • Package Management Systems
  • Installers
    • RubyInstaller (Windows)
  • Managers

Package Management Systems

If you cannot compile your own Ruby, and you do not want to use athird-party tool, you can use your system’s package manager to install Ruby.

Some members of the Ruby community feel that you should avoid packagemanagers to install Ruby and that you should use dedicated tools instead.

It is possible that major package managers will install older Rubyversions instead of the latest release. To use the latest Ruby release,check that the package name matches its version number. Or use adedicated installer.

apt (Debian or Ubuntu)

Debian GNU/Linux and Ubuntu use the apt package manager. You can use itlike this:

yum (CentOS, Fedora, or RHEL)

CentOS, Fedora, and RHEL use the yum package manager.You can use it like this:

The installed version is typically the latest version of Ruby availableat the release time of the specific distribution version.

snap (Ubuntu or other Linux distributions)

Snap is a package manager developed by Canonical.It is available out-of-the-box on Ubuntu, but snap also workson many other Linux distributions.You can use it like this:

We have several channels per Ruby minor series.For instance, the following commands switch to Ruby 2.3:

portage (Gentoo)

Gentoo uses the portage package manager.

To install a specific version, set RUBY_TARGETS in your make.conf.See the Gentoo Ruby Project website for details.

pacman (Arch Linux)

Arch Linux uses a package manager named pacman.To get Ruby, just do this:

This should install the latest stable Ruby version.

Homebrew (macOS)

Ruby versions 2.0 and above are included by default in macOS releasessince at least El Capitan (10.11).

Homebrew is a commonly used package manager on macOS.Installing Ruby using Homebrew is easy:

This should install the latest Ruby version.

FreeBSD

FreeBSD offers both pre-packaged and source-based methods to install Ruby.Prebuilt packages can be installed via the pkg tool:

A source-based method can be used to install Ruby using thePorts Collection. This is useful if you wantto customize the build configuration options.

More information about Ruby and its surrounding ecosystem on FreeBSDcan be found on the FreeBSD Ruby Project website.

OpenBSD

OpenBSD as well as its distribution adJ has packages for the threemajor versions of Ruby. The following command allows you to see theavailable versions and to install one:

You can install multiple major versions side by side, because theirbinaries have different names (e.g. ruby27, ruby26).

The HEAD branch of the OpenBSD ports collection might have themost recent version of Ruby for this platform some days after itis released, seedirectory lang/ruby in the most recent ports collection.

Ruby on OpenIndiana

To install Ruby on OpenIndiana, please use theImage Packaging System (IPS) client.This will install the Ruby binaries and RubyGems directlyfrom the OpenIndiana repositories. It’s easy:

However, the third-party tools might be a good way to obtain thelatest version of Ruby.

Other Distributions

On other systems, you can search the package repository of your Linuxdistribution’s manager for Ruby. Alternatively, you can use athird-party installer.

Installers

If the version of Ruby provided by your system or package manager is outof date, a newer one can be installed using a third-party installer.

Some installers allow you to install multiple versions on the samesystem; associated managers can help to switch between the differentRubies.

If you are planning to use RVM as a version manager you don’tneed a separate installer, it comes with its own.

ruby-build

ruby-build is a plugin for rbenv that allows youto compile and install different versions of Ruby. ruby-build can alsobe used as a standalone program without rbenv. It is available for macOS,Linux, and other UNIX-like operating systems.

ruby-install

ruby-install allows you to compile and install differentversions of Ruby into arbitrary directories. chruby is acomplimentary tool used to switch between Ruby versions. It is availablefor macOS, Linux, and other UNIX-like operating systems.

RubyInstaller

On Windows, RubyInstaller gives you everything you needto set up a full Ruby development environment.

Just download it, run it, and you are done!

Ruby Stack

If you are installing Ruby in order to use Ruby on Rails,you can use the following installer:

  • Bitnami Ruby Stack provides a complete developmentenvironment for Rails. It supports macOS, Linux, Windows, virtualmachines, and cloud images.

Managers

Many Rubyists use Ruby managers to manage multiple Rubies. They alloweasy or even automatic switching between Ruby versions depending on theproject and other advantages but are not officially supported. You canhowever find support within their respective communities.

asdf-vm

asdf-vm is an extendable version manager that can manage multiplelanguage runtime versions on a per-project basis. You will need theasdf-ruby plugin (which in turn uses ruby-build)to install Ruby.

chruby

chruby allows you to switch between multiple Rubies. It canmanage Rubies installed by ruby-install or even builtfrom source.

rbenv

rbenv allows you to manage multiple installations of Ruby.While it can’t install Ruby by default, its ruby-buildplugin can. Both tools are available for macOS, Linux, or otherUNIX-like operating systems.

RVM (“Ruby Version Manager”)

RVM allows you to install and manage multiple installations ofRuby on your system. It can also manage different gemsets. It isavailable for macOS, Linux, or other UNIX-like operating systems.

uru

Uru is a lightweight, multi-platform command line tool that helps youto use multiple Rubies on macOS, Linux, or Windows systems.

Building from Source

Of course, you can install Ruby from source.Download and unpack a tarball, then just do this:

By default, this will install Ruby into /usr/local.To change, pass the --prefix=DIR option to the ./configure script.

You can find more information about building from source in theRuby README file.

Gentoo It Seems Your Ruby Installation Is Missing Psychic

Using the third-party tools or package managers might be a better idea,though, because the installed Ruby won’t be managed by any tools.

Coments are closed