I am trying to get the server.rb sample from
https://qpid.apache.org/releases/qpid-0.32/messaging-api/ruby/examples/index.html
to work.  When I try to install the qpid_messaging gem I get
an error about being unable to find Logger.h.  It looks like
it is there to me?   It's probably user error but want to
make sure it's still a viable option and/or see if anyone
has a suggestion.  

Sequence of events:

--
# ruby ./server.rb
  <internal:lib/rubygems/custom_require>:29:in `require': no such file to load 
-- qpid_messaging (LoadError)
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from ./apache_ruby_server.rb:4:in `<main>'


# head ./server.rb
  #!/usr/bin/env ruby

  $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
  require 'qpid_messaging'


# gem install ./qpid_messaging-1.35.0.gem
  <lots of console text deleted>
  cqpid.cpp:24792: error: ???critical??? is not a member of 
???qpid::messaging???
  cqpid.cpp:24799: error: ???free_qpid_messaging_LoggerOutput??? was not 
declared in this scope
  make: *** [cqpid.o] Error 1

  Gem files will remain installed in 
/usr/lib64/ruby/gems/1.9.1/gems/qpid_messaging-1.35.0 for inspection.
  Results logged to 
/usr/lib64/ruby/gems/1.9.1/gems/qpid_messaging-1.35.0/ext/cqpid/gem_make.out
  
  
# less 
/usr/lib64/ruby/gems/1.9.1/gems/qpid_messaging-1.35.0/ext/cqpid/gem_make.out
  /usr/bin/ruby extconf.rb
  checking for main() in -lstdc++... yes
  checking for main() in -lstdc++... yes
  checking for main() in -lqpidclient... yes
  checking for main() in -lqpidcommon... yes
  checking for main() in -lqpidmessaging... yes
  checking for main() in -lqpidtypes... yes
  creating Makefile

  make
  g++ -I. -I/usr/include/ruby-1.9.1/x86_64-linux 
-I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I.   -fPIC 
-fPIC -fno-inline  -O2 -g -pipe -Wall 
-Wp,-D_F
  ORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
-mtune=generic -o cqpid.o -c cqpid.cpp
  cqpid.cpp:1868:35: error: qpid/messaging/Logger.h: No such file or directory
  cqpid.cpp: In function ???VALUE _wrap_new_Address__SWIG_0(int, VALUE*, 
VALUE)???:
  cqpid.cpp:2327: error: expected type-specifier
  cqpid.cpp:2327: error: expected unqualified-id before ???&??? token
  cqpid.cpp:2327: error: expected ???)??? before ???&??? token
  <deleted>
  
 
# find / -name Logger.h
  /usr/include/qpid/log/Logger.h
  /usr/src/debug/qpid-0.18/cpp/include/qpid/log/Logger.h
--

I tried some other things that I didn't document close enough to include here.

Is Ruby still supported?

RHEL 6.7
qpid 0.18-39 (using this to match customer environments)
Ruby 1.8.7 and/or 1.9.2p290

Thanks,
Gary
-- 
sque...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to