Building ruby on Solaris (without root permissions).

J

Jonathan

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
 
D

Daniel Berger

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
 
L

Lothar Scholz

Hello Daniel,


DB> This looks like the sort of error that I've run into in the past when
DB> I was mixing Sun's utilities with gcc. In this case you're using /usr/
DB> ccs/bin/as.

DB> My recommendation is to either build using Sun's compiler (which is
DB> free, btw) and ditch gcc on Solaris altogether. If that's not an
DB> option, then you need to make sure the GNU utilities are first in your
DB> PATH, including make (perhaps use gmake), as (assuming there's a GNU
DB> version of as), etc.

By the way: Anybody here in the beta testing for Sun Studio 12?
http://groups.google.com/group/comp...75cf6f61b32/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.
 
P

poopdeville

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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top