Colin Schlüter
2005-Jul-21 14:59 UTC
Problems with fresh Darwinports/Rubygems install on OS X 10.4.2
Hi, I''ve a problem with installing Rails on my Powerbook. I just installed Darwinports, then Ruby and Rubygems through Darwinports and then Rails trough Rubygems. (Moostly following the tutorial here: http://www.sateh.com/projects/ sateh/wiki/InstallingRailsOnOSX) Ruby and Irb seem to work, but when I try to use the rails command to start a new app, I get ---------- colinbook:~/Sites/TestApp colin$ rails . dyld: NSLinkModule() error dyld: Symbol not found: _ENGINE_load_aep Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/ openssl.bundle Expected in: flat namespace Trace/BPT trap ---------- Does anyone know what do to about it? I''m not very experienced with Unix installs or C programming, so googling didn''t help me. Perhaps someone on the list know what to do ... Thanks a lot in advance, Colin Schlüter
Ryan Raaum
2005-Jul-21 15:38 UTC
Re: Problems with fresh Darwinports/Rubygems install on OS X 10.4.2
It appears that you are still using the supplied ruby rather than the darwinports ruby. Run ''which ruby'' from the command line and check the result. It should say something like /opt/bin/ruby but if you are (inadvertantly) still using the apple supplied ruby it will say something like /usr/bin/ruby. You need to either 1. change your path so that the darwinports ruby is found before the apple ruby or 2. remove/hide the apple ruby so that the darwinports ruby can be found --ryan (if this seems like it is your problem - email me off list and I can help you with fixing it) On 7/21/05, Colin Schlüter <lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org> wrote:> Hi, > > I''ve a problem with installing Rails on my Powerbook. > > I just installed Darwinports, then Ruby and Rubygems through > Darwinports and then Rails trough Rubygems. > (Moostly following the tutorial here: http://www.sateh.com/projects/ > sateh/wiki/InstallingRailsOnOSX) > > Ruby and Irb seem to work, but when I try to use the rails command to > start a new app, I get > > ---------- > colinbook:~/Sites/TestApp colin$ rails . > dyld: NSLinkModule() error > dyld: Symbol not found: _ENGINE_load_aep > Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/ > openssl.bundle > Expected in: flat namespace > > Trace/BPT trap > ---------- > > Does anyone know what do to about it? I''m not very experienced with > Unix installs or C programming, so googling didn''t help me. > > Perhaps someone on the list know what to do ... > > Thanks a lot in advance, > > Colin Schlüter > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Drew Cox
2005-Jul-21 15:48 UTC
Re: Problems with fresh Darwinports/Rubygems install on OS X 10.4.2
Ah! I just ran into the exact same problem last night while I was trying to move my ruby path from /opt/local/bin to /usr/local/bin ... you''ll just need to run this script to fix readline and a couple other things: curl -O rufy.com/fix-ruby-tiger.sh; sh fix-ruby-tiger.sh ... although I think I might''ve had to do that with sudo (can''t remember): sudo curl -O rufy.com/fix-ruby-tiger.sh; sh fix-ruby-tiger.sh Read about the fix here: http://tech.rufy.com/entry/46 On 7/21/05, Colin Schlüter <lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org> wrote:> Hi, > > I''ve a problem with installing Rails on my Powerbook. > > I just installed Darwinports, then Ruby and Rubygems through > Darwinports and then Rails trough Rubygems. > (Moostly following the tutorial here: http://www.sateh.com/projects/ > sateh/wiki/InstallingRailsOnOSX) > > Ruby and Irb seem to work, but when I try to use the rails command to > start a new app, I get > > ---------- > colinbook:~/Sites/TestApp colin$ rails . > dyld: NSLinkModule() error > dyld: Symbol not found: _ENGINE_load_aep > Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/ > openssl.bundle > Expected in: flat namespace > > Trace/BPT trap > ---------- > > Does anyone know what do to about it? I''m not very experienced with > Unix installs or C programming, so googling didn''t help me. > > Perhaps someone on the list know what to do ... > > Thanks a lot in advance, > > Colin Schlüter > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Colin Schlüter
2005-Jul-21 16:13 UTC
Re: Problems with fresh Darwinports/Rubygems install on OS X 10.4.2
Hi, thanks for your reply, but it seems that this isn''t the problem because the result from ''which ruby'' is ''/usr/local/bin/ruby'' which seems correct to me (I installed Darwinports with --prefix=/usr/ local .). I also checked my path and /usr/local/bin is in there before /usr/bin. Thanks, Colin Am 21.07.2005 um 17:38 schrieb Ryan Raaum:> It appears that you are still using the supplied ruby rather than the > darwinports ruby. Run ''which ruby'' from the command line and check > the result. > > It should say something like /opt/bin/ruby but if you are > (inadvertantly) still using the apple supplied ruby it will say > something like /usr/bin/ruby. > > You need to either > 1. change your path so that the darwinports ruby is found before > the apple ruby > or > 2. remove/hide the apple ruby so that the darwinports ruby can be > found > > --ryan > > (if this seems like it is your problem - email me off list and I can > help you with fixing it) > > On 7/21/05, Colin Schlüter <lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org> wrote: > >> Hi, >> >> I''ve a problem with installing Rails on my Powerbook. >> >> I just installed Darwinports, then Ruby and Rubygems through >> Darwinports and then Rails trough Rubygems. >> (Moostly following the tutorial here: http://www.sateh.com/projects/ >> sateh/wiki/InstallingRailsOnOSX) >> >> Ruby and Irb seem to work, but when I try to use the rails command to >> start a new app, I get >> >> ---------- >> colinbook:~/Sites/TestApp colin$ rails . >> dyld: NSLinkModule() error >> dyld: Symbol not found: _ENGINE_load_aep >> Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/ >> openssl.bundle >> Expected in: flat namespace >> >> Trace/BPT trap >> ---------- >> >> Does anyone know what do to about it? I''m not very experienced with >> Unix installs or C programming, so googling didn''t help me. >> >> Perhaps someone on the list know what to do ... >> >> Thanks a lot in advance, >> >> Colin Schlüter
Colin Schlüter
2005-Jul-21 16:16 UTC
Re: Problems with fresh Darwinports/Rubygems install on OS X 10.4.2
Hi, thanks for your reply, but isn''t this solution supposed to fix the original Apple Ruby install that came with Tiger while my problem seems to be with the Darwinports Ruby install in /usr/local/bin? I thought I didn''t need to fix my install if I installed my own Ruby version (via Darwinports), please correct me if I''m wrong though ... Colin Am 21.07.2005 um 17:48 schrieb Drew Cox:> Ah! I just ran into the exact same problem last night while I was > trying to move my ruby path from /opt/local/bin to /usr/local/bin ... > you''ll just need to run this script to fix readline and a couple other > things: > > curl -O rufy.com/fix-ruby-tiger.sh; sh fix-ruby-tiger.sh > > ... although I think I might''ve had to do that with sudo (can''t > remember): > > sudo curl -O rufy.com/fix-ruby-tiger.sh; sh fix-ruby-tiger.sh > > Read about the fix here: http://tech.rufy.com/entry/46 > > On 7/21/05, Colin Schlüter <lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org> wrote: > >> Hi, >> >> I''ve a problem with installing Rails on my Powerbook. >> >> I just installed Darwinports, then Ruby and Rubygems through >> Darwinports and then Rails trough Rubygems. >> (Moostly following the tutorial here: http://www.sateh.com/projects/ >> sateh/wiki/InstallingRailsOnOSX) >> >> Ruby and Irb seem to work, but when I try to use the rails command to >> start a new app, I get >> >> ---------- >> colinbook:~/Sites/TestApp colin$ rails . >> dyld: NSLinkModule() error >> dyld: Symbol not found: _ENGINE_load_aep >> Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/ >> openssl.bundle >> Expected in: flat namespace >> >> Trace/BPT trap >> ---------- >> >> Does anyone know what do to about it? I''m not very experienced with >> Unix installs or C programming, so googling didn''t help me. >> >> Perhaps someone on the list know what to do ... >> >> Thanks a lot in advance, >> >> Colin Schlüter >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >-------------------------------------------------- Colin Schlüter -------------------------------------------------- mail mailto:lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org web http://colinschlueter.org/ --------------------------------------------------
Ryan Raaum
2005-Jul-21 18:23 UTC
Re: Problems with fresh Darwinports/Rubygems install on OS X 10.4.2
Ok then. Looking more carefully at your error, the problem is with the openssl.bundle. And I''m personally at a bit of a loss as to how to solve that. Do you have openssl installed? Try installing openssl from ports, maybe? On 7/21/05, Colin Schlüter <lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org> wrote:> Hi, > > thanks for your reply, but isn''t this solution supposed to fix the > original Apple Ruby install that came with Tiger while my problem > seems to be with the Darwinports Ruby install in /usr/local/bin? > > I thought I didn''t need to fix my install if I installed my own Ruby > version (via Darwinports), please correct me if I''m wrong though ... > > Colin > > Am 21.07.2005 um 17:48 schrieb Drew Cox: > > > Ah! I just ran into the exact same problem last night while I was > > trying to move my ruby path from /opt/local/bin to /usr/local/bin ... > > you''ll just need to run this script to fix readline and a couple other > > things: > > > > curl -O rufy.com/fix-ruby-tiger.sh; sh fix-ruby-tiger.sh > > > > ... although I think I might''ve had to do that with sudo (can''t > > remember): > > > > sudo curl -O rufy.com/fix-ruby-tiger.sh; sh fix-ruby-tiger.sh > > > > Read about the fix here: http://tech.rufy.com/entry/46 > > > > On 7/21/05, Colin Schlüter <lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org> wrote: > > > >> Hi, > >> > >> I''ve a problem with installing Rails on my Powerbook. > >> > >> I just installed Darwinports, then Ruby and Rubygems through > >> Darwinports and then Rails trough Rubygems. > >> (Moostly following the tutorial here: http://www.sateh.com/projects/ > >> sateh/wiki/InstallingRailsOnOSX) > >> > >> Ruby and Irb seem to work, but when I try to use the rails command to > >> start a new app, I get > >> > >> ---------- > >> colinbook:~/Sites/TestApp colin$ rails . > >> dyld: NSLinkModule() error > >> dyld: Symbol not found: _ENGINE_load_aep > >> Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/ > >> openssl.bundle > >> Expected in: flat namespace > >> > >> Trace/BPT trap > >> ---------- > >> > >> Does anyone know what do to about it? I''m not very experienced with > >> Unix installs or C programming, so googling didn''t help me. > >> > >> Perhaps someone on the list know what to do ... > >> > >> Thanks a lot in advance, > >> > >> Colin Schlüter > >> > >> _______________________________________________ > >> Rails mailing list > >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > >> > >> > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > -------------------------------------------------- > Colin Schlüter > -------------------------------------------------- > mail mailto:lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org > web http://colinschlueter.org/ > -------------------------------------------------- > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Colin Schlüter
2005-Jul-21 19:24 UTC
Re: Problems with fresh Darwinports/Rubygems install on OS X 10.4.2
Hi, yes, openssl is installed through Darwinports because it''s a required dependencvy for Ruby. So I think ports installed openssl automatically when i choose to install ruby. I just tried deactivating and reactivating openssl and reinstalling everything but the problem still remains the same ... Colin Am 21.07.2005 um 20:23 schrieb Ryan Raaum:> Ok then. Looking more carefully at your error, the problem is with > the openssl.bundle. And I''m personally at a bit of a loss as to how > to solve that. Do you have openssl installed? Try installing openssl > from ports, maybe? > > On 7/21/05, Colin Schlüter <lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org> wrote: > >> Hi, >> >> thanks for your reply, but isn''t this solution supposed to fix the >> original Apple Ruby install that came with Tiger while my problem >> seems to be with the Darwinports Ruby install in /usr/local/bin? >> >> I thought I didn''t need to fix my install if I installed my own Ruby >> version (via Darwinports), please correct me if I''m wrong though ... >> >> Colin >> >> Am 21.07.2005 um 17:48 schrieb Drew Cox: >> >> >>> Ah! I just ran into the exact same problem last night while I was >>> trying to move my ruby path from /opt/local/bin to /usr/local/ >>> bin ... >>> you''ll just need to run this script to fix readline and a couple >>> other >>> things: >>> >>> curl -O rufy.com/fix-ruby-tiger.sh; sh fix-ruby-tiger.sh >>> >>> ... although I think I might''ve had to do that with sudo (can''t >>> remember): >>> >>> sudo curl -O rufy.com/fix-ruby-tiger.sh; sh fix-ruby-tiger.sh >>> >>> Read about the fix here: http://tech.rufy.com/entry/46 >>> >>> On 7/21/05, Colin Schlüter <lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org> wrote: >>> >>> >>>> Hi, >>>> >>>> I''ve a problem with installing Rails on my Powerbook. >>>> >>>> I just installed Darwinports, then Ruby and Rubygems through >>>> Darwinports and then Rails trough Rubygems. >>>> (Moostly following the tutorial here: http://www.sateh.com/ >>>> projects/ >>>> sateh/wiki/InstallingRailsOnOSX) >>>> >>>> Ruby and Irb seem to work, but when I try to use the rails >>>> command to >>>> start a new app, I get >>>> >>>> ---------- >>>> colinbook:~/Sites/TestApp colin$ rails . >>>> dyld: NSLinkModule() error >>>> dyld: Symbol not found: _ENGINE_load_aep >>>> Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/ >>>> openssl.bundle >>>> Expected in: flat namespace >>>> >>>> Trace/BPT trap >>>> ---------- >>>> >>>> Does anyone know what do to about it? I''m not very experienced with >>>> Unix installs or C programming, so googling didn''t help me. >>>> >>>> Perhaps someone on the list know what to do ... >>>> >>>> Thanks a lot in advance, >>>> >>>> Colin Schlüter
Drew Cox
2005-Jul-21 19:52 UTC
Re: Problems with fresh Darwinports/Rubygems install on OS X 10.4.2
Did you try running the readline fix? I actually ended up having to install from a nightly snapshot (from source) and still had to run the patch to get rails to work (I think I had the exact same error when starting webrick). On 7/21/05, Colin Schlüter <lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org> wrote:> Hi, > > yes, openssl is installed through Darwinports because it''s a required > dependencvy for Ruby. So I think ports installed openssl > automatically when i choose to install ruby. > > I just tried deactivating and reactivating openssl and reinstalling > everything but the problem still remains the same ... > > Colin > > Am 21.07.2005 um 20:23 schrieb Ryan Raaum: > > > Ok then. Looking more carefully at your error, the problem is with > > the openssl.bundle. And I''m personally at a bit of a loss as to how > > to solve that. Do you have openssl installed? Try installing openssl > > from ports, maybe? > > > > On 7/21/05, Colin Schlüter <lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org> wrote: > > > >> Hi, > >> > >> thanks for your reply, but isn''t this solution supposed to fix the > >> original Apple Ruby install that came with Tiger while my problem > >> seems to be with the Darwinports Ruby install in /usr/local/bin? > >> > >> I thought I didn''t need to fix my install if I installed my own Ruby > >> version (via Darwinports), please correct me if I''m wrong though ... > >> > >> Colin > >> > >> Am 21.07.2005 um 17:48 schrieb Drew Cox: > >> > >> > >>> Ah! I just ran into the exact same problem last night while I was > >>> trying to move my ruby path from /opt/local/bin to /usr/local/ > >>> bin ... > >>> you''ll just need to run this script to fix readline and a couple > >>> other > >>> things: > >>> > >>> curl -O rufy.com/fix-ruby-tiger.sh; sh fix-ruby-tiger.sh > >>> > >>> ... although I think I might''ve had to do that with sudo (can''t > >>> remember): > >>> > >>> sudo curl -O rufy.com/fix-ruby-tiger.sh; sh fix-ruby-tiger.sh > >>> > >>> Read about the fix here: http://tech.rufy.com/entry/46 > >>> > >>> On 7/21/05, Colin Schlüter <lists-jgP4CM5taTGulFJo9w1mKx2eb7JE58TQ@public.gmane.org> wrote: > >>> > >>> > >>>> Hi, > >>>> > >>>> I''ve a problem with installing Rails on my Powerbook. > >>>> > >>>> I just installed Darwinports, then Ruby and Rubygems through > >>>> Darwinports and then Rails trough Rubygems. > >>>> (Moostly following the tutorial here: http://www.sateh.com/ > >>>> projects/ > >>>> sateh/wiki/InstallingRailsOnOSX) > >>>> > >>>> Ruby and Irb seem to work, but when I try to use the rails > >>>> command to > >>>> start a new app, I get > >>>> > >>>> ---------- > >>>> colinbook:~/Sites/TestApp colin$ rails . > >>>> dyld: NSLinkModule() error > >>>> dyld: Symbol not found: _ENGINE_load_aep > >>>> Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/ > >>>> openssl.bundle > >>>> Expected in: flat namespace > >>>> > >>>> Trace/BPT trap > >>>> ---------- > >>>> > >>>> Does anyone know what do to about it? I''m not very experienced with > >>>> Unix installs or C programming, so googling didn''t help me. > >>>> > >>>> Perhaps someone on the list know what to do ... > >>>> > >>>> Thanks a lot in advance, > >>>> > >>>> Colin Schlüter > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Colin Schlüter
2005-Jul-22 09:57 UTC
Re: Problems with fresh Darwinports/Rubygems install on OS X 10.4.2
Hi Ryan (and everybody else), thanks again, I think I found my problem now: The fresh Ruby install via Darwinports on 10.4.2 (powerpc- darwin8.2.0) also installed the dependencies (libiconv, readline, zlib and openssl) trough Darwinports and it seems that Ruby has an incompatibility with the newest openssl. It''s already in the darwinports bugzilla although I''m not sure if it''s something that has to be fixed in Darwinports or Ruby or openssl: http://bugzilla.opendarwin.org/show_bug.cgi?id=4103 (At least this sounds exactly like my problem.) Thanks a lot, does anyone know how to fix this problem without having to dive into C code? Ciao, Colin Am 22.07.2005 um 02:05 schrieb Ryan Raaum:> Hi Colin, > > I''m just looking over what I have installed on my powerbook here at > home (G4 with Tiger) - it all works. Maybe you can see what differs > from your setup? (Obviously, I have no idea what''s going on with your > setup - but it''s worth a try...) > > Tardis:~/ruby-dev/test ryan$ ruby -v > ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0.0] > > Tardis:~/ruby-dev/test ryan$ port installed > The following ports are currently installed: > rb-rubygems 0.8.10_0 (active) > rb-sqlite 2.2.2_0 (active) > readline 5.0.005_0+darwin_8 (active) > ruby 1.8.2_2 (active) > sqlite 2.8.15_0 (active) > > Tardis:~/ruby-dev/test ryan$ gem list --local > > *** LOCAL GEMS *** > > actionmailer (1.0.0, 0.9.1) > Service layer for easy email delivery and testing. > > actionpack (1.9.0, 1.8.1) > Web-flow and rendering framework putting the VC in MVC. > > actionwebservice (0.8.0, 0.7.1) > Web service support for Action Pack. > > activerecord (1.11.0, 1.10.1) > Implements the ActiveRecord pattern for ORM. > > activesupport (1.1.0, 1.0.4) > Support and utility classes used by the Rails framework. > > rails (0.13.0, 0.12.1) > Web-application framework with template engine, control-flow > layer, > and ORM. > > rake (0.5.4) > Ruby based make-like utility. > > sources (0.0.1) > This package provides download sources for remote gem installation