# Building on Solaris and trouble with missing libcrypt\_d

**URL:** <https://www.ruby-forum.com/t/building-on-solaris-and-trouble-with-missing-libcrypt-d/138813>\
**Category:** Ruby\
**Created:** [May 28, 2008, 12:54am UTC](https://www.ruby-forum.com/t/building-on-solaris-and-trouble-with-missing-libcrypt-d/138813 "2008-05-28T00:54:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![justinj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@justinj](https://www.ruby-forum.com/u/justinj)\
**Post date:** [May 28, 2008, 12:54am UTC](https://www.ruby-forum.com/t/building-on-solaris-and-trouble-with-missing-libcrypt-d/138813/1 "2008-05-28T00:54:29Z")

</div>

Hi,

I have a Solaris zone that I use to build Ruby on and then I deploy it  
to a production box. I’m finding that there are some differences  
between these boxes, which are causing ruby to not run correctly when  
copied to the production box.

I build ruby on the test box as follows.

cd ruby-1.8.6-p111  
./configure --prefix=/path/to/ruby  
make  
make install-all

It runs fine on the test box.

$ ruby --version  
ruby 1.8.6 (2007-09-24 patchlevel 111) [sparc-solaris2.10]

Then after I copy it to the same path on the production box I get the  
following error.

$ ruby --version  
libcrypt\_d.so.1: open failed: No such file or directory

The following files exist on the test box but not on the prod box.

/usr/lib/sparcv9/libcrypt\_d.so  
/usr/lib/sparcv9/libcrypt\_d.so.1  
/usr/lib/libcrypt\_d.so  
/usr/lib/libcrypt\_d.so.1

Does anyone have any ideas what the issue is and how to avoid it? I  
don’t have access to install these missing libraries, and my hope is  
that I can change some configure parameter to get around this.

Thanks,  
Justin

---

<div class="post-metadata">

**Author:** ![justinj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@justinj](https://www.ruby-forum.com/u/justinj)\
**Post date:** [May 28, 2008, 12:56am UTC](https://www.ruby-forum.com/t/building-on-solaris-and-trouble-with-missing-libcrypt-d/138813/2 "2008-05-28T00:56:39Z")

</div>

In case it helps…

$ uname -a  
SunOS test 5.10 Generic\_127111-08 sun4u sparc SUNW,Netra-T12

$ uname -a  
SunOS prod 5.10 Generic\_125100-07 sun4u sparc SUNW,Netra-T12

Justin J. wrote:

> Hi,
> 
> I have a Solaris zone that I use to build Ruby on and then I deploy it  
> to a production box. I’m finding that there are some differences  
> between these boxes, which are causing ruby to not run correctly when  
> copied to the production box.
> 
> I build ruby on the test box as follows.
> 
> cd ruby-1.8.6-p111  
> ./configure --prefix=/path/to/ruby  
> make  
> make install-all
> 
> It runs fine on the test box.
> 
> $ ruby --version  
> ruby 1.8.6 (2007-09-24 patchlevel 111) [sparc-solaris2.10]
> 
> Then after I copy it to the same path on the production box I get the  
> following error.
> 
> $ ruby --version  
> libcrypt\_d.so.1: open failed: No such file or directory
> 
> The following files exist on the test box but not on the prod box.
> 
> /usr/lib/sparcv9/libcrypt\_d.so  
> /usr/lib/sparcv9/libcrypt\_d.so.1  
> /usr/lib/libcrypt\_d.so  
> /usr/lib/libcrypt\_d.so.1
> 
> Does anyone have any ideas what the issue is and how to avoid it? I  
> don’t have access to install these missing libraries, and my hope is  
> that I can change some configure parameter to get around this.
> 
> Thanks,  
> Justin
