Eu tenho um problema ao instalar a gem ruby-augeas. (razão por trás disso, é assim que eu posso instalar stackstorm ... que interrompe a sua instalação devido a isso)
Após os erros / logs, parece que eu preciso fazer o downgrade (!) da libxml2.
Estou no caminho certo e como eu faria isso?
Ou é um caminho que precisa ser especificado? (mais uma vez, não faço ideia de como fazer isso!)
# gem install ruby-augeas
Building native extensions. This could take a while...
ERROR: Error installing ruby-augeas:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby -r ./siteconf20160226-16394-1492ywl.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
--with-augeas-config
--without-augeas-config
--with-pkg-config
--without-pkg-config
extconf.rb:27:in '<main>': augeas-devel not installed (RuntimeError)
extconf failed, exit code 1
Gem files will remain installed in /usr/local/lib/ruby/gems/2.2.0/gems/ruby-augeas-0.5.0 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0/ruby-augeas-0.5.0/gem_make.out
Eu tenho augeas-devel
instalado.
# yum install augeas-devel
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* epel: linux.mirrors.es.net
Package augeas-devel-1.0.0-10.el6.x86_64 already installed and latest version
Nothing to do
O mkmf.log (o que eu acho correto) diz:
"gcc -o conftest -I/usr/local/include/ruby-2.2.0/x86_64-linux -I/usr/local/include/ruby-2.2.0/ruby/backward -I/usr/local/include/ruby-2.2.0 -I. -I/usr/local/lib/include -fPIC -fPIC conftest.c -L/usr/local/lib/lib -Wl,-R/usr/local/lib/lib -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib64 -L/usr/local/lib -Wl,-R/usr/local/lib64 -Wl,-R/usr/local/lib -fstack-protector -rdynamic -Wl,-export-dynamic -L/usr/local/lib/lib -Wl,-R/usr/local/lib/lib -Wl,-R/usr/local/lib -L/usr/local/lib -lruby -lpthread -lrt -ldl -lcrypt -lm -lc"
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
"gcc -o conftest -I/usr/local/include/ruby-2.2.0/x86_64-linux -I/usr/local/include/ruby-2.2.0/ruby/backward -I/usr/local/include/ruby-2.2.0 -I. -I/usr/local/lib/include -fPIC -fPIC conftest.c -L/usr/local/lib/lib -Wl,-R/usr/local/lib/lib -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib64 -L/usr/local/lib -Wl,-R/usr/local/lib64 -Wl,-R/usr/local/lib -fstack-protector -rdynamic -Wl,-export-dynamic -L/usr/local/lib/lib -Wl,-R/usr/local/lib/lib -Wl,-R/usr/local/lib -L/usr/local/lib -lruby -laugeas -lpthread -lrt -ldl -lcrypt -lm -lc"
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/lib/../lib64/libaugeas.so: undefined reference to 'xmlSetProp@LIBXML2_2.4.30'
/usr/lib/../lib64/libaugeas.so: undefined reference to 'xmlNewChild@LIBXML2_2.4.30'
/usr/lib/../lib64/libaugeas.so: undefined reference to 'xmlFreeNode@LIBXML2_2.4.30'
/usr/lib/../lib64/libaugeas.so: undefined reference to 'xmlNewNode@LIBXML2_2.4.30'
/usr/lib/../lib64/libaugeas.so: undefined reference to 'xmlFree@LIBXML2_2.4.30'
/usr/lib/../lib64/libaugeas.so: undefined reference to 'xmlNewTextChild@LIBXML2_2.4.30'
/usr/lib/../lib64/libaugeas.so: undefined reference to 'xmlElemDump@LIBXML2_2.4.30'
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
package configuration for augeas is not found
Então, parece que eu preciso de LIBXML2_2.4.30
, mas tenho 2.7.6-20
instalado. Preciso fazer o downgrade? como eu faço isso?
# yum install libxml2
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* epel: linux.mirrors.es.net
Package libxml2-2.7.6-20.el6.x86_64 already installed and latest version
Nothing to do
Muito obrigado! por favor me avise se mais registros / comandos precisarem ser colados aqui.