HighDots Forums  

Segmentation Fault in Snow Leopard

Ruby On Rails Talk Ruby On Rails programming language mailing list


Discuss Segmentation Fault in Snow Leopard in the Ruby On Rails Talk forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eric Ee
 
Posts: n/a

Default Segmentation Fault in Snow Leopard - 11-05-2009 , 09:07 PM






I just upgraded to snow leopard and I'm trying to get the 64 bit version
of mysql and ruby going. I ran through the steps here...

http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/

mysql is running properly and when I run
which ruby I get...
/usr/local/bin/ruby

Which should be right. However, when I go to install rubygems...
sudo /usr/local/bin/ruby setup.rb

I get a segmentation fault. No matter what I try to do I get a
segmentation fault. My app was running just fine before the upgrade to
snow leopard and now none of my rake commands work, nothing but
segmentation faults. I'm stumped. Thanks in advance.

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #2  
Old   
Conrad Taylor
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-05-2009 , 09:23 PM






On Thu, Nov 5, 2009 at 6:07 PM, Eric Ee <rails-mailing-list (AT) andreas-s (DOT) net>wrote:

Quote:
I just upgraded to snow leopard and I'm trying to get the 64 bit version
of mysql and ruby going. I ran through the steps here...


http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/

mysql is running properly and when I run
which ruby I get...
/usr/local/bin/ruby

Which should be right. However, when I go to install rubygems...
sudo /usr/local/bin/ruby setup.rb

I get a segmentation fault. No matter what I try to do I get a
segmentation fault. My app was running just fine before the upgrade to
snow leopard and now none of my rake commands work, nothing but
segmentation faults. I'm stumped. Thanks in advance.

-E

If you have Snow Leopard, then you should have following these instructions
to install Rubygems:

sudo gem update --system

Also, you can find further details here:

http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard

Good luck,

-Conrad


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



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #3  
Old   
Eric Ee
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-05-2009 , 09:57 PM



Thanks Conrad,

However, I also get a segmentation fault when I run

sudo gem update --system


Conrad Taylor wrote:
Quote:
On Thu, Nov 5, 2009 at 6:07 PM, Eric Ee
rails-mailing-list (AT) andreas-s (DOT) net>wrote:


Which should be right. However, when I go to install rubygems...
sudo /usr/local/bin/ruby setup.rb

I get a segmentation fault. No matter what I try to do I get a
segmentation fault. My app was running just fine before the upgrade to
snow leopard and now none of my rake commands work, nothing but
segmentation faults. I'm stumped. Thanks in advance.

-E


If you have Snow Leopard, then you should have following these
instructions
to install Rubygems:

sudo gem update --system

Also, you can find further details here:

http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard

Good luck,

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #4  
Old   
Conrad Taylor
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-05-2009 , 10:02 PM



On Thu, Nov 5, 2009 at 6:57 PM, Eric Ee <rails-mailing-list (AT) andreas-s (DOT) net>wrote:

Quote:
Thanks Conrad,

However, I also get a segmentation fault when I run

sudo gem update --system



Did you install the latest version of developer tools for Snow Leopard?

-Conrad


Quote:
Conrad Taylor wrote:
On Thu, Nov 5, 2009 at 6:07 PM, Eric Ee
rails-mailing-list (AT) andreas-s (DOT) net>wrote:


Which should be right. However, when I go to install rubygems...
sudo /usr/local/bin/ruby setup.rb

I get a segmentation fault. No matter what I try to do I get a
segmentation fault. My app was running just fine before the upgrade to
snow leopard and now none of my rake commands work, nothing but
segmentation faults. I'm stumped. Thanks in advance.

-E


If you have Snow Leopard, then you should have following these
instructions
to install Rubygems:

sudo gem update --system

Also, you can find further details here:

http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard

Good luck,

-Conrad

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



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #5  
Old   
Eric Ee
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-05-2009 , 10:14 PM



Yes,

I've got the snow leopard DVD. Went into optional installs and
installed Xcode.mpkg before I started any of this. Got a nice checkmark
saying it installed properly.

still getting segmentation faults with just about everything.

Conrad Taylor wrote:
Quote:
On Thu, Nov 5, 2009 at 6:57 PM, Eric Ee
rails-mailing-list (AT) andreas-s (DOT) net>wrote:


Thanks Conrad,

However, I also get a segmentation fault when I run

sudo gem update --system



Did you install the latest version of developer tools for Snow Leopard?

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #6  
Old   
Conrad Taylor
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-05-2009 , 10:28 PM



On Thu, Nov 5, 2009 at 7:14 PM, Eric Ee <rails-mailing-list (AT) andreas-s (DOT) net>wrote:

Quote:
Yes,

I've got the snow leopard DVD. Went into optional installs and
installed Xcode.mpkg before I started any of this. Got a nice checkmark
saying it installed properly.

still getting segmentation faults with just about everything.


The lastest version of Developer Tools can be obtained from here if you're
in the iPhone Developer Program:

