Gem install knife-azure errors

Hi Folks,

I am installing a knife-azure plugin using gem to make API calls to Azure
for listing,
creating and deleting instances. But I get too many dependencies error.
One of them was rspec so I installed it, i now get another error message
saying
ffi.h is missing. Here is the error that was thrown on the console -

[root@test ~]# gem install ffi
Building native extensions. This could take a while...
..
.
ERROR: Error installing ffi:
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()... no
checking for rb_thread_call_with_gvl()... no
checking for rb_thread_call_without_gvl()... no
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

make
Configuring libffi
/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/libffi/configure: line 550:
0: Bad file descriptor
make: ***
["/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/libffi-x86_64-linux"/.libs/libffi_convenience.a]
Error 1

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ffi-1.8.1
for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/gem_make.out

How can I resolve this ?

Thank you,

--
Ashutosh Narayan

Hi,

I tried installing FFI from the GIT repository -

But when I execute rake gem:install it says [warn] YARD unavailable.
So I install YARD gem and again run rake gem:install, i still get the
below error :

[warn] YARD unavailable
rake aborted!
Don't know how to build task 'gem:install'

(See full trace by running task with --trace)

Any pointers ?

On Fri, May 24, 2013 at 2:59 PM, Ashutosh Narayan <
aashutoshnarayan@gmail.com> wrote:

Hi Folks,

I am installing a knife-azure plugin using gem to make API calls to Azure
for listing,
creating and deleting instances. But I get too many dependencies error.
One of them was rspec so I installed it, i now get another error message
saying
ffi.h is missing. Here is the error that was thrown on the console -

[root@test ~]# gem install ffi
Building native extensions. This could take a while...
..
.
ERROR: Error installing ffi:
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()... no
checking for rb_thread_call_with_gvl()... no
checking for rb_thread_call_without_gvl()... no
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

make
Configuring libffi
/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/libffi/configure: line
550: 0: Bad file descriptor
make: ***
["/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/libffi-x86_64-linux"/.libs/libffi_convenience.a]
Error 1

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ffi-1.8.1
for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/gem_make.out

How can I resolve this ?

Thank you,

--
Ashutosh Narayan

http://ashutoshn.wordpress.com/

--
Ashutosh Narayan

I was able to fix it.
Instead of running "rake gem:install" , I ran "rake install"
It installed FFI gem

On Fri, May 24, 2013 at 6:25 PM, Ashutosh Narayan <
aashutoshnarayan@gmail.com> wrote:

Hi,

I tried installing FFI from the GIT repository -
GitHub - ffi/ffi: Ruby FFI
But when I execute rake gem:install it says [warn] YARD unavailable.
So I install YARD gem and again run rake gem:install, i still get the
below error :

[warn] YARD unavailable
rake aborted!
Don't know how to build task 'gem:install'

(See full trace by running task with --trace)

Any pointers ?

On Fri, May 24, 2013 at 2:59 PM, Ashutosh Narayan <
aashutoshnarayan@gmail.com> wrote:

Hi Folks,

I am installing a knife-azure plugin using gem to make API calls to Azure
for listing,
creating and deleting instances. But I get too many dependencies error.
One of them was rspec so I installed it, i now get another error message
saying
ffi.h is missing. Here is the error that was thrown on the console -

[root@test ~]# gem install ffi
Building native extensions. This could take a while...
..
.
ERROR: Error installing ffi:
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()... no
checking for rb_thread_call_with_gvl()... no
checking for rb_thread_call_without_gvl()... no
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

make
Configuring libffi
/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/libffi/configure: line
550: 0: Bad file descriptor
make: ***
["/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/libffi-x86_64-linux"/.libs/libffi_convenience.a]
Error 1

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ffi-1.8.1
for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/gem_make.out

How can I resolve this ?

Thank you,

--
Ashutosh Narayan

http://ashutoshn.wordpress.com/

--
Ashutosh Narayan

http://ashutoshn.wordpress.com/

--
Ashutosh Narayan

Try using bundler to install knife-azure (and dependencies).

$ cat > Gemfile
source 'https://rubygems.org'
gem 'knife-azure'
^D
$ bundle install

Cheers,

AJ

