[fxruby-users] Ubuntu - Fxruby - require issue (Mukul)

Mukul Sharma elitecoder.mukul at gmail.com
Mon Oct 4 09:12:27 EDT 2010


Thanks Ralph and Dave,

Apparently the problem was entirely unrelated. My rubygems was installed at
/var/lib instead of /usr/lib default and thats why fox16.so could not be
found.
And update of rubygems, fixed the issue.
Thanks again for your help.

Mukul Sharma

"A person who runs from responsibilities, runs from life."


On Mon, Oct 4, 2010 at 1:50 AM, <fxruby-users-request at rubyforge.org> wrote:

> Send fxruby-users mailing list submissions to
>        fxruby-users at rubyforge.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://rubyforge.org/mailman/listinfo/fxruby-users
> or, via email, send a message with subject or body 'help' to
>        fxruby-users-request at rubyforge.org
>
> You can reach the person managing the list at
>        fxruby-users-owner at rubyforge.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of fxruby-users digest..."
>
>
> Today's Topics:
>
>   1. FXProgressBar slow update; FXDataTarget (Ralph Shnelvar)
>   2. FXMessageBox & Threads (Ralph Shnelvar)
>   3. Ubuntu - Fxruby - require issue (Mukul Sharma)
>   4. Re: Ubuntu - Fxruby - require issue (Ralph Shnelvar)
>   5. Re: Ubuntu - Fxruby - require issue (dave L)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 24 Sep 2010 06:56:23 -0600
> From: Ralph Shnelvar <ralphs at dos32.com>
> To: fxruby-users at rubyforge.org
> Subject: [fxruby-users] FXProgressBar slow update; FXDataTarget
> Message-ID: <1019198642.20100924065623 at dos32.com>
> Content-Type: text/plain; charset="windows-1252"
>
> This is not a question but a mini-report on an issue (and solution) I had
> with FXProgressBar.
>
> I have some code that puts up an FXProgressBar and then uses
> FXDataTarget#value to update the amount of progress.
>
> I also have an FXLabel object and used FXLabel#text to update the label.
>
> The LABEL would change "instantly" but the FXProgressBar object being
> displayed was very far behind the FXLabel object being displayed.
>
> The FXProgress bar object reported on the percentage completion of a CPU
> intensive thread.
>
>
> I played with priorities.  I played with having the CPU intensive thread go
> to sleep.
>
> Nothing worked.
>
>
>
> To make a long story short ... the problem is in the FXDataTarget.
>
> It appears (and this is by observation and not by code inspection) that
> FXDataTarget objects get updated somewhat like chores get executed.
>
> That is, the various objects "connected" to the instantiated FXDataTarget
> variable get updated "whenever."
>
>
> Indeed, I am guessing that all the synchronizations occur at SEL_UPDATE
> time.   SEL_UPDATE on my machine gets triggered about once every 5 seconds
> rather that several times a second.
>
>
> Thus, the solution to my problem was to get rid of the FXDataTarget for the
> progress bar and do a direct assign to FXProgressBar#progress.
>
> Works like a champ.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://rubyforge.org/pipermail/fxruby-users/attachments/20100924/a96d087b/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Mon, 27 Sep 2010 09:44:52 -0600
> From: Ralph Shnelvar <ralphs at dos32.com>
> To: fxruby-users at rubyforge.org
> Subject: [fxruby-users] FXMessageBox & Threads
> Message-ID: <589082004.20100927094452 at dos32.com>
> Content-Type: text/plain; charset="windows-1252"
>
> Is it safe to use FXMessageBox from something other than the main thread?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://rubyforge.org/pipermail/fxruby-users/attachments/20100927/8f8b0a4c/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Sun, 3 Oct 2010 20:50:14 -0400
> From: Mukul Sharma <elitecoder.mukul at gmail.com>
> To: fxruby-users at rubyforge.org
> Subject: [fxruby-users] Ubuntu - Fxruby - require issue
> Message-ID:
>        <AANLkTimJEpRcjB2RrWfBsa5fPv62Tiojq94L7vRfOLTU at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Everyone,
>
> Just decided to play around with Fxruby and followed the installation steps
> found @
>
> http://github.com/lylejohnson/fxruby/wiki/Setting-Up-a-Linux-Build-Environment
>
> <
> http://github.com/lylejohnson/fxruby/wiki/Setting-Up-a-Linux-Build-Environment
> >Everything
> went alright but "require 'fox16'" fails in my script.
> I have already tried running a "require 'rubygems'" before calling for
> "require 'fox16'". It still fails with the following error
>
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'fox16'
> LoadError: no such file to load -- fox16.so
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in
> `gem_original_require'
>  from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require'
> from
> /var/lib/gems/1.8/gems/fxruby-1.6.20-universal-darwin-10/lib/fox16.rb:6
>  from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in
> `gem_original_require'
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require'
>  from (irb):2
>
> Any help or ideas are appreciated. Please help.
>
> Thanks and Regards,
>
> Mukul Sharma
>
> "A person who runs from responsibilities, runs from life."
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://rubyforge.org/pipermail/fxruby-users/attachments/20101003/2d5bff2d/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 4
> Date: Sun, 3 Oct 2010 20:09:19 -0600
> From: Ralph Shnelvar <ralphs at dos32.com>
> To: Mukul Sharma <fxruby-users at rubyforge.org>
> Subject: Re: [fxruby-users] Ubuntu - Fxruby - require issue
> Message-ID: <1196315330.20101003200919 at dos32.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Mukul,
>
>
>
> Sunday, October 3, 2010, 6:50:14 PM, you wrote:
>
>
> Hi Everyone,
>
> Just decided to play around with Fxruby and followed the installation steps
> found @
>
>
> http://github.com/lylejohnson/fxruby/wiki/Setting-Up-a-Linux-Build-Environment
>
> Everything went alright but "require 'fox16'" fails in my script.
> I have already tried running a "require 'rubygems'" before calling for
> "require 'fox16'". It still fails with the following error
>
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'fox16'
> LoadError: no such file to load -- fox16.so
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in
> `gem_original_require'
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require'
> from
> /var/lib/gems/1.8/gems/fxruby-1.6.20-universal-darwin-10/lib/fox16.rb:6
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in
> `gem_original_require'
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require'
> from (irb):2
>
> Any help or ideas are appreciated. Please help.
>
> Thanks and Regards,
>
> Mukul Sharma
>
>
>
> I know this isn't going to help you, but I had the exact same problem under
> Windows and ... dammit ... I don't remember how I fixed it.
>
> I vaguely remember having to download and install the latest version of
> FXRuby ... but I am not sure.  I am sorry.
>
> I am running under Windows and this is what I have that works ....
>
>
>
>
> #!/usr/bin/env ruby
> @@rdebug = false
> # puts $0
> @@rdebug = true if $0.to_s.end_with? "rdebug"
>
> if @@rdebug
>  require 'rubygems'
>  require 'ruby-debug'
>  Debugger.start
> end
>
> require 'pp'      # For pretty printing
>
> require 'ftools'  # For debugging
>
> require 'fox16'
> require "yaml"
>
> include Fox
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://rubyforge.org/pipermail/fxruby-users/attachments/20101003/9d12f516/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 5
> Date: Sun, 3 Oct 2010 22:50:47 -0700 (PDT)
> From: dave L <dglnz at yahoo.com>
> To: fxruby-users at rubyforge.org
> Subject: Re: [fxruby-users] Ubuntu - Fxruby - require issue
> Message-ID: <38701.78044.qm at web30007.mail.mud.yahoo.com>
> Content-Type: text/plain; charset="utf-8"
>
> The error relates to the fact that there is NO PATH to the given file
> fox16.so.
>
> you can add the path into the DOS or CMD environment setting or simply copy
> and
> paste the fox16.so / .DLL and put it into the windows directory -
> c:\windows\system.
>
> HTH.
>
>
>
>
>
>
> ________________________________
> From: Mukul Sharma <elitecoder.mukul at gmail.com>
> To: fxruby-users at rubyforge.org
> Sent: Mon, 4 October, 2010 1:50:14 PM
> Subject: [fxruby-users] Ubuntu - Fxruby - require issue
>
> Hi Everyone,
>
> Just decided to play around with Fxruby and followed the installation steps
> found
> @
> http://github.com/lylejohnson/fxruby/wiki/Setting-Up-a-Linux-Build-Environment
>
> Everything went alright but "require 'fox16'" fails in my script.
> I have already tried running a "require 'rubygems'" before calling for
> "require
> 'fox16'". It still fails with the following error
>
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'fox16'
> LoadError: no such file to load -- fox16.so
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in
> `gem_original_require'
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require'
> from
> /var/lib/gems/1.8/gems/fxruby-1.6.20-universal-darwin-10/lib/fox16.rb:6
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in
> `gem_original_require'
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require'
> from (irb):2
>
> Any help or ideas are appreciated. Please help.
>
> Thanks and Regards,
>
> Mukul Sharma
>
> "A person who runs from responsibilities, runs from life."
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://rubyforge.org/pipermail/fxruby-users/attachments/20101003/14ee62ed/attachment.html
> >
>
> ------------------------------
>
> _______________________________________________
> fxruby-users mailing list
> fxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/fxruby-users
>
> End of fxruby-users Digest, Vol 72, Issue 1
> *******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20101004/4b3e2364/attachment-0004.html>


More information about the fxruby-users mailing list