Error - gem install knife-vsphere


#1

Hi

In my attempt to install “gem install knife-vsphere” on my Mac (*just picking
up with Chef).

encountered with below listed error.

After reviewing the mailing list, found that some of the folks had successfully
installed and moved on to create VM’s using this knife vsphere setup

Appreciate if you can share your insight to cross this hurdle.

Building native extensions. This could take a while…
ERROR: Error installing knife-vsphere:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby

extconf.rb
creating Makefile

make "DESTDIR="
compiling yajl.c
compiling yajl_alloc.c
compiling yajl_buf.c
compiling yajl_encode.c
compiling yajl_ext.c
compiling yajl_gen.c
yajl_gen.c:295:5: warning: implicit conversion from enumeration type
’yajl_gen_state’ to different enumeration type ‘yajl_gen_status’
[-Wenum-conversion]
DECREMENT_DEPTH;
^~~~~~~~~~~~~~~
yajl_gen.c:181:48: note: expanded from macro ‘DECREMENT_DEPTH’
if (–(g->depth) >= YAJL_MAX_DEPTH) return yajl_gen_error;
~~~~~~ ^~~~~~~~~~~~~~
yajl_gen.c:321:5: warning: implicit conversion from enumeration type
’yajl_gen_state’ to different enumeration type ‘yajl_gen_status’
[-Wenum-conversion]
DECREMENT_DEPTH;
^~~~~~~~~~~~~~~
yajl_gen.c:181:48: note: expanded from macro 'DECREMENT_DEPTH’
if (–(g->depth) >= YAJL_MAX_DEPTH) return yajl_gen_error;
~~~~~~ ^~~~~~~~~~~~~~
2 warnings generated.
compiling yajl_lex.c
compiling yajl_parser.c
compiling yajl_version.c
linking shared-object yajl/yajl.bundle
clang: error: unknown argument: ‘-multiply_definedsuppress’
[-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in
the future
make: *** [yajl.bundle] Error 1

Gem files will remain installed in
/Library/Ruby/Gems/2.0.0/gems/yajl-ruby-1.2.0 for inspection.
Results logged to
/Library/Ruby/Gems/2.0.0/gems/yajl-ruby-1.2.0/ext/yajl/gem_make.out

Thanks,
Chandu V