Building ruby on Solaris (without root permissions)

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

···

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

--
Posted via http://www.ruby-forum.com/.

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

···

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

Unfortunately I don't have another assembler I can use. Pity :frowning:

···

--
Posted via http://www.ruby-forum.com/.

Hello Daniel,

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.

By the way: Anybody here in the beta testing for Sun Studio 12?
http://groups.google.com/group/comp.programming.threads/browse_thread/thread/d822575cf6f61b32/90ff54423a09d5d5#90ff54423a09d5d5

I had some some problems with last version of sun studio. So it would be
nice if somebody can tell if it's worth to join and try out.

···

--
Best regards, emailto: scholz at scriptolutions dot com
Lothar Scholz http://www.ruby-ide.com
CTO Scriptolutions Ruby, PHP, Python IDE 's

There's still hope though. You can install a prefixed gcc tool chain
and use that to compile Ruby. I recently had to use a similar
construct to get Ruby/GSL working.

Installing gcc by yourself is a pain though, so I would recommend
using "prefixed Portage", which installs a version of Portage to deal
with all the details. This is what I ended up doing, though I run OS
X. See

http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml

'cid 'ooh

···

On Mar 8, 2:08 am, Jonathan Hopkinson <jonathan.hopkin...@rbos.com> wrote:

Unfortunately I don't have another assembler I can use. Pity :frowning: