Package Details: ruby-parser

Git Clone URL: (read-only, click to copy)
Package Base: ruby-parser
Description: A Ruby parser written in pure Ruby
Upstream URL:
Licenses: MIT
Submitter: joschi
Maintainer: supermario
Last Packager: supermario
Votes: 5
Popularity: 0.000000
First Submitted: 2013-11-26 22:27 (UTC)
Last Updated: 2022-09-12 19:42 (UTC)

Latest Comments

alve commented on 2021-04-13 09:45 (UTC)

build() fails for me on two devices..

ragel -F1 -R lib/parser/lexer.rl -o lib/parser/lexer.rb
racc --superclass=Parser::Base lib/parser/ruby18.y -o lib/parser/ruby18.rb --no-line-convert
rake aborted!
Command failed with status (127): [racc --superclass=Parser::Base lib/parser/...]
/home/alve/.cache/yay/ruby-parser/src/parser- `block in <top (required)>'
Tasks: TOP => generate => lib/parser/ruby18.rb
(See full trace by running task with --trace)

anwait commented on 2021-01-20 20:30 (UTC) (edited on 2021-01-31 21:34 (UTC) by anwait)

package() failed for me with the following message:

ERROR:  While executing gem ... (Errno::ENOENT)
    No such file or directory @ dir_s_mkdir - /tmp/trizen-anwait/ruby-parser/pkg/ruby-parser/usr/bin

additionally the build step is throwing a lot of errors in regards to open ended dependencies


Fixed it, my problem was that I had set GEM_HOME inside my shell rc file which set the Installation directory for gem to my user installation directory and thus fucked up the generated path inside the PKGBUILD.

misaflo commented on 2021-01-18 08:16 (UTC)

I made a mistake, it just need ruby-rake.

supermario commented on 2021-01-17 22:06 (UTC)

@Carif can you share the error message that you received? I am able to build this package in a clean chroot without it

misaflo commented on 2021-01-17 15:16 (UTC)

I had to install ruby-rake-compiler to build the package.

zed123 commented on 2020-10-07 17:38 (UTC)

I have the same issue with LICENSE.txt..

kris7t commented on 2020-10-07 17:28 (UTC)

Build failed for me with

install: cannot stat '/home/kris/.cache/yay/ruby-parser/pkg/ruby-parser//usr/lib/ruby/gems/2.7.0/gems/parser-': No such file or directory

aleextra commented on 2018-04-27 12:44 (UTC) (edited on 2018-04-27 12:48 (UTC) by aleextra)

I was not able to install without editing PKGBUILD and adding:

mkdir -p $pkgdir/usr/bin


package() {
local _gemdir="$(ruby -e'puts Gem.default_dir')"
mkdir -p $pkgdir/usr/bin
gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

ClawOfLight commented on 2018-02-14 09:22 (UTC)

doesn't build without rdoc, please add it as makedepend or build with --no-document