From: Mark Slagell Date: 2001-02-23T21:23:57+09:00 Subject: [ruby-talk:11374] Re: HP-UX executable? "SHULTZ,BARRY (HP-Israel,ex1)" wrote: > ... > > Does anybody have an HP-UX (11.0) executable of the ruby > > interpreter? It > > You can compile it; here's a blade reference: > > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/~poffice/mail/ruby-talk/9379 > > Barry That advice can apply only after gcc is installed -- anyway I finally slogged through that and seem to have a functioning ruby interpreter. I'd given up on building gcc from source after a lot of frustration. Here's what worked: 1. get and compile GNU sed, put it in /usr/local/bin, put /usr/local/bin: at front of PATH. 2. get binaries of GNU binutils and gcc from hpux.cs.utah.edu, install them in /opt, put /opt/binutils/bin:/opt/gcc/bin: at front of PATH. 3. put symlinks in /opt/binutils/bin: libbfd-2.9.1.sl.0 -> libbfd-2.9.1.sl.0.0 libopcodes-2.9.1.sl.0 -> libopcodes-2.9.1.sl.0.0 4. ./configure ruby 1.6.2. 5. try 'make', but it dies with: gcc -g -O2 -Wl,-E main.o dmyext.o libruby.a -ldld -lcrypt -lm -o miniruby *** Termination signal 139 6. edit Makefile, set CFLAGS=-O, same result; try again with no optimizations, successful build. -- Mark