Hello, after I wasn''t able to install wxruby via gem (404) I downloaded the file from rubyforge and installed it on my intel mac. No failure the so I tried to start the minimal.rb with ruby -r/r?/ ubegems <path>... This didn''t work so I tried to do it in irb but the same error occured: irb(main):001:0> require ''rubygems'' => true irb(main):002:0> load ''/usr/local/lib/ruby/gems/1.8/gems/wxruby2- preview-0.0.35-i686-darwin8.4.1/samples/minimal/minimal.rb'' dyld: NSLinkModule() error dyld: Library not loaded: /usr/local/lib/libpng.3.dylib Referenced from: /usr/local/lib/ruby/gems/1.8/gems/wxruby2- preview-0.0.35-i686-darwin8.4.1/lib/wxruby2.bundle Reason: image not found Trace/BPT trap Regards Florian
Le 27 sept. 06 ? 07:56, Florian A?mann a ?crit :> Hello, after I wasn''t able to install wxruby via gem (404) Imay be the server was down ? try again, i did that this morning the finge in the noze ))) best, Yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20060927/d08b6867/attachment.html
Florian A?mann wrote:> Hello, after I wasn''t able to install wxruby via gem (404) I > downloaded the file from rubyforge and installed it on my intel mac. > No failure the so I tried to start the minimal.rb with ruby -r/r?/ > ubegems <path>... > This didn''t work so I tried to do it in irb but the same error occured:when you simply run "ruby -rubygems minimal.rb" you get an error about dyld not being loaded? That seems very strange.> > irb(main):001:0> require ''rubygems'' > => trueAfter that, try: require ''wx'' That should load the wxruby2 library, without mixing in any possible problems with the minimal sample. Kevin
Alex Fenton
2006-Oct-02 08:00 UTC
[Wxruby-users] Intel Mac: Installation success, execution failed
Florian A?mann wrote:> irb(main):001:0> require ''rubygems'' > => true > irb(main):002:0> load ''/usr/local/lib/ruby/gems/1.8/gems/wxruby2- > preview-0.0.35-i686-darwin8.4.1/samples/minimal/minimal.rb'' > dyld: NSLinkModule() error > dyld: Library not loaded: /usr/local/lib/libpng.3.dylibI wonder if the intel-mac WxWidgets library included in the gem has been built against the standard libpng instead of using the one bundled with wx? I don''t have access to this platform but perhaps someone can have a look - the ./configure script for WxWidgets tells you which one it''s using when it finishes. alex
Florian A?mann wrote:> Hello, after I wasn''t able to install wxruby via gem (404) I > downloaded the file from rubyforge and installed it on my intel mac.PS - I think we ran into a wrinkle with rubygems and the way the build tools version number is included on OS X gem filenames - when this was deleted, the gem command line tool can''t find the right package. This was tweaked since the last version so might well work better alex
Toby Butzon
2006-Oct-02 13:49 UTC
[Wxruby-users] Intel Mac: Installation success, execution failed
Hi, On 10/2/06, Alex Fenton <alex at pressure.to> wrote:> Florian A?mann wrote: > > irb(main):001:0> require ''rubygems'' > > => true > > irb(main):002:0> load ''/usr/local/lib/ruby/gems/1.8/gems/wxruby2- > > preview-0.0.35-i686-darwin8.4.1/samples/minimal/minimal.rb'' > > dyld: NSLinkModule() error > > dyld: Library not loaded: /usr/local/lib/libpng.3.dylibI came across this the other day. To fix it, I installed libpng through Darwin Ports, which put it in /opt/local/lib/libpng*, so I then made a symlink from /usr/local/lib/libpng.3.dylib to /opt/local/lib/libpng.3.dylib. This seems to solve the problem on my box. -- Toby Butzon
Florian Aßmann
2006-Oct-02 17:52 UTC
[Wxruby-users] Fixed: Intel Mac: Installation success, execution failed
Ok, I missed the libpng, should be mentioned at http:// wxruby.rubyforge.org/wiki/wiki.pl?Installation. :) Why WXRuby searches for the libpng in /usr/local... ? Aren''t there any ways/indices to find the location of this lib? $ sudo gem install wxruby2-previewSelect which gem to install for your platform (i686-darwin8.7.1) 1. wxruby2-preview 0.0.35 (i486-linux) 2. wxruby2-preview 0.0.35 (i686-darwin8.4.1) 3. wxruby2-preview 0.0.35 (powerpc-darwin7.9.0) 4. Cancel installation > 2 ERROR: While executing gem ... (OpenURI::HTTPError) 404 Not Found But the gem still couldn''t be found, tried to sysupdate my rubygems before this try. Thanks and Regards Florian Am 02.10.2006 um 15:49 schrieb Toby Butzon:> Hi, > > On 10/2/06, Alex Fenton <alex at pressure.to> wrote: >> Florian A?mann wrote: >>> irb(main):001:0> require ''rubygems'' >>> => true >>> irb(main):002:0> load ''/usr/local/lib/ruby/gems/1.8/gems/wxruby2- >>> preview-0.0.35-i686-darwin8.4.1/samples/minimal/minimal.rb'' >>> dyld: NSLinkModule() error >>> dyld: Library not loaded: /usr/local/lib/libpng.3.dylib > > I came across this the other day. To fix it, I installed libpng > through Darwin Ports, which put it in /opt/local/lib/libpng*, so I > then made a symlink from /usr/local/lib/libpng.3.dylib to > /opt/local/lib/libpng.3.dylib. This seems to solve the problem on my > box. > > -- > Toby Butzon > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users
Alex Fenton
2006-Oct-02 20:54 UTC
[Wxruby-users] Fixed: Intel Mac: Installation success, execution failed
Florian A?mann wrote:> Ok, I missed the libpng, should be mentioned at http:// > wxruby.rubyforge.org/wiki/wiki.pl?Installation. :) >I think it''s a little glitch with the build, thanks for reporting the bug. The gems should be all-in-one and not have dependencies. I think people who are building gems just need to ensure that wxWidgets was built with: --with-png=builtin and similarly for tiff and jpeg; the output from ./configure says whether system or builtin versions will be used.> $ sudo gem install wxruby2-previewSelect which gem to install for > your platform (i686-darwin8.7.1) > 1. wxruby2-preview 0.0.35 (i486-linux) > 2. wxruby2-preview 0.0.35 (i686-darwin8.4.1) > 3. wxruby2-preview 0.0.35 (powerpc-darwin7.9.0) > 4. Cancel installation > > 2 > ERROR: While executing gem ... (OpenURI::HTTPError) > 404 Not Found >Could you send me the output of ruby -e ''puts RUBY_PLATFORM'' thanks alex
Sean Long
2006-Oct-03 00:22 UTC
[Wxruby-users] Fixed: Intel Mac: Installation success, execution failed
I built the Intel Mac 0.0.35 gem but never tested it because I have been very busy lately. When I built wxWidgets I did NOT specify --with-png=builtin. Hopefully I will get some time soon so I can fix my wxWidgets build to generate working wxRuby gems. Sorry for any inconvenience. Maybe the wiki should have a page with how to build the ''APPROVED'' wxWidgets lib for each platform. Sean On 10/2/06, Alex Fenton <alex at pressure.to> wrote:> Florian A?mann wrote: > > Ok, I missed the libpng, should be mentioned at http:// > > wxruby.rubyforge.org/wiki/wiki.pl?Installation. :) > > > I think it''s a little glitch with the build, thanks for reporting the > bug. The gems should be all-in-one and not have dependencies. I think > people who are building gems just need to ensure that wxWidgets was > built with: > > --with-png=builtin > > and similarly for tiff and jpeg; the output from ./configure says > whether system or builtin versions will be used. > > $ sudo gem install wxruby2-previewSelect which gem to install for > > your platform (i686-darwin8.7.1) > > 1. wxruby2-preview 0.0.35 (i486-linux) > > 2. wxruby2-preview 0.0.35 (i686-darwin8.4.1) > > 3. wxruby2-preview 0.0.35 (powerpc-darwin7.9.0) > > 4. Cancel installation > > > 2 > > ERROR: While executing gem ... (OpenURI::HTTPError) > > 404 Not Found > > > Could you send me the output of ruby -e ''puts RUBY_PLATFORM'' > > thanks > alex > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >
Alex Fenton
2006-Oct-03 06:54 UTC
[Wxruby-users] Fixed: Intel Mac: Installation success, execution failed
Hi Sean Sean Long wrote:> I built the Intel Mac 0.0.35 gem but never tested it because I have > been very busy lately. When I built wxWidgets I did NOT specify > --with-png=builtin. >I''m not 100% sure that''s it, but it seems likely then.> Hopefully I will get some time soon so I can fix my wxWidgets build to > generate working wxRuby gems. >Sounds like the gem is fine apart from that. We''ll be happy to receive a gem whenever you have time. Much appreciated.> Sorry for any inconvenience. >No worries. We didn''t know it would cause a problem> Maybe the wiki should have a page with how to build the ''APPROVED'' > wxWidgets lib for each platform. >Good idea cheers alex
Florian Aßmann
2006-Oct-03 07:02 UTC
[Wxruby-users] Fixed: Intel Mac: Installation success, execution failed
No problem Sean, I''m grateful to you for building it anyway. Alex, I got this: i686-darwin8.7.1 Regards Florian Am 03.10.2006 um 02:22 schrieb Sean Long:> I built the Intel Mac 0.0.35 gem but never tested it because I have > been very busy lately. When I built wxWidgets I did NOT specify > --with-png=builtin. > > Hopefully I will get some time soon so I can fix my wxWidgets build to > generate working wxRuby gems. > > Sorry for any inconvenience. > > Maybe the wiki should have a page with how to build the ''APPROVED'' > wxWidgets lib for each platform. > > Sean > > On 10/2/06, Alex Fenton <alex at pressure.to> wrote: >> Florian A?mann wrote: >>> Ok, I missed the libpng, should be mentioned at http:// >>> wxruby.rubyforge.org/wiki/wiki.pl?Installation. :) >>> >> I think it''s a little glitch with the build, thanks for reporting the >> bug. The gems should be all-in-one and not have dependencies. I think >> people who are building gems just need to ensure that wxWidgets was >> built with: >> >> --with-png=builtin >> >> and similarly for tiff and jpeg; the output from ./configure says >> whether system or builtin versions will be used. >>> $ sudo gem install wxruby2-previewSelect which gem to install for >>> your platform (i686-darwin8.7.1) >>> 1. wxruby2-preview 0.0.35 (i486-linux) >>> 2. wxruby2-preview 0.0.35 (i686-darwin8.4.1) >>> 3. wxruby2-preview 0.0.35 (powerpc-darwin7.9.0) >>> 4. Cancel installation >>>> 2 >>> ERROR: While executing gem ... (OpenURI::HTTPError) >>> 404 Not Found >>> >> Could you send me the output of ruby -e ''puts RUBY_PLATFORM'' >> >> thanks >> alex >> >> >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users
Sean Long
2006-Oct-03 08:17 UTC
[Wxruby-users] Fixed: Intel Mac: Installation success, execution failed
> > Maybe the wiki should have a page with how to build the ''APPROVED'' > > wxWidgets lib for each platform.These are the build settings I use on OSX (I added the --with-png=builtin) cd to wxWidgets directory root mkdir osx_build cd osx_build ../configure --enable-debug=no --enable-shared=no --enable-static=yes --enable-unicode --with-png=builtin make -j 2 sudo make install cd .. mkdir osx_build_debug ../configure --enable-debug=yes --enable-shared=no --enable-static=yes --enable-unicode --with-png=builtin make -j 2 sudo make install I use -j 2 on make since I have a dual processor machine. I am building the Intel OS X 0.0.36 gem as I write this. Sean