Hi, I was trying to embed some swf flash files into rhtml files. It doesn''t work. Do I need to do something special in rhtml or it is something got to do with webbrick server? Here is the code: <div align="center"> <p><A HREF=index2.html></A> <!-- text used in the movie--> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca b#version=5,0,0,0" WIDTH=550 HEIGHT=400> <PARAM NAME=movie VALUE="star-warpspace.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="star-warpspace.swf" quality=high bgcolor=#000000 WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_ Version=ShockwaveFlash"></EMBED> </OBJECT> </p> <p class="style1"><a href="index2.html" class="style2">enter</a></p> </div> Thanks Ming _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi Ming I was just having this exact same issue yesterday. It was suggested to me to put a slash before the source name, so your would be come / star-warpspace.swf. Of course you''ll want to make sure it''s in the public directory if you name it like that. Hope that helps -Scotty On Aug 7, 2005, at 7:20 AM, Ming Ma wrote:> Hi, > > > > I was trying to embed some swf flash files into rhtml files. It > doesn’t work. Do I need to do something special in rhtml or it is > something got to do with webbrick server? > > > > Here is the code: > > > > <div align="center"> > > <p><A HREF=index2.html></A> <!-- text used in the movie--> > > <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" > > codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ > swflash.cab#version=5,0,0,0" > > WIDTH=550 HEIGHT=400> > > <PARAM NAME=movie VALUE="star-warpspace.swf"> > > <PARAM NAME=quality VALUE=high> > > <PARAM NAME=bgcolor VALUE=#000000> > > <EMBED src="star-warpspace.swf" quality=high bgcolor=#000000 > WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" > PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi? > P1_Prod_Version=ShockwaveFlash"></EMBED> > > </OBJECT> > > </p> > > <p class="style1"><a href="index2.html" class="style2">enter</a></p> > > </div> > > > > Thanks > > > > Ming > > _______________________________________________ > 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
first of all: i''m new to the list, i''m new to ruby, i''m not to suse :) anyway: hi all! here''s my prob: i installed ruby using yast (ruby 1.8.2), then i tried to install gems like this: 1. cd /usr/local/src 2. wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz 3. tar -zxvf rubygems-0.8.11.tgz (which extracts to rubygems-0.8.10, not rubygems-0.8.11 ???) 4. cd rubygems-0.8.10 5. ruby setup.rb 6. this causes the follwing (zlib?) error: As of RubyGems 0.8.0, library stubs are no longer needed. Searching $LOAD_PATH for stubs to optionally delete (may take a while)... ...done. No library stubs found. /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'': No such file to load -- zlib (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:9 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:61:in `manage_gems'' ... 7 levels... from setup.rb:887:in `exec_install'' from setup.rb:705:in `invoke'' from setup.rb:674:in `invoke'' from setup.rb:1352 ... everything i try now: ruby setup.rb setup, ruby setup.rb install, gem install rubygems-update ... everything causes this zlib error. i installed the latest zlib and zlib-devel package via yast... no change. i''m on suse 9.1 i386 ... anyone can help? thanks: lars
sorry for the re-post, but i got no answer on my 1st post, so i''m not even sure i''m on the right list. anyone? first of all: i''m new to the list, i''m new to ruby, i''m not to suse :) anyway: hi all! here''s my prob: i installed ruby using yast (ruby 1.8.2), then i tried to install gems like this: 1. cd /usr/local/src 2. wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz 3. tar -zxvf rubygems-0.8.11.tgz (which extracts to rubygems-0.8.10, not rubygems-0.8.11 ???) 4. cd rubygems-0.8.10 5. ruby setup.rb 6. this causes the follwing (zlib?) error: As of RubyGems 0.8.0, library stubs are no longer needed. Searching $LOAD_PATH for stubs to optionally delete (may take a while)... ...done. No library stubs found. /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'': No such file to load -- zlib (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:9 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:61:in `manage_gems'' ... 7 levels... from setup.rb:887:in `exec_install'' from setup.rb:705:in `invoke'' from setup.rb:674:in `invoke'' from setup.rb:1352 ... everything i try now: ruby setup.rb setup, ruby setup.rb install, gem install rubygems-update ... everything causes this zlib error. i installed the latest zlib and zlib-devel package via yast... no change. i''m on suse 9.1 i386 ... anyone can help? thanks: lars
On 8/7/05, bitrocker <rocknroll-TIooWxMzjyB54TAoqtyWWQ@public.gmane.org> wrote:> > first of all: i''m new to the list, i''m new to ruby, i''m not to suse :) > anyway: hi all! > > here''s my prob: > > i installed ruby using yast (ruby 1.8.2), then i tried to install gems > like this: > > 1. cd /usr/local/src > 2. wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz > 3. tar -zxvf rubygems-0.8.11.tgz > (which extracts to rubygems-0.8.10, not rubygems-0.8.11 ???) > 4. cd rubygems-0.8.10 > 5. ruby setup.rb > 6. this causes the follwing (zlib?) error: > > As of RubyGems 0.8.0, library stubs are no longer needed. > Searching $LOAD_PATH for stubs to optionally delete (may take a while)... > ...done. > No library stubs found. > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'': > No such file to load -- zlib (LoadError) > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require'' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:9 > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require'' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1 > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require'' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:61:in > `manage_gems'' > ... 7 levels... > from setup.rb:887:in `exec_install'' > from setup.rb:705:in `invoke'' > from setup.rb:674:in `invoke'' > from setup.rb:1352 > > ... everything i try now: ruby setup.rb setup, ruby setup.rb install, > gem install rubygems-update ... everything causes this zlib error. i > installed the latest zlib and zlib-devel package via yast... no change. > > i''m on suse 9.1 i386 ... anyone can help? > > thanks: lars >Hi. This is probably a question better suited to the ruby-talk mailing list. I don''t use Suse, but it looks like you are missing Ruby''s zlib extension, which might be installable separately with yast? It SHOULD be part of the core ruby distribution, but for some reason isn''t included with some of the packages that the Linux packagers put together. Assuming yast allows you to search somehow, try searching for all of the available uninstalled packages that have "zlib" in the name. I bet you''ll find something there. Incidentally, you''ll find that until you fix this, no software that requires zlib will work. -- Chad Fowler http://chadfowler.com http://rubycentral.org http://rubygarden.org http://rubygems.rubyforge.org (over 700,000 gems served!)
Jason Ketterman
2005-Aug-10 15:50 UTC
Re: problems installing gems on suse 9.1 (zlib probs?)
I am having the same problem on ubuntu. I haven''t figured out a fix yet either, it appears that when building from source, make doesn''t do anything with the zlib extension. And trying to install from the packages is a nightmare too. Hope someone can figure out a fix soon! - Jason On Aug 10, 2005, at 6:48 AM, Chad Fowler wrote:> On 8/7/05, bitrocker <rocknroll-TIooWxMzjyB54TAoqtyWWQ@public.gmane.org> wrote: > >> >> first of all: i''m new to the list, i''m new to ruby, i''m not to >> suse :) >> anyway: hi all! >> >> here''s my prob: >> >> i installed ruby using yast (ruby 1.8.2), then i tried to install >> gems >> like this: >> >> 1. cd /usr/local/src >> 2. wget http://rubyforge.org/frs/download.php/5207/ >> rubygems-0.8.11.tgz >> 3. tar -zxvf rubygems-0.8.11.tgz >> (which extracts to rubygems-0.8.10, not rubygems-0.8.11 ???) >> 4. cd rubygems-0.8.10 >> 5. ruby setup.rb >> 6. this causes the follwing (zlib?) error: >> >> As of RubyGems 0.8.0, library stubs are no longer needed. >> Searching $LOAD_PATH for stubs to optionally delete (may take a >> while)... >> ...done. >> No library stubs found. >> >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in >> `require__'': >> No such file to load -- zlib (LoadError) >> from >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in >> `require'' >> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:9 >> from >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in >> `require__'' >> from >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in >> `require'' >> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1 >> from >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in >> `require__'' >> from >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in >> `require'' >> from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:61:in >> `manage_gems'' >> ... 7 levels... >> from setup.rb:887:in `exec_install'' >> from setup.rb:705:in `invoke'' >> from setup.rb:674:in `invoke'' >> from setup.rb:1352 >> >> ... everything i try now: ruby setup.rb setup, ruby setup.rb install, >> gem install rubygems-update ... everything causes this zlib error. i >> installed the latest zlib and zlib-devel package via yast... no >> change. >> >> i''m on suse 9.1 i386 ... anyone can help? >> >> thanks: lars >> >> > > Hi. This is probably a question better suited to the ruby-talk > mailing list. > > I don''t use Suse, but it looks like you are missing Ruby''s zlib > extension, which might > be installable separately with yast? It SHOULD be part of the core > ruby distribution, but for some reason isn''t included with some of the > packages that the Linux packagers put together. Assuming yast allows > you to search somehow, try searching for all of the available > uninstalled packages that have "zlib" in the name. I bet you''ll find > something there. > > Incidentally, you''ll find that until you fix this, no software that > requires zlib will work. > > > -- > Chad Fowler > http://chadfowler.com > http://rubycentral.org > http://rubygarden.org > http://rubygems.rubyforge.org (over 700,000 gems served!) > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >
On 8/10/05, Jason Ketterman <jason.ketterman-YHLYzh9cQ8BjrEqMGRc/AA@public.gmane.org> wrote:> > I am having the same problem on ubuntu. I haven''t figured out a fix > yet either, it appears that when building from source, make doesn''t > do anything with the zlib extension. And trying to install from the > packages is a nightmare too. Hope someone can figure out a fix soon! >If you''re building from source, make sure you have the zlib-devel package (or whatever it''s called on ubuntu). If you have it, then rerunning ./configure should pick it up and you should be able to compile and install the zlib extension. -- Chad Fowler http://chadfowler.com http://rubycentral.org http://rubygarden.org http://rubygems.rubyforge.org (over 700,000 gems served!)
In case you still had any questions, here is a sample Rails/Flash application with code samples: http://onrails.org/projects/dvdreleases/dvdreleases/description.html>From the intro:We will describe: * Enabling flash and javascript integration * Embedding the FlashTag in the .rhtml file. * passing initial values to a Flash component from an ActiveView. * embedding multiple Flash components in a .rhtml file. * Invoking remotly an ActionController from a Flash component. * Calling a javascript function from a Flash component -Tom On 8/7/05, Scott Doane <psifire-ee4meeAH724@public.gmane.org> wrote:> Hi Ming > > I was just having this exact same issue yesterday. It was suggested to me to > put a slash before the source name, so your would be come > /star-warpspace.swf. Of course you''ll want to make sure it''s in the public > directory if you name it like that. > > Hope that helps > > -Scotty