Using Antwrap in Ruby


S

Srinivasa Rao

Hi ,

I am trying to install Antwrap-0.7.0.gem and rjb-1.1.x gems in cygwin
and windows also , I'm stuck so I thought I ping out to see if anyone
else has done
this. Last one week i have been working on issue .Any help would be
appreciated.

Error states that in this below manner.
--------------------------------------------------------
$ gem install Antwrap-0.7.0.gem
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
Building native extensions. This could take a while...
ERROR: Error installing Antwrap-0.7.0.gem:
ERROR: Failed to build gem native extension.

/usr/bin/ruby.exe extconf.rb install Antwrap-0.7.0.gem
checking for jni.h... no
*** 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
--without-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/bin/ruby


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rjb-1.1.3
for ins
pection.
Results logged to /usr/lib/ruby/gems/1.8/gems/rjb-1.1.3/ext/gem_make.out



Here's the ext/mkmf.log file


have_header: checking for jni.h... -------------------- no

"gcc -E -I. -I/usr/lib/ruby/1.8/i386-cygwin -I. -IC:\Program
Files\Java\jdk1.5.0_11/include -IC:\Program
Files\Java\jdk1.5.0_11/include/win32 -g -O2 -IC:\Program
Files\Java\jdk1.5.0_11/include -IC:\Program
Files\Java\jdk1.5.0_11/include/win32 conftest.c -o conftest.i"
gcc: FilesJavajdk1.5.0_11/include: No such file or directory
gcc: FilesJavajdk1.5.0_11/include/win32: No such file or directory
gcc: FilesJavajdk1.5.0_11/include: No such file or directory
gcc: FilesJavajdk1.5.0_11/include/win32: No such file or directory
In file included from conftest.c:1:
/usr/lib/ruby/1.8/i386-cygwin/jni.h:27:20: jni_md.h: No such file or
directory
checked program was:
/* begin */
1: #include <jni.h>
/* end */



Regards,
M.SrinivasaRao.
 
Ad

Advertisements

S

Srinivasa Rao

Hi Caleb,

Thank for your helpful suggestions.

Installed rjb and antwrap successfully.Started working on antwrap.

My code is below.
-----------------

options = {:ant_home=>"D://apache-ant-1.7.1", :name=>'BotServer',
:basedir=>"C://InstantRails-1.3a-with-PHP-5.1.4//InstantRails//rails_apps",
:declarative=> true, :logger=> Logger.new(STDOUT),
:loglevel=> Logger::DEBUG}
puts "options------------------------------1"
antProject = AntProject.new(options)
antTask = AntTask.new('ws-run -DD=PRnnn', antProject, {:debug
=> 'on', :verbose => 'no', :fork => 'no'})
puts "before task------------------------------"
antTask.execute()




While running i am facing problems.
-----------------------------------

-> up to options i was able to execute.
-> then i am getting error in this below manner (debugger not at all
excecute ant project code.)

My varaiables shows this value for creating instance for AntProject
--------------------------------------------------------------------
exception uninitialized constant TestRunsController::AntProject
@blamed_files Empty Array
md nil
msg nil
origin_file nil
origin_line nil

Here TestRunsController is my controller.


Could you please help me in this regard.



-----------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top