You are not logged in.

#1 2013-04-25 21:58:40

eso
Member
Registered: 2013-04-25
Posts: 12

[SOLVED] vagrant installation difficulties

preface : new to arch

I've had some trouble getting vagrant installed, and would really appreciate some pointers.

Installing via the AUR package / makepkg results in the following errors. I'm only including this for reference since this is specific to that package

➜~/Downloads/vagrant» makepkg                                              [17:48:12]
==> Making package: vagrant 1.2.2-1 (Thu Apr 25 17:48:13 EDT 2013)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> ruby-net-ssh>=2.6.6
  -> ruby-net-scp>=1.1.0
  -> ruby-erubis>=2.7.0
  -> ruby-i18n>=0.6.0
  -> ruby-log4r>=1.1.9
  -> ruby-childprocess>=0.3.7
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> ruby-bundler
==> ERROR: Could not resolve all dependencies.

Those appear to be ruby gems and not arch packages, but installing them did not resolve the dependencies (gem install x, y, z)

Onto installing from source (per instructions) :
https://github.com/mitchellh/vagrant/wi … rom-source

when running

 bundle install 

as per the instructions, the installer complains about missing ffi libraries :

Installing ffi (1.8.1) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb 
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... no
checking for rb_thread_blocking_region()... yes
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

make
sh: make: command not found


Gem files will remain installed in /home/eso/.bundler/tmp/4664/gems/ffi-1.8.1 for inspection.
Results logged to /home/eso/.bundler/tmp/4664/gems/ffi-1.8.1/ext/ffi_c/gem_make.out

I did install libffi :

sudo pacman -S libffi

However that did not resolve the dependencies.
There doesn't appear to be a separate -dev library.

Likewise, I attempted to create symlinks to the ffi.h files, e.g.

lrwxrwxrwx 1 root root 36 Apr 25 17:30 ffi.h -> /usr/lib/libffi-3.0.13/include/ffi.h

I really like arch as a distro, but I need vagrant running for work.
Any help would be greatly appreciated smile

Last edited by eso (2013-04-26 00:52:10)

Offline

#2 2013-04-25 22:22:31

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] vagrant installation difficulties

eso wrote:

Those appear to be ruby gems and not arch packages, but installing them did not resolve the dependencies (gem install x, y, z)

Those are packages, but they are also in the AUR, not the official repos. If you bypass pacman when installing gems, pacman won't know they are installed.

Offline

#3 2013-04-25 22:38:18

eso
Member
Registered: 2013-04-25
Posts: 12

Re: [SOLVED] vagrant installation difficulties

Raynman wrote:
eso wrote:

Those appear to be ruby gems and not arch packages, but installing them did not resolve the dependencies (gem install x, y, z)

Those are packages, but they are also in the AUR, not the official repos. If you bypass pacman when installing gems, pacman won't know they are installed.

sweet, that helps a lot!

this resolves most of the issues pertaining to that package (i.e. dependencies) with the exception of ruby-ffi

attempting to make the AUR package results in the same error as when running bundle on the ruby repo :

Building native extensions.  This could take a while...
ERROR:  Error installing ffi-1.7.0.gem:
	ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... no
checking for rb_thread_blocking_region()... yes
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

Offline

#4 2013-04-25 23:25:00

eso
Member
Registered: 2013-04-25
Posts: 12

Re: [SOLVED] vagrant installation difficulties

The documentation for the ruby ffi bindings request a libffi development library.
Ubuntu has one, but I wasn't able to locate one for arch (e.g. libffi-dev)

If it is in fact necessary, does one exist for arch or would I need to try to find one outside the main & aur packages?

libffi development library - this is commonly in the libffi-dev or libffi-devel

Offline

#5 2013-04-25 23:57:09

0X1A
Member
Registered: 2013-03-27
Posts: 43

Re: [SOLVED] vagrant installation difficulties

eso wrote:

The documentation for the ruby ffi bindings request a libffi development library.
Ubuntu has one, but I wasn't able to locate one for arch (e.g. libffi-dev)

If it is in fact necessary, does one exist for arch or would I need to try to find one outside the main & aur packages?

libffi development library - this is commonly in the libffi-dev or libffi-devel

Do you mean this?. It was in the multilib.

Offline

#6 2013-04-26 00:53:34

eso
Member
Registered: 2013-04-25
Posts: 12

Re: [SOLVED] vagrant installation difficulties

turns out just about everything in the output was meaningless, with the exception of this line :

sh: make: command not found

I completely disregarded it, but installing

sudo pacman -S make

did in fact resolve everything.

Would say I hope this helps someone else, but what I really hope is that no-one ever spends this much time because of an un-installed binary again smile

Last edited by eso (2013-04-26 01:36:40)

Offline

#7 2013-04-26 02:33:20

0X1A
Member
Registered: 2013-03-27
Posts: 43

Re: [SOLVED] vagrant installation difficulties

eso wrote:

Would say I hope this helps someone else, but what I really hope is that no-one ever spends this much time because of an un-installed binary again smile

Unfortunately that will never happen heh, glad you got it to work.

Offline

#8 2013-04-26 08:59:17

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] vagrant installation difficulties

You are expected to have the base-devel group installed before you start building packages.

https://wiki.archlinux.org/index.php/AUR#Prerequisites

Offline

Board footer

Powered by FluxBB