# Building ruby on Solaris (without root permissions)

**URL:** <https://www.ruby-forum.com/t/building-ruby-on-solaris-without-root-permissions/88011>\
**Category:** Ruby\
**Created:** [March 7, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/building-ruby-on-solaris-without-root-permissions/88011 "2007-03-07T15:32:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [March 7, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/building-ruby-on-solaris-without-root-permissions/88011/1 "2007-03-07T15:32:30Z")

</div>

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

* * *

---

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [March 7, 2007, 4:35pm UTC](https://www.ruby-forum.com/t/building-ruby-on-solaris-without-root-permissions/88011/2 "2007-03-07T16:35:54Z")

</div>

On Mar 7, 7:32 am, Jonathan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> make[1]: Entering 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

---

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [March 8, 2007, 11:08am UTC](https://www.ruby-forum.com/t/building-ruby-on-solaris-without-root-permissions/88011/3 "2007-03-08T11:08:44Z")

</div>

Unfortunately I don’t have another assembler I can use. Pity ☹

---

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [March 8, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/building-ruby-on-solaris-without-root-permissions/88011/4 "2007-03-08T23:02:20Z")

</div>

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.programming.threads/browse\_thread/thread/d822575cf6f61b32/90ff54423a09d5d5#90ff54423a09d5d5](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.

---

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [March 9, 2007, 5:41am UTC](https://www.ruby-forum.com/t/building-ruby-on-solaris-without-root-permissions/88011/5 "2007-03-09T05:41:01Z")

</div>

On Mar 8, 2:08 am, Jonathan H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 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](http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml)

'cid 'ooh
