It looks like a problem with your java. javah is not found. You should make sure you are using the Sun JDK and that the whole JDK is installed.
HTH, Antoine On Tue, Mar 6, 2012 at 17:40, Ed Smiley <esmi...@ebrary.com> wrote: > Hi, > > I was supporting another developer in getting Buildr up and running. > So I am trying to assemble a _working_ plan of installation for supported > operating systems. > > So that I have a box I can mess around with and reproduce, I am starting > with our standard Linux image brought up with Java, Ruby and one of our > gems on AWS. > $uname -a > Linux [server name suppressed] 2.6.32-220.2.1.el6.x86_64 #1 SMP Thu Dec 22 > 11:15:52 CST 2011 x86_64 x86_64 x86_64 GNU/Linux > > If I do > > 0. $ sudo yum install ruby rubygems ruby-devel gcc > > 1. $ ls -l `which java` > > lrwxrwxrwx. 1 root root 22 Mar 6 19:50 /usr/bin/java -> > /etc/alternatives/java > > $ ls -l /etc/alternatives/java > > lrwxrwxrwx. 1 root root 26 Mar 6 19:50 /etc/alternatives/java -> > /usr/java/default/bin/java > > 2. $ JAVA_HOME=/usr/java/default > > $ export JAVA_HOME > > 3. $ sudo env JAVA_HOME=$JAVA_HOME gem install buildr > > > I get > > ERROR: Error installing buildr: > > ERROR: Failed to build gem native extension. > > /usr/bin/ruby extconf.rb > > checking for jni.h... yes > > checking for dl.h... yes > > checking for locale_charset() in iconv.h... no > > checking for nl_langinfo() in langinfo.h... yes > > checking for setlocale() in locale.h... yes > > checking for getenv()... yes > > creating extconf.h > > creating Makefile > > > make > > javah -classpath ../data/rjb jp.co.infoseek.hp.arton.rjb.RBridge > > make: javah: Command not found > > make: *** [jp_co_infoseek_hp_arton_rjb_RBridge.h] Error 127 > > Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rjb-1.3.3 > for inspection. > > Results logged to /usr/lib/ruby/gems/1.8/gems/rjb-1.3.3/ext/gem_make.out > > Any suggestions? I have tried bringing up this machine with and without > using the canned Buildr Linux installation script, and with and without the > update of ruby rubygems ruby-devel gcc. > > -- > Ed Smiley, Software Architect Sr > *e*brary | 410 Cambridge Avenue| Palo Alto, CA 94306 USA | > esmi...@ebrary.com > www.ebrary.com > *e*brary is a member of the ProQuest family of companies. > *ProQuest*...Start Here. 2011 InformationWeek Top Innovator >