http://developer.apple.com/iphone/

Otherwise, you'll need to get the latest from here:

Xcode 3.2.1 Developer DVD (Disk
Image)<http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/103/wa/download?path=%2FDeveloper_Tools%2Fxcode_3.2.1_dev eloper_tools%2Fxcode321_10m2003_developerdvd.dmg&w osid=2QzeQVKfw1kK2e5zVlJgLtXGp1q>

Next, what the version of Ruby that you're using? Also,
when you type `gem -v`, what appears on the screen?

-Conrad


Quote:
Conrad Taylor wrote:
On Thu, Nov 5, 2009 at 6:57 PM, Eric Ee
rails-mailing-list (AT) andreas-s (DOT) net>wrote:


Thanks Conrad,

However, I also get a segmentation fault when I run

sudo gem update --system



Did you install the latest version of developer tools for Snow Leopard?

-Conrad

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



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #7  
Old   
Conrad Taylor
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-05-2009 , 10:32 PM



On Thu, Nov 5, 2009 at 7:28 PM, Conrad Taylor <conradwt (AT) gmail (DOT) com> wrote:

Quote:
On Thu, Nov 5, 2009 at 7:14 PM, Eric Ee <rails-mailing-list (AT) andreas-s (DOT) net>wrote:


Yes,

I've got the snow leopard DVD. Went into optional installs and
installed Xcode.mpkg before I started any of this. Got a nice checkmark
saying it installed properly.

still getting segmentation faults with just about everything.


The lastest version of Developer Tools can be obtained from here if you're
in the iPhone Developer Program:

http://developer.apple.com/iphone/

Otherwise, you'll need to get the latest from here:

Xcode 3.2.1 Developer DVD (Disk Image)<http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/103/wa/download?path=%2FDeveloper_Tools%2Fxcode_3.2.1_dev eloper_tools%2Fxcode321_10m2003_developerdvd.dmg&w osid=2QzeQVKfw1kK2e5zVlJgLtXGp1q

Next, what the version of Ruby that you're using? Also,
when you type `gem -v`, what appears on the screen?

-Conrad

Also, can you send the output of the following commands?

which gem
which ruby

-Conrad


Quote:

Conrad Taylor wrote:
On Thu, Nov 5, 2009 at 6:57 PM, Eric Ee
rails-mailing-list (AT) andreas-s (DOT) net>wrote:


Thanks Conrad,

However, I also get a segmentation fault when I run

sudo gem update --system



Did you install the latest version of developer tools for Snow Leopard?

-Conrad

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




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #8  
Old   
Eric Ee
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-05-2009 , 10:38 PM



Sure thing. Thank you. Seriously.

gem -v
Illegal instruction (yikes)

which gem
/usr/local/bin/gem

which ruby
/usr/local/bin/ruby


Conrad Taylor wrote:
Quote:
On Thu, Nov 5, 2009 at 7:28 PM, Conrad Taylor <conradwt (AT) gmail (DOT) com
wrote:


Next, what the version of Ruby that you're using? Also,
when you type `gem -v`, what appears on the screen?

-Conrad


Also, can you send the output of the following commands?

which gem
which ruby

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #9  
Old   
Conrad Taylor
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-05-2009 , 11:26 PM



OK, let's do the following for now:

1). Remove /use/local/bin from your
PATH.

2). Open a new shell window

3). Update Rubygems

sudo gem update --system

4). Install Rails

sudo gem install rails

Let me know what happen.

-Conrad

Sent from my iPhone

On Nov 5, 2009, at 7:38 PM, Eric Ee <rails-mailing-list (AT) andreas-s (DOT) net>
wrote:

Quote:
Sure thing. Thank you. Seriously.

gem -v
Illegal instruction (yikes)

which gem
/usr/local/bin/gem

which ruby
/usr/local/bin/ruby


Conrad Taylor wrote:
On Thu, Nov 5, 2009 at 7:28 PM, Conrad Taylor <conradwt (AT) gmail (DOT) com
wrote:


Next, what the version of Ruby that you're using? Also,
when you type `gem -v`, what appears on the screen?

-Conrad


Also, can you send the output of the following commands?

which gem
which ruby

-Conrad

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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #10  
Old   
Eric Ee
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-06-2009 , 01:15 AM



I ran

mate ~/.profile

It looked like this
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
I changed it to this
export PATH="/usr/local/sbin:/usr/local/mysql/bin:$PATH"

I opened up a new shell and ran
sudo gem update --system

Still got a segmentation fault.

Conrad Taylor wrote:
Quote:
OK, let's do the following for now:

1). Remove /use/local/bin from your
PATH.

2). Open a new shell window

3). Update Rubygems

sudo gem update --system

4). Install Rails

sudo gem install rails

Let me know what happen.

-Conrad

Sent from my iPhone

On Nov 5, 2009, at 7:38 PM, Eric Ee <rails-mailing-list (AT) andreas-s (DOT) net
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.