On 25 May 2013 01:27, Ashutosh Narayan aashutoshnarayan@gmail.com wrote:

I was able to fix it.
Instead of running "rake gem:install" , I ran "rake install"
It installed FFI gem

On Fri, May 24, 2013 at 6:25 PM, Ashutosh Narayan
aashutoshnarayan@gmail.com wrote:

Hi,

I tried installing FFI from the GIT repository -
GitHub - ffi/ffi: Ruby FFI
But when I execute rake gem:install it says [warn] YARD unavailable.
So I install YARD gem and again run rake gem:install, i still get the
below error :

[warn] YARD unavailable
rake aborted!
Don't know how to build task 'gem:install'

(See full trace by running task with --trace)

Any pointers ?

On Fri, May 24, 2013 at 2:59 PM, Ashutosh Narayan
aashutoshnarayan@gmail.com wrote:

Hi Folks,

I am installing a knife-azure plugin using gem to make API calls to Azure
for listing,
creating and deleting instances. But I get too many dependencies error.
One of them was rspec so I installed it, i now get another error message
saying
ffi.h is missing. Here is the error that was thrown on the console -

[root@test ~]# gem install ffi
Building native extensions. This could take a while...
..
.
ERROR: Error installing ffi:
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()... no
checking for rb_thread_call_with_gvl()... no
checking for rb_thread_call_without_gvl()... no
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

make
Configuring libffi
/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/libffi/configure: line
550: 0: Bad file descriptor
make: ***
["/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/libffi-x86_64-linux"/.libs/libffi_convenience.a]
Error 1

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ffi-1.8.1
for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/gem_make.out

How can I resolve this ?

Thank you,

--
Ashutosh Narayan

http://ashutoshn.wordpress.com/

--
Ashutosh Narayan

http://ashutoshn.wordpress.com/

--
Ashutosh Narayan

http://ashutoshn.wordpress.com/

Yes, I did use bundler to install knife-azure

On Sat, May 25, 2013 at 4:18 AM, AJ Christensen aj@junglist.gen.nz wrote:

Try using bundler to install knife-azure (and dependencies).

$ cat > Gemfile
source 'https://rubygems.org'
gem 'knife-azure'
^D
$ bundle install

Cheers,

AJ

On 25 May 2013 01:27, Ashutosh Narayan aashutoshnarayan@gmail.com wrote:

I was able to fix it.
Instead of running "rake gem:install" , I ran "rake install"
It installed FFI gem

On Fri, May 24, 2013 at 6:25 PM, Ashutosh Narayan
aashutoshnarayan@gmail.com wrote:

Hi,

I tried installing FFI from the GIT repository -
GitHub - ffi/ffi: Ruby FFI
But when I execute rake gem:install it says [warn] YARD unavailable.
So I install YARD gem and again run rake gem:install, i still get the
below error :

[warn] YARD unavailable
rake aborted!
Don't know how to build task 'gem:install'

(See full trace by running task with --trace)

Any pointers ?

On Fri, May 24, 2013 at 2:59 PM, Ashutosh Narayan
aashutoshnarayan@gmail.com wrote:

Hi Folks,

I am installing a knife-azure plugin using gem to make API calls to
Azure
for listing,
creating and deleting instances. But I get too many dependencies error.
One of them was rspec so I installed it, i now get another error
message
saying
ffi.h is missing. Here is the error that was thrown on the console -

[root@test ~]# gem install ffi
Building native extensions. This could take a while...
..
.
ERROR: Error installing ffi:
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()... no
checking for rb_thread_call_with_gvl()... no
checking for rb_thread_call_without_gvl()... no
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

make
Configuring libffi
/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/libffi/configure: line
550: 0: Bad file descriptor
make: ***

["/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/libffi-x86_64-linux"/.libs/libffi_convenience.a]

Error 1

Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1
for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/ffi-1.8.1/ext/ffi_c/gem_make.out

How can I resolve this ?

Thank you,

--
Ashutosh Narayan

http://ashutoshn.wordpress.com/

--
Ashutosh Narayan

http://ashutoshn.wordpress.com/

--
Ashutosh Narayan

http://ashutoshn.wordpress.com/

--
Ashutosh Narayan