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
  #11  
Old   
Conrad Taylor
 
Posts: n/a

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






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

Quote:
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.


Also, take /usr/local/sbin out of your PATH. What does the following
produce?

which gem
gem -v
which ruby
ruby -v

-Conrad



Quote:
Conrad Taylor wrote:
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
  #12  
Old   
Conrad Taylor
 
Posts: n/a

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






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

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


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.


Also, take /usr/local/sbin out of your PATH. What does the following
produce?

which gem
gem -v
which ruby
ruby -v

-Conrad


What does the following say?

echo $PATH

-Conrad


Quote:

Conrad Taylor wrote:
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
  #13  
Old   
Conrad Taylor
 
Posts: n/a

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



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

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

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


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.


Also, take /usr/local/sbin out of your PATH. What does the following
produce?


After you make the above change, restart you OS? This should remove any of
the resident libraries
from memory.

-Conrad


Quote:
which gem
gem -v
which ruby
ruby -v

-Conrad


What does the following say?

echo $PATH

-Conrad




Conrad Taylor wrote:
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
  #14  
Old   
Eric Ee
 
Posts: n/a

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



stripped the sbin part out...

Ran all the commands-

which gem
/usr/local/bin/gem

gem -v
Illegal instruction

which ruby
/usr/local/bin/ruby

ruby -v
Illegal instruction

echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

(I also downloaded the latest iphone developer kit and installed it to
be safe)









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

I changed it to this

which gem
gem -v
which ruby
ruby -v

-Conrad


What does the following say?

echo $PATH

-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
  #15  
Old   
Conrad Taylor
 
Posts: n/a

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



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

Quote:
stripped the sbin part out...

Ran all the commands-

which gem
/usr/local/bin/gem

gem -v
Illegal instruction

which ruby
/usr/local/bin/ruby

ruby -v
Illegal instruction

echo $PATH

/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin


Your PATH should look like this

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

In the shell, please type the following:

export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

Now, do the following:

sudo gem update --system

-Conrad


Quote:
(I also downloaded the latest iphone developer kit and installed it to
be safe)









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

I changed it to this

which gem
gem -v
which ruby
ruby -v

-Conrad


What does the following say?

echo $PATH

-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
  #16  
Old   
Conrad Taylor
 
Posts: n/a

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



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

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


stripped the sbin part out...

Ran all the commands-

which gem
/usr/local/bin/gem

gem -v
Illegal instruction

which ruby
/usr/local/bin/ruby

ruby -v
Illegal instruction

echo $PATH

/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin


Your PATH should look like this

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

In the shell, please type the following:

export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

Now, do the following:

sudo gem update --system

-Conrad


(I also downloaded the latest iphone developer kit and installed it to

be safe)



Did you use the Disk Utility app to "Repair Disk Permissions" on the system
disk?

-Conrad


Quote:






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

I changed it to this

which gem
gem -v
which ruby
ruby -v

-Conrad


What does the following say?

echo $PATH

-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
  #17  
Old   
Eric Ee
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-06-2009 , 02:39 AM



Yes!

Conrad...you are the man.

after a restart and the export path command, I was able to run
sudo gem update --system successfully

so now...

which gem
/usr/bin/gem

gem -v
1.3.5

which ruby
/usr/bin/ruby

ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

This has been making my head spin all day. I really appreciate the
help. Are there any other commands I need to run to get everything
running smoothly in Snow Leopard?


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







Did you use the Disk Utility app to "Repair Disk Permissions" on the
system
disk?

-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
  #18  
Old   
Conrad Taylor
 
Posts: n/a

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



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

Quote:
Yes!

Conrad...you are the man.

after a restart and the export path command, I was able to run
sudo gem update --system successfully

so now...

which gem
/usr/bin/gem

gem -v
1.3.5

which ruby
/usr/bin/ruby

ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

This has been making my head spin all day. I really appreciate the
help. Are there any other commands I need to run to get everything
running smoothly in Snow Leopard?


This is great to hear. Also, make sure that you update your PATH
within your .profile to look exactly like the following:

export PATH=/usr/local/mysql/bin:${PATH}

