Daniel Berger
3/7/2007 3:32:00 PM
On Mar 7, 7:32 am, Jonathan <jonathan.hopkin...@rbos.com> wrote:
> I'm trying to install ruby under my home directory on a Solaris 5.8
> sparc machine.
>
> I ran ./configure with the --prefix switch to point to a directory
> ~/ruby
>
> and then ran /usr/local/bin/make to override the sun one on my path.
> That failed with the error below;
>
> Can anyone help me?
>
> EXTOBJS=ext/extinit.o ext/bigdecimal/bigdecimal.a ext/curses/curses.a
> ext/dbm/dbm.a ext/digest/digest.a ext/digest/md5/md5.a
> ext/digest/rmd160/rmd160.a ext/digest/sha1/sha1.a ext/digest/sha2/sha2.a
> ext/dl/dl.a ext/enumerator/enumerator.a ext/etc/etc.a ext/fcntl/fcntl.a
> ext/iconv/iconv.a ext/io/wait/wait.a ext/nkf/nkf.a ext/pty/pty.a
> ext/racc/cparse/cparse.a ext/sdbm/sdbm.a ext/socket/socket.a
> ext/stringio/stringio.a ext/strscan/strscan.a ext/syck/syck.a
> ext/syslog/syslog.a ext/zlib/zlib.a
> EXTLIBS=-lcurses -ltermcap -ldl -liconv -lsocket -lnsl -lz
> making ruby
> make[1]: Entering directory `/home/hopkinj/tmp/tmp/ruby-1.8.5-p12'
> gcc -g -O2 -DRUBY_EXPORT -I. -I. -oext/extinit.o -c ext/extinit.c
> /usr/ccs/bin/as: error: no input filename given
> usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
> [-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
> [-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
> [-m [-Ym,path]] [-n] [-ul] [-xF] [-xarch=v7] [-xarch=v8]
> [-xarch=v8a] [-xarch=v8plus] [-xarch=v8plusa] [-xarch=v8plusb]
> [-xarch=v9] [-xarch=v9a] [-xarch=v9b] [-xcode={pic13,pic32}] file.s...
> make[1]: *** [ext/extinit.o] Error 1
> make[1]: Leaving directory `/home/hopkinj/tmp/tmp/ruby-1.8.5-p12'
> make: *** [all] Error 2
This looks like the sort of error that I've run into in the past when
I was mixing Sun's utilities with gcc. In this case you're using /usr/
ccs/bin/as.
My recommendation is to either build using Sun's compiler (which is
free, btw) and ditch gcc on Solaris altogether. If that's not an
option, then you need to make sure the GNU utilities are first in your
PATH, including make (perhaps use gmake), as (assuming there's a GNU
version of as), etc.
Regards,
Dan