Maybe it's not in your $PATH ? Try:
export PATH=$PATH:$JAVA_HOME/bin And let us know how that turns out, please. Antoine On Tue, Mar 6, 2012 at 17:54, Ed Smiley <esmi...@ebrary.com> wrote: > yea it is there > $ echo $JAVA_HOME > /usr/java/default > > $ ls /usr/java/default/bin/javah > /usr/java/default/bin/javah > > > $ java -version > java version "1.6.0_27" > Java(TM) SE Runtime Environment (build 1.6.0_27-b07) > Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode) > > $ ls /usr/java/default/include/ > classfile_constants.h jawt.h jdwpTransport.h jni.h jvmti.h linux > > > On Tue, Mar 6, 2012 at 5:50 PM, Antoine Toulme <anto...@lunar-ocean.com>wrote: > >> 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 >> > >> > > > > -- > 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 > > > > > >