The above statement is a very basic PATH and it should be sufficient
for now. Also, I would recommend installing the following gems if
you haven't done so already:

sudo gem install rails
sudo gem install sqlite3-ruby
sudo env ARCHFLAGS="-arch x86_64" gem install mysql --
--with-mysql-config=/usr/local/mysql/bin/mysql_config
sudo gem install mongrel
sudo gem install gemcutter
gem tumble

Note: The above assumes that you followed the MySQL installation
instructions here:

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

Last but not least, there are many gems and the primary gem host is located
at http://www.gemcutter.org.

Good luck,

-Conrad


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







Did you use the Disk Utility app to "Repair Disk Permissions" on the
system
disk?

-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
  #19  
Old   
Eric Ee
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-06-2009 , 12:04 PM



I ran those commands and I thought everything was installed properly,
but I'm still having a mysql issue. I ran one of my rake commands for
my app and got...

!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql

and then ran
gem install mysql
but got this...

WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /Users/Erio/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Any idea what is wrong with mysql?



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

which gem

This has been making my head spin all day. I really appreciate the
help. Are there any other commands I need to run to get everything
running smoothly in Snow Leopard?


This is great to hear. Also, make sure that you update your PATH
within your .profile to look exactly like the following:

export PATH=/usr/local/mysql/bin:${PATH}

The above statement is a very basic PATH and it should be sufficient
for now. Also, I would recommend installing the following gems if
you haven't done so already:

sudo gem install rails
sudo gem install sqlite3-ruby
sudo env ARCHFLAGS="-arch x86_64" gem install mysql --
--with-mysql-config=/usr/local/mysql/bin/mysql_config
sudo gem install mongrel
sudo gem install gemcutter
gem tumble

Note: The above assumes that you followed the MySQL installation
instructions here:

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

Last but not least, there are many gems and the primary gem host is
located
at http://www.gemcutter.org.

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
  #20  
Old   
sax
 
Posts: n/a

Default Re: Segmentation Fault in Snow Leopard - 11-06-2009 , 12:35 PM



Maybe the C headers are not installed/discoverable? How did you
install mysql? I've found that the 10.5 64 bit package hosted on the
mysql site makes things easier than installing from source.

Also, you're going to need to specify 64 bit when you install the
mysql gem:

sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-
config=/usr/local/mysql/bin/mysql_config


On Nov 6, 9:04*am, Eric Ee <rails-mailing-l... (AT) andreas-s (DOT) net> wrote:
Quote:
I ran those commands and I thought everything was installed properly,
but I'm still having a mysql issue. *I ran one of my rake commands for
my app and got...

!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql

and then ran
gem install mysql
but got this...

WARNING: *Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
* * /usr/bin aren't both writable.
WARNING: *You don't have /Users/Erio/.gem/ruby/1.8/bin in your PATH,
* * gem executables will not run.
Building native extensions. *This could take a while...
ERROR: *Error installing mysql:
* ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. *Check the mkmf.log file for more
details. *You may need configuration options.

Any idea what is wrong with mysql?





Conrad Taylor wrote:
On Thu, Nov 5, 2009 at 11:39 PM, Eric Ee
rails-mailing-l... (AT) andreas-s (DOT) net>wrote:

which gem

This has been making my head spin all day. *I really appreciate the
help. *Are there any other commands I need to run to get everything
running smoothly in Snow Leopard?

This is great to hear. *Also, make sure that you update your PATH
within your .profile to look exactly like the following:

export PATH=/usr/local/mysql/bin:${PATH}

The above statement is a very basic PATH and it should be sufficient
for now. *Also, I would recommend installing the following gems if
you haven't done so already:

sudo gem install rails
sudo gem install sqlite3-ruby
sudo env ARCHFLAGS="-arch x86_64" gem install mysql --
--with-mysql-config=/usr/local/mysql/bin/mysql_config
sudo gem install mongrel
sudo gem install gemcutter
gem tumble

Note: The above assumes that you followed the MySQL installation
instructions here:

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

Last but not least, there are many gems and the primary gem host is
located
athttp://www.gemcutter.org.

Good luck,

-Conrad

--
Posted viahttp://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.