# No such file to load -- popup

**URL:** <https://www.ruby-forum.com/t/no-such-file-to-load-popup/163428>\
**Category:** Ruby\
**Created:** [March 20, 2009, 9:43am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-popup/163428 "2009-03-20T09:43:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a88e57/32.png) [@arvin](https://www.ruby-forum.com/u/arvin)\
**Post date:** [March 20, 2009, 9:43am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-popup/163428/1 "2009-03-20T09:43:53Z")

</div>

Hi ,  
i am newbie and i’m trying to open a popup from a ruby code which  
requires popup.rb. when i run the code it says “no such file to load –  
popup” .I tried to download for this for ruby source file , but din’t  
find any. Please help me with this.

Cheerio,  
Arvin

---

<div class="post-metadata">

**Author:** ![arvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a88e57/32.png) [@arvin](https://www.ruby-forum.com/u/arvin)\
**Post date:** [March 20, 2009, 10:41am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-popup/163428/2 "2009-03-20T10:41:19Z")

</div>

> “no such file to load – popup”

What is popup.rb? Or from where did you get it, or which code requires  
it?

---

<div class="post-metadata">

**Author:** ![arvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a88e57/32.png) [@arvin](https://www.ruby-forum.com/u/arvin)\
**Post date:** [March 20, 2009, 1:43pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-popup/163428/3 "2009-03-20T13:43:25Z")

</div>

Aravind K. wrote:

> Marc H. wrote:
> 
> > > “no such file to load – popup”
> > 
> > What is popup.rb? Or from where did you get it, or which code requires  
> > it?
> 
> hi,
> 
> please check the code below, which needs the Popup library
> 
> require ‘Popup’
> 
> Popup.make do  
> h1 “Things To Do”  
> list do  
> p “Try out Ruby”  
> p “Ride a tiger”  
> p “(down River Euphrates)”  
> end  
> end
> 
> Cheerio,  
> Arvin

It could be because of the capitalization. Try replacing that require  
with this:  
require ‘popup’

---

<div class="post-metadata">

**Author:** ![arvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a88e57/32.png) [@arvin](https://www.ruby-forum.com/u/arvin)\
**Post date:** [March 20, 2009, 3:09pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-popup/163428/4 "2009-03-20T15:09:51Z")

</div>

Vikhyat K. wrote:

> Aravind K. wrote:
> 
> > Marc H. wrote:
> > 
> > > > “no such file to load – popup”
> > > 
> > > What is popup.rb? Or from where did you get it, or which code requires  
> > > it?
> > 
> > hi,
> > 
> > please check the code below, which needs the Popup library
> > 
> > require ‘Popup’
> > 
> > Popup.make do  
> > h1 “Things To Do”  
> > list do  
> > p “Try out Ruby”  
> > p “Ride a tiger”  
> > p “(down River Euphrates)”  
> > end  
> > end
> > 
> > Cheerio,  
> > Arvin
> 
> It could be because of the capitalization. Try replacing that require  
> with this:  
> require ‘popup’

i tried capitalizing also… it’s still not working

Cheerio,  
Arvin

---

<div class="post-metadata">

**Author:** ![arvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a88e57/32.png) [@arvin](https://www.ruby-forum.com/u/arvin)\
**Post date:** [March 20, 2009, 10:52am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-popup/163428/5 "2009-03-20T10:52:43Z")

</div>

Marc H. wrote:

> > “no such file to load – popup”
> 
> What is popup.rb? Or from where did you get it, or which code requires  
> it?

hi,

please check the code below, which needs the Popup library

require ‘Popup’

Popup.make do  
h1 “Things To Do”  
list do  
p “Try out Ruby”  
p “Ride a tiger”  
p “(down River Euphrates)”  
end  
end

Cheerio,  
Arvin

---

<div class="post-metadata">

**Author:** ![arvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a88e57/32.png) [@arvin](https://www.ruby-forum.com/u/arvin)\
**Post date:** [March 20, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-popup/163428/6 "2009-03-20T16:27:56Z")

</div>

Aravind K. wrote:

> Hi ,  
> i am newbie and i’m trying to open a popup from a ruby code which  
> requires popup.rb. when i run the code it says “no such file to load –  
> popup” .I tried to download for this for ruby source file , but din’t  
> find any. Please help me with this.
> 
> Cheerio,  
> Arvin

The code you are referring to is part of the “Try Ruby” web app [1], and  
as far as I know has no function outside of that app. It certainly is  
not part of the Ruby standard library. It is (to the best of my  
knowledge) intended as a learning exercise, not an library you use to  
build other applications.

Hope this helps,

- Adam G.

[1] [http://tryruby.hobix.com/](http://tryruby.hobix.com/)

---

<div class="post-metadata">

**Author:** ![arvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a88e57/32.png) [@arvin](https://www.ruby-forum.com/u/arvin)\
**Post date:** [March 20, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-popup/163428/7 "2009-03-20T17:09:20Z")

</div>

> hi , thanks for the reply.
> 
> I din’t know this . 🙂  
> Is there a way to open a popup using ruby?
> 
> Cheerio,  
> Arvin

Yes, but how you do it depends on what ‘platform’ you’re working with.  
If you’re platform is the web, then I’m sure there are many, many ways,  
but I don’t know them 'cause that’s not what I use Ruby for. I’m sure  
other could help you out there.

If you’re doing a desktop application, there are numerous ways to do it.  
They range from simple, lightweight systems like Shoes [1] to full  
fledged GUI toolkits like WxRuby [2] or Ruby-GNOME [3], and plenty of  
more specialized ones like Gosu [4] (which is game-design oriented).

Some alternative interpreters like JRuby [5] and MacRuby [6] provide  
their own methods for making windows, appropriate to the platforms they  
are targeting (the JVM and the OS X Objective-C runtime, respectively).

It’s hard for me to make a recommendation on one of these, as I’ve only  
used a few of them (and there are others I haven’t listed, besides). If  
you’re just playing around, Shoes is a great place to start. Otherwise,  
it might help to have more information about what sort of ‘popup’ you’re  
trying to make.

Hope this helps,

- Adam

[1] [http://shoooes.net/](http://shoooes.net/)  
[2] [http://wxruby.rubyforge.org/wiki/wiki.pl](http://wxruby.rubyforge.org/wiki/wiki.pl)  
[3] [http://ruby-gnome.sourceforge.net/](http://ruby-gnome.sourceforge.net/)  
[4] [http://libgosu.org/](http://libgosu.org/)  
[5] [http://jruby.codehaus.org/](http://jruby.codehaus.org/)  
[6] [http://www.macruby.org/trac/wiki/MacRuby](http://www.macruby.org/trac/wiki/MacRuby)

---

<div class="post-metadata">

**Author:** ![arvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a88e57/32.png) [@arvin](https://www.ruby-forum.com/u/arvin)\
**Post date:** [March 20, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-popup/163428/8 "2009-03-20T16:35:57Z")

</div>

Adam G. wrote:

> Aravind K. wrote:
> 
> > Hi ,  
> > i am newbie and i’m trying to open a popup from a ruby code which  
> > requires popup.rb. when i run the code it says “no such file to load –  
> > popup” .I tried to download for this for ruby source file , but din’t  
> > find any. Please help me with this.
> > 
> > Cheerio,  
> > Arvin
> 
> The code you are referring to is part of the “Try Ruby” web app [1], and  
> as far as I know has no function outside of that app. It certainly is  
> not part of the Ruby standard library. It is (to the best of my  
> knowledge) intended as a learning exercise, not an library you use to  
> build other applications.
> 
> Hope this helps,
> 
> - Adam G.
> 
> [1] [http://tryruby.hobix.com/](http://tryruby.hobix.com/)

hi , thanks for the reply.

I din’t know this . 🙂  
Is there a way to open a popup using ruby?

Cheerio,  
Arvin
