Package Details: rbenv 1.1.2-1

Git Clone URL: (read-only, click to copy)
Package Base: rbenv
Description: Simple Ruby version manager
Upstream URL:
Licenses: MIT
Conflicts: rbenv-git
Submitter: mirlord
Maintainer: cdown
Last Packager: cdown
Votes: 124
Popularity: 1.55
First Submitted: 2011-08-29 11:57
Last Updated: 2019-05-02 16:26

Dependencies (1)

Required by (2)

Sources (1)

Latest Comments

1 2 3 Next › Last »

Badderman commented on 2021-02-13 11:28

Run "rbenv rehash" hooks automatically after "gem install/uninstall":

diff --git a/PKGBUILD b/PKGBUILD
index 1868d44..bed28d7 100644
@@ -31,11 +31,14 @@ package() {
   mkdir -p $pkgdir/usr/share/licenses/$pkgname
   mkdir -p $pkgdir/usr/lib/rbenv/completions
   mkdir -p $pkgdir/usr/lib/rbenv/libexec
+  mkdir -p $pkgdir/usr/lib/rbenv/hooks

   install -m 644 ./ $pkgdir/usr/share/doc/$pkgname
   install -m 644 ./LICENSE $pkgdir/usr/share/licenses/$pkgname
   install -m 644 ./completions/* $pkgdir/usr/lib/rbenv/completions/
   install -m 755 ./libexec/* $pkgdir/usr/lib/rbenv/libexec/
+  cp -r ./rbenv.d/* $pkgdir/usr/lib/rbenv/hooks/
+  chmod -R 755 $pkgdir/usr/lib/rbenv/hooks/

   ln -s /usr/lib/rbenv/libexec/rbenv $pkgdir/usr/bin/

doompatrol commented on 2018-11-27 17:51

Note to self & others: "rbenv install" is provided by "ruby-build". Mentioning this cause I am using kitchen-salt and it wasn't clear that it was a separate package.

cdown commented on 2017-07-08 07:35

@Munto If you're using `rbenv install`, $PATH should be set up automatically, so no changes are needed as far as I can tell. I just tried `rbenv install 2.4.0` with no issues.

Munto commented on 2017-05-23 00:38

rbenv-install needs rbenv-hooks to work at line 136
"IFS=$'\n' scripts=(`rbenv-hooks install`)"

It may be worthwhile to add a symlink to this script.
ln -s /usr/lib/rbenv/libexec/rbenv-hooks $pkgdir/usr/bin/

cdown commented on 2016-07-25 08:09

If you're using rbenv already, why aren't you using bundler or the like? You shouldn't really be installing system packages in the hopes of using them with a non-system Ruby.

zonotope commented on 2016-07-21 15:29

@cdown what do you think about adding `provides=('ruby')` to the pckgbuild?

zonotope commented on 2016-07-21 15:25

@voyd, That is not true. RbEnv is written in a combination of bash and c: RBenv is not dependent on ruby being installed at all.

I agree with @huma and @zrl. The rbenv package should definitely provide ruby because bringing in any package with ruby as a dependency will install another ruby version outside of rbenv, and that screws with paths in all kinds of ways.

cdown commented on 2016-04-14 10:11

Changed URI without pkgver bump (since it's a noop).

mark.sagikazar commented on 2016-03-21 15:41

Upstream URL has changed:

voyd commented on 2015-11-30 16:51

rbenv is a pretty active project, but it stopped tagging releases. Version 0.4.0 was released in January 2013. I'd advise everybody to switch to rbenv-git, which pulls the latest version. (Disclaimer: I wrote the rbenv-git package because of this)