You are not logged in.
Packages that require certain Ruby gems fail to build for me. For example, if I try to install the current gitlab package from the AUR I get this error message:
An error occurred while installing rugged (0.22.2), and Bundler cannot continue.
Make sure that `gem install rugged -v '0.22.2'` succeeds before bundling.Installing rugged 0.22.2 doesn't seem to fix this. It installs but the gitlab build still fails.
$ gem install rugged -v '0.22.2'
Building native extensions. This could take a while...
Successfully installed rugged-0.22.2
1 gem installedWhat I can do to fix this is change the PKGBUILD and insert a command to install rugged 0.22.2 before building.
# before this line the PKGBUILD is unchanged
prepare() {
gem install rugged -v 0.22.2
# after this line the PKGBUILD is unchangedThe package then builds and installs without complaint but I'm not clear on what's going on here so I don't know if I'm just masking the error. I can see that part of the build() function involves fetching Ruby gems but it doesn't fetch rugged.
I have rbenv installed if that's relevant. I know it aliases some common Ruby commands.
I also had a very similar situation with the metasploit package and some other Ruby gem -- I forget which.
Offline
I've always had problems building gitlab from the AUR with the same error as you, but I found that simply repeating makepkg several times does the trick and it will eventually build.
Possibly something to do with the mirror the gems come from timing out.
Last edited by Slithery (2015-07-23 17:16:40)
Offline
Weird, same gem too?
Offline
Most of the time yes, same gem.
I only found my solution because one time I tried to build, the error was for a different gem; this prompted me to keep retrying to see if I could figure out a pattern.
Last edited by Slithery (2015-07-23 19:07:44)
Offline