Hi All. Ive heard so much about RoR now Iand i would really like to get my hands dirty. Only trouble is i just cant seem to get it up and running: Ive followed the hivelogic instructions several times on two different mac''s. when i start an app, and then try to $script/server, i get a message telling me: " i dont have ruby gems and to install it upon trying to install it again: $ sudo gem install rails /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load -- thread.so (LoadError) from /usr/local/lib/ruby/1.8/thread.rb:5 from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 from /usr/local/bin/gem:8:in `require'' from /usr/local/bin/gem:8 there seems to be conflicting paths / versions of rubygems, i cant tell which. either way somethings pointing to the wrong thing. Please could anyone help? Much Appreciated Jez
Conrad Taylor
2009-Oct-14 10:56 UTC
Re: Really need some help with production environment installation
On Wed, Oct 14, 2009 at 2:22 AM, Jez <jezcowley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi All. > Ive heard so much about RoR now Iand i would really like to get my > hands dirty. Only trouble is i just cant seem to get it up and > running: > > Ive followed the hivelogic instructions several times on two different > mac''s. > when i start an app, and then try to $script/server, i get a message > telling me: > " i dont have ruby gems and to install it > > upon trying to install it again: > > $ sudo gem install rails > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > -- thread.so (LoadError) > from /usr/local/lib/ruby/1.8/thread.rb:5 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > from /usr/local/bin/gem:8:in `require'' > from /usr/local/bin/gem:8 > > there seems to be conflicting paths / versions of rubygems, i cant > tell which. either way somethings pointing to the wrong thing. Please > could anyone help? > Much Appreciated > > Jez > >Hi, you could have simply used the currently installed version of Ruby and Rubygems located in /usr/bin. Then you could have simply performed the following steps: sudo gem update --system sudo gem install gemcutter sudo gem install jeweler gem tumble sudo gem install sqlite3-ruby sudo gem install rails Good luck, -Conrad> > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jez
2009-Oct-14 11:03 UTC
Re: Really need some help with production environment installation
Thanks Conrad I will have a go. I found myself pointed to the Hivelogic tutorials from most places ie lynda.com & ADC. Much Appreciated Jez On 14 Oct, 11:56, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Wed, Oct 14, 2009 at 2:22 AM, Jez <jezcow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi All. > > Ive heard so much about RoR now Iand i would really like to get my > > hands dirty. Only trouble is i just cant seem to get it up and > > running: > > > Ive followed the hivelogic instructions several times on two different > > mac''s. > > when i start an app, and then try to $script/server, i get a message > > telling me: > > " i dont have ruby gems and to install it > > > upon trying to install it again: > > > $ sudo gem install rails > > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > > -- thread.so (LoadError) > > from /usr/local/lib/ruby/1.8/thread.rb:5 > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > > from /usr/local/bin/gem:8:in `require'' > > from /usr/local/bin/gem:8 > > > there seems to be conflicting paths / versions of rubygems, i cant > > tell which. either way somethings pointing to the wrong thing. Please > > could anyone help? > > Much Appreciated > > > Jez > > Hi, you could have simply used the currently installed version of Ruby > and Rubygems located in /usr/bin. Then you could have simply performed > the following steps: > > sudo gem update --system > sudo gem install gemcutter > sudo gem install jeweler > gem tumble > sudo gem install sqlite3-ruby > sudo gem install rails > > Good luck, > > -Conrad > >
Jez
2009-Oct-14 11:21 UTC
Re: Really need some help with production environment installation
Ok so no joy there, still getting exact same messages sudo gem update --system /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load -- thread.so (LoadError) from /usr/local/lib/ruby/1.8/thread.rb:5 from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 from /usr/local/bin/gem:8:in `require'' from /usr/local/bin/gem:8 Any ideas now? ta J again any help is most appreciated. On 14 Oct, 11:56, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Wed, Oct 14, 2009 at 2:22 AM, Jez <jezcow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi All. > > Ive heard so much about RoR now Iand i would really like to get my > > hands dirty. Only trouble is i just cant seem to get it up and > > running: > > > Ive followed the hivelogic instructions several times on two different > > mac''s. > > when i start an app, and then try to $script/server, i get a message > > telling me: > > " i dont have ruby gems and to install it > > > upon trying to install it again: > > > $ sudo gem install rails > > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > > -- thread.so (LoadError) > > from /usr/local/lib/ruby/1.8/thread.rb:5 > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > > from /usr/local/bin/gem:8:in `require'' > > from /usr/local/bin/gem:8 > > > there seems to be conflicting paths / versions of rubygems, i cant > > tell which. either way somethings pointing to the wrong thing. Please > > could anyone help? > > Much Appreciated > > > Jez > > Hi, you could have simply used the currently installed version of Ruby > and Rubygems located in /usr/bin. Then you could have simply performed > the following steps: > > sudo gem update --system > sudo gem install gemcutter > sudo gem install jeweler > gem tumble > sudo gem install sqlite3-ruby > sudo gem install rails > > Good luck, > > -Conrad > >
Conrad Taylor
2009-Oct-14 12:18 UTC
Re: Really need some help with production environment installation
Hi, please remove the following from your path: /usr/local/bin /usr/local/sbin Then open a new shell and try the commands that I specify below. -Conrad On Wed, Oct 14, 2009 at 4:21 AM, Jez <jezcowley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Ok so no joy there, still getting exact same messages > > sudo gem update --system > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > -- thread.so (LoadError) > from /usr/local/lib/ruby/1.8/thread.rb:5 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > from /usr/local/bin/gem:8:in `require'' > from /usr/local/bin/gem:8 > > Any ideas now? > ta > > J > again any help is most appreciated. > > On 14 Oct, 11:56, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Wed, Oct 14, 2009 at 2:22 AM, Jez <jezcow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi All. > > > Ive heard so much about RoR now Iand i would really like to get my > > > hands dirty. Only trouble is i just cant seem to get it up and > > > running: > > > > > Ive followed the hivelogic instructions several times on two different > > > mac''s. > > > when i start an app, and then try to $script/server, i get a message > > > telling me: > > > " i dont have ruby gems and to install it > > > > > upon trying to install it again: > > > > > $ sudo gem install rails > > > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > > > -- thread.so (LoadError) > > > from /usr/local/lib/ruby/1.8/thread.rb:5 > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in > `require'' > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > > > from /usr/local/bin/gem:8:in `require'' > > > from /usr/local/bin/gem:8 > > > > > there seems to be conflicting paths / versions of rubygems, i cant > > > tell which. either way somethings pointing to the wrong thing. Please > > > could anyone help? > > > Much Appreciated > > > > > Jez > > > > Hi, you could have simply used the currently installed version of Ruby > > and Rubygems located in /usr/bin. Then you could have simply performed > > the following steps: > > > > sudo gem update --system > > sudo gem install gemcutter > > sudo gem install jeweler > > gem tumble > > sudo gem install sqlite3-ruby > > sudo gem install rails > > > > Good luck, > > > > -Conrad > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jez
2009-Oct-14 12:49 UTC
Re: Really need some help with production environment installation
Hello again, Ok ive removed that from my path, and still get similar error $ sudo gem update --system Password: /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load -- thread.so (LoadError) from /usr/local/lib/ruby/1.8/thread.rb:5 from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 from /usr/local/bin/gem:8:in `require'' from /usr/local/bin/gem:8 Sorry if im missing something. Should my path contain anything at all? thanks J On 14 Oct, 13:18, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, please remove the following from your path: > > /usr/local/bin > /usr/local/sbin > > Then open a new shell and try the commands that I specify > below. > > -Conrad > > On Wed, Oct 14, 2009 at 4:21 AM, Jez <jezcow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Ok so no joy there, still getting exact same messages > > > sudo gem update --system > > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > > -- thread.so (LoadError) > > from /usr/local/lib/ruby/1.8/thread.rb:5 > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > > from /usr/local/bin/gem:8:in `require'' > > from /usr/local/bin/gem:8 > > > Any ideas now? > > ta > > > J > > again any help is most appreciated. > > > On 14 Oct, 11:56, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On Wed, Oct 14, 2009 at 2:22 AM, Jez <jezcow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi All. > > > > Ive heard so much about RoR now Iand i would really like to get my > > > > hands dirty. Only trouble is i just cant seem to get it up and > > > > running: > > > > > Ive followed the hivelogic instructions several times on two different > > > > mac''s. > > > > when i start an app, and then try to $script/server, i get a message > > > > telling me: > > > > " i dont have ruby gems and to install it > > > > > upon trying to install it again: > > > > > $ sudo gem install rails > > > > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > > > > -- thread.so (LoadError) > > > > from /usr/local/lib/ruby/1.8/thread.rb:5 > > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in > > `require'' > > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > > > > from /usr/local/bin/gem:8:in `require'' > > > > from /usr/local/bin/gem:8 > > > > > there seems to be conflicting paths / versions of rubygems, i cant > > > > tell which. either way somethings pointing to the wrong thing. Please > > > > could anyone help? > > > > Much Appreciated > > > > > Jez > > > > Hi, you could have simply used the currently installed version of Ruby > > > and Rubygems located in /usr/bin. Then you could have simply performed > > > the following steps: > > > > sudo gem update --system > > > sudo gem install gemcutter > > > sudo gem install jeweler > > > gem tumble > > > sudo gem install sqlite3-ruby > > > sudo gem install rails > > > > Good luck, > > > > -Conrad
Eric
2009-Oct-14 14:16 UTC
Re: Really need some help with production environment installation
J, Can you paste in exactly what is in your PATH now? That might help clear up where the problem is. And yes, if you are following the Hivelogic instructions for the Ruby/Rails/Gem install you will need something in your PATH. On Oct 14, 8:49 am, Jez <jezcow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello again, > Ok ive removed that from my path, and still get similar error > > $ sudo gem update --system > Password: > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > -- thread.so (LoadError) > from /usr/local/lib/ruby/1.8/thread.rb:5 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > from /usr/local/bin/gem:8:in `require'' > from /usr/local/bin/gem:8 > > Sorry if im missing something. > Should my path contain anything at all? > thanks > > J > > On 14 Oct, 13:18, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi, please remove the following from your path: > > > /usr/local/bin > > /usr/local/sbin > > > Then open a new shell and try the commands that I specify > > below. > > > -Conrad > > > On Wed, Oct 14, 2009 at 4:21 AM, Jez <jezcow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Ok so no joy there, still getting exact same messages > > > > sudo gem update --system > > > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > > > -- thread.so (LoadError) > > > from /usr/local/lib/ruby/1.8/thread.rb:5 > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > > > from /usr/local/bin/gem:8:in `require'' > > > from /usr/local/bin/gem:8 > > > > Any ideas now? > > > ta > > > > J > > > again any help is most appreciated. > > > > On 14 Oct, 11:56, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > On Wed, Oct 14, 2009 at 2:22 AM, Jez <jezcow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Hi All. > > > > > Ive heard so much about RoR now Iand i would really like to get my > > > > > hands dirty. Only trouble is i just cant seem to get it up and > > > > > running: > > > > > > Ive followed the hivelogic instructions several times on two different > > > > > mac''s. > > > > > when i start an app, and then try to $script/server, i get a message > > > > > telling me: > > > > > " i dont have ruby gems and to install it > > > > > > upon trying to install it again: > > > > > > $ sudo gem install rails > > > > > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > > > > > -- thread.so (LoadError) > > > > > from /usr/local/lib/ruby/1.8/thread.rb:5 > > > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in > > > `require'' > > > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > > > > > from /usr/local/bin/gem:8:in `require'' > > > > > from /usr/local/bin/gem:8 > > > > > > there seems to be conflicting paths / versions of rubygems, i cant > > > > > tell which. either way somethings pointing to the wrong thing. Please > > > > > could anyone help? > > > > > Much Appreciated > > > > > > Jez > > > > > Hi, you could have simply used the currently installed version of Ruby > > > > and Rubygems located in /usr/bin. Then you could have simply performed > > > > the following steps: > > > > > sudo gem update --system > > > > sudo gem install gemcutter > > > > sudo gem install jeweler > > > > gem tumble > > > > sudo gem install sqlite3-ruby > > > > sudo gem install rails > > > > > Good luck, > > > > > -Conrad
Marnen Laibow-Koser
2009-Oct-14 14:26 UTC
Re: Really need some help with production environment instal
Jez wrote:> Thanks Conrad I will have a go. > > I found myself pointed to the Hivelogic tutorials from most places ie > lynda.com & ADC.I''m not sure about the lynda.com stuff, but the ADC articles date from a time when Rails wasn''t packaged with the OS (i.e., before Leopard). Since Leopard, the bundled Ruby and Rails stack should work fine.> > Much Appreciated > > JezBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
Leonardo Mateo
2009-Oct-14 15:17 UTC
Re: Really need some help with production environment installation
On Wed, Oct 14, 2009 at 4:16 PM, Eric <darthzippy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > J, > > Can you paste in exactly what is in your PATH now? That might help > clear up where the problem is. And yes, if you are following the > Hivelogic instructions for the Ruby/Rails/Gem install you will need > something in your PATH. >I don''t think the problem is in the path, it''s a .so file what can''t be loaded. It''s more likely an ldconfig problem, I have no idea how MacOS works, but I think you should look for your LD_LIBRARY_PATH or equivalent. -- Leonardo Mateo. There''s no place like ~
Jez
2009-Oct-14 16:07 UTC
Re: Really need some help with production environment installation
There''s nothing currently in my path profile file (that is what you all mean?) I removed it at Conrads request. as per hivelogic it was previously export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin: $PATH" Even without this i am receiving a similar error. If i understand correctly, i Have managed to duplicate both or either ruby & rubyGems, and so one ruby, or the other, is pointing to the wrong place for rubyGems and telling me i dont have it installed. Hence: $ which ruby /usr/local/bin/ruby $ which gem /usr/local/bin/gem $ ruby --version ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.7.0] gem --version /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load -- thread.so (LoadError) from /usr/local/lib/ruby/1.8/thread.rb:5 from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 from /usr/local/bin/gem:8:in `require'' from /usr/local/bin/gem:8 Notice in the path its going to usr/local/lib (i presume this is from the pre existing mac leopard installation of ruby) Apologies for my very basic command line knowledge, but i appear to be learning an awful lot very quickly. Thanks all for the great response. im really keen to progress. Regards Jez On 14 Oct, 16:17, Leonardo Mateo <leonardoma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Wed, Oct 14, 2009 at 4:16 PM, Eric <darthzi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > J, > > > Can you paste in exactly what is in your PATH now? That might help > > clear up where the problem is. And yes, if you are following the > > Hivelogic instructions for the Ruby/Rails/Gem install you will need > > something in your PATH. > > I don''t think the problem is in the path, it''s a .so file what can''t be loaded. > It''s more likely an ldconfig problem, I have no idea how MacOS works, > but I think you should look for your LD_LIBRARY_PATH or equivalent. > > -- > Leonardo Mateo. > There''s no place like ~
Marnen Laibow-Koser
2009-Oct-14 16:25 UTC
Re: Really need some help with production environment instal
Jez wrote:> There''s nothing currently in my path profile file (that is what you > all mean?) I removed it at Conrads request.Not quite. I think the question being asked was about the PATH environment variable, which you can see by typing echo $PATH at the command line. If you didn''t modify it in your .profile or otherwise, it''s set to some default value. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
Whoa, that''ll be the path then /usr/local/mysql/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/ bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin On 14 Oct, 17:25, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote:> Jez wrote: > > There''s nothing currently in my path profile file (that is what you > > all mean?) I removed it at Conrads request. > > Not quite. I think the question being asked was about the PATH > environment variable, which you can see by typing > > echo $PATH > > at the command line. If you didn''t modify it in your .profile or > otherwise, it''s set to some default value. > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.
Leonardo Mateo
2009-Oct-14 16:35 UTC
Re: Really need some help with production environment installation
On Wed, Oct 14, 2009 at 6:07 PM, Jez <jezcowley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > There''s nothing currently in my path profile file (that is what you > all mean?) I removed it at Conrads request. > > as per hivelogic it was previously > export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin: > $PATH" > > Even without this i am receiving a similar error. > > If i understand correctly, i Have managed to duplicate both or either > ruby & rubyGems, and so one ruby, or the other, is pointing to the > wrong place for rubyGems and telling me i dont have it installed. > Hence: > > $ which ruby > /usr/local/bin/ruby > > $ which gem > /usr/local/bin/gem > > $ ruby --version > ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.7.0]You are trying for executable files, and your problem is a shared library.> > gem --version > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > -- thread.so (LoadError) > from /usr/local/lib/ruby/1.8/thread.rb:5 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > from /usr/local/bin/gem:8:in `require'' > from /usr/local/bin/gem:8 > > Notice in the path its going to usr/local/lib > (i presume this is from the pre existing mac leopard installation of > ruby) > > Apologies for my very basic command line knowledge, but i appear to be > learning an awful lot very quickly. > > Thanks all for the great response. im really keen to progress. > > Regards > > Jez > > On 14 Oct, 16:17, Leonardo Mateo <leonardoma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> On Wed, Oct 14, 2009 at 4:16 PM, Eric <darthzi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> > J, >> >> > Can you paste in exactly what is in your PATH now? That might help >> > clear up where the problem is. And yes, if you are following the >> > Hivelogic instructions for the Ruby/Rails/Gem install you will need >> > something in your PATH. >> >> I don''t think the problem is in the path, it''s a .so file what can''t be loaded. >> It''s more likely an ldconfig problem, I have no idea how MacOS works, >> but I think you should look for your LD_LIBRARY_PATH or equivalent. >> >> -- >> Leonardo Mateo. >> There''s no place like ~ > > >-- Leonardo Mateo. There''s no place like ~
Conrad Taylor
2009-Oct-14 21:27 UTC
Re: Really need some help with production environment installation
On Wed, Oct 14, 2009 at 9:07 AM, Jez <jezcowley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > There''s nothing currently in my path profile file (that is what you > all mean?) I removed it at Conrads request. > > as per hivelogic it was previously > export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin: > $PATH" > >Your PATH should look like this export PATH=/usr/local/mysql/bin:$PATH Now, try running the commands that I sent to you previously. -Conrad> Even without this i am receiving a similar error. > > If i understand correctly, i Have managed to duplicate both or either > ruby & rubyGems, and so one ruby, or the other, is pointing to the > wrong place for rubyGems and telling me i dont have it installed. > Hence: > > $ which ruby > /usr/local/bin/ruby > > $ which gem > /usr/local/bin/gem > > $ ruby --version > ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.7.0] > > gem --version > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > -- thread.so (LoadError) > from /usr/local/lib/ruby/1.8/thread.rb:5 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > from /usr/local/bin/gem:8:in `require'' > from /usr/local/bin/gem:8 > > Notice in the path its going to usr/local/lib > (i presume this is from the pre existing mac leopard installation of > ruby) > > Apologies for my very basic command line knowledge, but i appear to be > learning an awful lot very quickly. > > Thanks all for the great response. im really keen to progress. > > Regards > > Jez > > On 14 Oct, 16:17, Leonardo Mateo <leonardoma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Wed, Oct 14, 2009 at 4:16 PM, Eric <darthzi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > J, > > > > > Can you paste in exactly what is in your PATH now? That might help > > > clear up where the problem is. And yes, if you are following the > > > Hivelogic instructions for the Ruby/Rails/Gem install you will need > > > something in your PATH. > > > > I don''t think the problem is in the path, it''s a .so file what can''t be > loaded. > > It''s more likely an ldconfig problem, I have no idea how MacOS works, > > but I think you should look for your LD_LIBRARY_PATH or equivalent. > > > > -- > > Leonardo Mateo. > > There''s no place like ~ > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jez
2009-Oct-15 08:22 UTC
Re: Really need some help with production environment installation
OK, so back to basics: Why every time i modify .profile does it just keep adding new stuff in? After setting it several times, im getting duplicate entries for directories? /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/ sbin:/sbin:/usr/local/bin:/usr/X11/bin when echo''d my $PATH just keeps getting longer with duplicate entries. -Is the echo $PATH command getting these variables from more that one place? -where is the usr/X11/bin coming from? Thanks again in advance people, Much appreciated J On 14 Oct, 22:27, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Wed, Oct 14, 2009 at 9:07 AM, Jez <jezcow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > There''s nothing currently in my path profile file (that is what you > > all mean?) I removed it at Conrads request. > > > as per hivelogic it was previously > > export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin: > > $PATH" > > Your PATH should look like this > > export PATH=/usr/local/mysql/bin:$PATH > > Now, try running the commands that I sent to you previously. > > -Conrad > > > Even without this i am receiving a similar error. > > > If i understand correctly, i Have managed to duplicate both or either > > ruby & rubyGems, and so one ruby, or the other, is pointing to the > > wrong place for rubyGems and telling me i dont have it installed. > > Hence: > > > $ which ruby > > /usr/local/bin/ruby > > > $ which gem > > /usr/local/bin/gem > > > $ ruby --version > > ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.7.0] > > > gem --version > > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > > -- thread.so (LoadError) > > from /usr/local/lib/ruby/1.8/thread.rb:5 > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'' > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > > from /usr/local/bin/gem:8:in `require'' > > from /usr/local/bin/gem:8 > > > Notice in the path its going to usr/local/lib > > (i presume this is from the pre existing mac leopard installation of > > ruby) > > > Apologies for my very basic command line knowledge, but i appear to be > > learning an awful lot very quickly. > > > Thanks all for the great response. im really keen to progress. > > > Regards > > > Jez > > > On 14 Oct, 16:17, Leonardo Mateo <leonardoma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On Wed, Oct 14, 2009 at 4:16 PM, Eric <darthzi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > J, > > > > > Can you paste in exactly what is in your PATH now? That might help > > > > clear up where the problem is. And yes, if you are following the > > > > Hivelogic instructions for the Ruby/Rails/Gem install you will need > > > > something in your PATH. > > > > I don''t think the problem is in the path, it''s a .so file what can''t be > > loaded. > > > It''s more likely an ldconfig problem, I have no idea how MacOS works, > > > but I think you should look for your LD_LIBRARY_PATH or equivalent. > > > > -- > > > Leonardo Mateo. > > > There''s no place like ~
Conrad Taylor
2009-Oct-15 08:40 UTC
Re: Really need some help with production environment installation
On Thu, Oct 15, 2009 at 1:22 AM, Jez <jezcowley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > OK, so back to basics: > Why every time i modify .profile does it just keep adding new stuff > in? > >This is the standard way in which it works. When you start up a shell a new shell or execute ''source .profile'', the .profile file is executed and the variables are published back to the OS.> After setting it several times, im getting duplicate entries for > directories? > /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/ > sbin:/sbin:/usr/local/bin:/usr/X11/bin > >Just simply start a new shell.> when echo''d my $PATH just keeps getting longer with duplicate entries. > > -Is the echo $PATH command getting these variables from more that one > place? > > -where is the usr/X11/bin coming from? > > Thanks again in advance people, > Much appreciated > > J > > > >I would recommend reading a book on basic unix and I wish that the information helped. Good luck, -Conrad> > > > On 14 Oct, 22:27, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Wed, Oct 14, 2009 at 9:07 AM, Jez <jezcow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > There''s nothing currently in my path profile file (that is what you > > > all mean?) I removed it at Conrads request. > > > > > as per hivelogic it was previously > > > export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin: > > > $PATH" > > > > Your PATH should look like this > > > > export PATH=/usr/local/mysql/bin:$PATH > > > > Now, try running the commands that I sent to you previously. > > > > -Conrad > > > > > Even without this i am receiving a similar error. > > > > > If i understand correctly, i Have managed to duplicate both or either > > > ruby & rubyGems, and so one ruby, or the other, is pointing to the > > > wrong place for rubyGems and telling me i dont have it installed. > > > Hence: > > > > > $ which ruby > > > /usr/local/bin/ruby > > > > > $ which gem > > > /usr/local/bin/gem > > > > > $ ruby --version > > > ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.7.0] > > > > > gem --version > > > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load > > > -- thread.so (LoadError) > > > from /usr/local/lib/ruby/1.8/thread.rb:5 > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in > `require'' > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 > > > from /usr/local/bin/gem:8:in `require'' > > > from /usr/local/bin/gem:8 > > > > > Notice in the path its going to usr/local/lib > > > (i presume this is from the pre existing mac leopard installation of > > > ruby) > > > > > Apologies for my very basic command line knowledge, but i appear to be > > > learning an awful lot very quickly. > > > > > Thanks all for the great response. im really keen to progress. > > > > > Regards > > > > > Jez > > > > > On 14 Oct, 16:17, Leonardo Mateo <leonardoma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > On Wed, Oct 14, 2009 at 4:16 PM, Eric <darthzi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > J, > > > > > > > Can you paste in exactly what is in your PATH now? That might help > > > > > clear up where the problem is. And yes, if you are following the > > > > > Hivelogic instructions for the Ruby/Rails/Gem install you will need > > > > > something in your PATH. > > > > > > I don''t think the problem is in the path, it''s a .so file what can''t > be > > > loaded. > > > > It''s more likely an ldconfig problem, I have no idea how MacOS works, > > > > but I think you should look for your LD_LIBRARY_PATH or equivalent. > > > > > > -- > > > > Leonardo Mateo. > > > > There''s no place like ~ > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeremy Cowley
2009-Oct-15 08:59 UTC
Re: Really need some help with production environment installation
Yeah Im going to do some serious reading up on this. Ive not even started down the rails path and found ive got some serious fundamentals to learn. Thanks for all the support; i will be back at some point! 2009/10/15 Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Thu, Oct 15, 2009 at 1:22 AM, Jez <jezcowley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> >> OK, so back to basics: >> Why every time i modify .profile does it just keep adding new stuff >> in? >> >> > This is the standard way in which it works. When you start up a shell > a new shell or execute ''source .profile'', the .profile file is executed and > the variables are published back to the OS. > > >> After setting it several times, im getting duplicate entries for >> directories? >> /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/ >> sbin:/sbin:/usr/local/bin:/usr/X11/bin >> >> > Just simply start a new shell. > > >> when echo''d my $PATH just keeps getting longer with duplicate entries. >> >> -Is the echo $PATH command getting these variables from more that one >> place? >> >> -where is the usr/X11/bin coming from? >> >> Thanks again in advance people, >> Much appreciated >> >> J >> >> >> >> > I would recommend reading a book on basic unix and I wish > that the information helped. > > Good luck, > > -Conrad > > >> >> >> >> On 14 Oct, 22:27, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > On Wed, Oct 14, 2009 at 9:07 AM, Jez <jezcow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > >> > > There''s nothing currently in my path profile file (that is what you >> > > all mean?) I removed it at Conrads request. >> > >> > > as per hivelogic it was previously >> > > export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin: >> > > $PATH" >> > >> > Your PATH should look like this >> > >> > export PATH=/usr/local/mysql/bin:$PATH >> > >> > Now, try running the commands that I sent to you previously. >> > >> > -Conrad >> > >> > > Even without this i am receiving a similar error. >> > >> > > If i understand correctly, i Have managed to duplicate both or either >> > > ruby & rubyGems, and so one ruby, or the other, is pointing to the >> > > wrong place for rubyGems and telling me i dont have it installed. >> > > Hence: >> > >> > > $ which ruby >> > > /usr/local/bin/ruby >> > >> > > $ which gem >> > > /usr/local/bin/gem >> > >> > > $ ruby --version >> > > ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.7.0] >> > >> > > gem --version >> > > /usr/local/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load >> > > -- thread.so (LoadError) >> > > from /usr/local/lib/ruby/1.8/thread.rb:5 >> > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10:in >> `require'' >> > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:10 >> > > from /usr/local/bin/gem:8:in `require'' >> > > from /usr/local/bin/gem:8 >> > >> > > Notice in the path its going to usr/local/lib >> > > (i presume this is from the pre existing mac leopard installation of >> > > ruby) >> > >> > > Apologies for my very basic command line knowledge, but i appear to be >> > > learning an awful lot very quickly. >> > >> > > Thanks all for the great response. im really keen to progress. >> > >> > > Regards >> > >> > > Jez >> > >> > > On 14 Oct, 16:17, Leonardo Mateo <leonardoma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > > > On Wed, Oct 14, 2009 at 4:16 PM, Eric <darthzi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > >> > > > > J, >> > >> > > > > Can you paste in exactly what is in your PATH now? That might help >> > > > > clear up where the problem is. And yes, if you are following the >> > > > > Hivelogic instructions for the Ruby/Rails/Gem install you will >> need >> > > > > something in your PATH. >> > >> > > > I don''t think the problem is in the path, it''s a .so file what can''t >> be >> > > loaded. >> > > > It''s more likely an ldconfig problem, I have no idea how MacOS >> works, >> > > > but I think you should look for your LD_LIBRARY_PATH or equivalent. >> > >> > > > -- >> > > > Leonardo Mateo. >> > > > There''s no place like ~ >> >> > > > >-- Jez Cowley --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---