# Segmentation fault installing ruby1.9 together with 1.8

**URL:** <https://www.ruby-forum.com/t/segmentation-fault-installing-ruby1-9-together-with-1-8/180000>\
**Category:** Ruby\
**Created:** [December 9, 2009, 2:34pm UTC](https://www.ruby-forum.com/t/segmentation-fault-installing-ruby1-9-together-with-1-8/180000 "2009-12-09T14:34:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![artchrst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Post date:** [December 9, 2009, 2:34pm UTC](https://www.ruby-forum.com/t/segmentation-fault-installing-ruby1-9-together-with-1-8/180000/1 "2009-12-09T14:34:35Z")

</div>

I have an existing ruby1.8.7 in my computer.

I’ve tried to install ruby 1.9 from source or apt-get in my ubuntu.

But it returned segmentation fault in both case.

I’ve checked the /var/log/kern.log:

ruby1.9[4553]: segfault at 4 ip 00fb4202 sp bfb75254 error 4 in  
ld-2.10.1.so[faa000+1b000]

What should I do?

Thanks,  
Arthur

---

<div class="post-metadata">

**Author:** ![artchrst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Post date:** [December 9, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/segmentation-fault-installing-ruby1-9-together-with-1-8/180000/2 "2009-12-09T16:42:49Z")

</div>

Arthur C. wrote:

> I’ve tried to install ruby 1.9 from source or apt-get in my ubuntu.
> 
> But it returned segmentation fault in both case.
> 
> I’ve checked the /var/log/kern.log:
> 
> ruby1.9[4553]: segfault at 4 ip 00fb4202 sp bfb75254 error 4 in  
> ld-2.10.1.so[faa000+1b000]
> 
> What should I do?

Be more specific:

- what exactly did you type?
- what exactly did you see?
- when exactly did this happen?

For example, are you getting this segfault when you compile ruby 1.9, or  
when you run an application? If so, what’s the application? Does that  
application use any gems? Are any of those gems ‘native’ gems (i.e.  
compile C code)? Are those gems all known to work with ruby 1.9?

> **[OPE体育下载, OPE体育电竞, 大辛辛那提OPE体育电竞](http://www.isitruby19.com/)**
>
> 世界事务理事会, 501 (c) 3非盈利, 是连接世界和美国最具活力的地区之一的桥梁吗. 通过OPE体育下载, 国际交流, 以及文化意识倡议, 该委员会加强了辛辛那提和北肯塔基州的国际身份，并让个人参与外交事务.

See also [How To Ask Questions The Smart Way](http://www.catb.org/~esr/faqs/smart-questions.html#intro)

Also consider why you are running 1.9. If stability and/or compatibility  
are important to you, then I’d suggest you stick with 1.8.x

---

<div class="post-metadata">

**Author:** ![artchrst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Post date:** [December 10, 2009, 3:01am UTC](https://www.ruby-forum.com/t/segmentation-fault-installing-ruby1-9-together-with-1-8/180000/3 "2009-12-10T03:01:22Z")

</div>

Brian C. wrote:

> Arthur C. wrote:
> 
> > I’ve tried to install ruby 1.9 from source or apt-get in my ubuntu.
> > 
> > But it returned segmentation fault in both case.
> > 
> > I’ve checked the /var/log/kern.log:
> > 
> > ruby1.9[4553]: segfault at 4 ip 00fb4202 sp bfb75254 error 4 in  
> > ld-2.10.1.so[faa000+1b000]
> > 
> > What should I do?
> 
> Be more specific:
> 
> - what exactly did you type?
> - what exactly did you see?
> - when exactly did this happen?
> 
> For example, are you getting this segfault when you compile ruby 1.9, or  
> when you run an application? If so, what’s the application? Does that  
> application use any gems? Are any of those gems ‘native’ gems (i.e.  
> compile C code)? Are those gems all known to work with ruby 1.9?  
> [http://isitruby19.com/](http://isitruby19.com/)
> 
> See also [How To Ask Questions The Smart Way](http://www.catb.org/~esr/faqs/smart-questions.html#intro)
> 
> Also consider why you are running 1.9. If stability and/or compatibility  
> are important to you, then I’d suggest you stick with 1.8.x

Hi Brian,

Thanks for your help. The Seg fault happens just after my “ruby1.9”  
command.

And you’re right, I don’t wanna upgrade 1.9 neither.

But when I faced my charset big5 vs utf-8 problem, I found that it may  
be quicker to solve the ruby 1.9 problem instead of converting the  
strings to big5.

And I solved the seg fault problem not.

I don’t know the source of problem but my fix is:

remove all ruby1.9 in my dpkg install and make sure from my source  
install “type make uninstall in the source folder”

remove all gems.

reinstall ruby1.9 from source.

reinstall gems by ruby1.9

Then work!  
Arthur
