Package Details: ruby-build 20221225-2

Git Clone URL: https://aur.archlinux.org/ruby-build.git (read-only, click to copy)
Package Base: ruby-build
Description: Compile and install Ruby
Upstream URL: https://github.com/rbenv/ruby-build
Licenses: MIT
Submitter: None
Maintainer: saghm
Last Packager: saghm
Votes: 97
Popularity: 0.79
First Submitted: 2011-12-26 13:37 (UTC)
Last Updated: 2023-01-24 04:09 (UTC)

Dependencies (3)

Required by (2)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

saghm commented on 2023-01-24 04:02 (UTC)

From looking into this, it seems like most of the other versions of Ruby besides mri (e.g. jruby and truffleruby) still install fine without libyaml. These all report versions below 3.2.0 when invoking ruby -v though, so it's possible that they might break without this in the future.

For now, I'm thinking that I should add it as an optional dependency and mention that it's required for recent versions of mri.

saghm commented on 2023-01-23 22:21 (UTC)

Interesting! Let me look into this and confirm before adding it (but I suspect you're correct)

synthead commented on 2023-01-23 03:33 (UTC)

Ruby 3.2.0 doesn't build (and probably run) without libyaml. This probably affects other versions, too. Can you add it as a dep?

nyi commented on 2022-11-07 10:37 (UTC)

Not so sure if this is the right place, but it might help someone struggling with failing Ruby builds due to the openssl extension.

I got the following now:

The Ruby openssl extension was not compiled.
ERROR: Ruby install aborted due to missing extensions

It seems Ruby doesn't work with OpenSSL 3 yet. Install core/openssl-1.1 and then install Ruby as:

PKG_CONFIG_PATH=/usr/lib/openssl-1.1/pkgconfig rbenv install 3.1.2

just1602 commented on 2020-12-25 21:30 (UTC)

Here the diff you need to apply if you want the latest version and try ruby 3.0.0:

diff --git a/PKGBUILD b/PKGBUILD
index e763ee7..b5a68a9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 # Contributer: Vincent Demeester <vincent@sbr.io>
 # Contributer: Alex Ogier <alex.ogier@gmail.com>
 pkgname=ruby-build
-pkgver=20201221
+pkgver=20201225
 pkgrel=1
 _file="${pkgname}-v${pkgver}.tar.gz"
 pkgdesc="Compile and install Ruby"
@@ -13,7 +13,7 @@ license=('MIT')
 depends=('bash')
 optdepends=('git: install ruby from git')
 source=($_file::$url/archive/v$pkgver.tar.gz)
-sha512sums=('6f31056ea50b7e2bc104d83d53c0a77fac89ccc5efd04fa2515b1b7b6962ba75cc472ee6452a51ca023f61cea0394ba2f4212d52df9bdd7cfdbcdfc38d6db274')
+sha512sums=('bdfe55bbe2384b82076c3433436d0f2527fcdfbfc6395cdaa3613cdb8c1f0cdd2717566e75f6c1d56f857ea54cbe303658e58be0dfc7bdc876c4c1825a9ecc76')

 build() {
   cd $srcdir

saghm commented on 2020-09-29 17:30 (UTC)

Sorry about the issue! I've pushed a new version that should now be working; let me know if it doesn't

whi-tw commented on 2020-09-29 11:18 (UTC) (edited on 2020-09-29 11:18 (UTC) by whi-tw)

Confirmed working with the same solution as @nyi:

 8  ⋮    │-_file="${pkgname}-v${pkgver}.tar.gz"
    ⋮ 8  │+_file="v${pkgver}.tar.gz"

Xanarion commented on 2020-09-29 08:20 (UTC) (edited on 2020-09-29 08:20 (UTC) by Xanarion)

I don't understand how this would unless you change the build() section to:

build() {
  cd $srcdir
  tar -x --strip-components 1 -zf "v${pkgver}.tar.gz"
}

If you don't make the change above - you get the error that states:

ruby-build-v20200926.tar.gz: Cannot open: No such file or directory

nyi commented on 2020-09-29 08:15 (UTC)

The downloaded file is now called v20200926.tar.gz instead of ruby-build-v20200926.tar.gz.

You can fix the build by changing the following line in PKGBUILD:

- _file="${pkgname}-v${pkgver}.tar.gz"
+ _file="v${pkgver}.tar.gz"

kfl62 commented on 2020-09-29 05:18 (UTC)

==> Starting build()... tar (child): ruby-build-v20200926.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now ==> ERROR: A failure occurred in build(). Aborting... error making: ruby-build