Yaakov, thanks for the help with sorting out my last installation problem.

I had ruby gtk2 working and then it broke after I added a few more
packages.  I installed the additional packages following the
http://sourceware.org/cygwinports/ directions as I understand them.
This time I suspect I am not running the ports version of atk.so but
don't know how to check for this or fix it.  Can someone help me
understand what step or concept I am missing on adding packages and how
to fix my current problem?

Below I have included the error, a cygcheck on the problem library, the
steps I used to do a clean install of cygwin and ruby with gtk2 (the
thing I was missing the first time was to have both my original download
site and sourceware.org <http://sourceware.org> selected rather than
just sourceware.org <http://sourceware.org>), and cygcheck -srv output
(posted at http://www.boardsailor.com/cygwin/cygcheck-srv.txt ).

Thanks,
   Michael

PS: Sorry for posting this again.  The message I sent last time is not 
readable in the archive and I suspect that this is why no one replied to 
it so I am sending it again.

    $ ruby -e "require 'gtk2'"
    /usr/lib/ruby/site_ruby/1.8/i386-cygwin/atk.so: No such process -
    /usr/lib/ruby/site_ruby/1.8/i386-cygwin/atk.so (LoadError)
            from /usr/lib/ruby/site_ruby/1.8/atk.rb:2
            from /usr/lib/ruby/site_ruby/1.8/gtk2/base.rb:13:in `require'
            from /usr/lib/ruby/site_ruby/1.8/gtk2/base.rb:13
            from /usr/lib/ruby/site_ruby/1.8/gtk2.rb:11:in `require'
            from /usr/lib/ruby/site_ruby/1.8/gtk2.rb:11
            from -e:1:in `require'
            from -e:1

    $ cygcheck -f /usr/lib/ruby/site_ruby/1.8/i386-cygwin/atk.so
    /usr/lib/ruby/site_ruby/1.8/atk.rb
    /usr/lib/ruby/site_ruby/1.8/gtk2/base.rb
    ruby-atk-0.18.1-2
    ruby-atk-0.18.1-2
    ruby-gtk2-0.18.1-2

    $ cygcheck /usr/lib/ruby/site_ruby/1.8/i386-cygwin/atk.so
    C:\cygwin/lib\ruby/site_ruby/1.8/i386-cygwin/atk.so
      C:\cygwin\bin\cygatk-1.0-0.dll
        C:\cygwin\bin\cygwin1.dll
          C:\WINDOWS\system32\ADVAPI32.DLL
            C:\WINDOWS\system32\KERNEL32.dll
              C:\WINDOWS\system32\ntdll.dll
            C:\WINDOWS\system32\RPCRT4.dll
              C:\WINDOWS\system32\Secur32.dll
        C:\cygwin\bin\cygglib-2.0-0.dll
          C:\cygwin\bin\cygiconv-2.dll
          C:\cygwin\bin\cygintl-8.dll
          C:\cygwin\bin\cygpcre-0.dll
        C:\cygwin\bin\cyggobject-2.0-0.dll
        C:\cygwin\bin\cygintl-3.dll
      C:\cygwin\bin\cygruby18.dll
        C:\cygwin\bin\cygcrypt-0.dll
        C:\WINDOWS\system32\USER32.dll
          C:\WINDOWS\system32\GDI32.dll
      C:\cygwin/lib\ruby/site_ruby/1.8/i386-cygwin\glib2.so
        C:\cygwin\bin\cyggthread-2.0-0.dll

I did a clean install by following the directions at
http://sourceware.org/cygwinports/ and the following

Make a download directory and use it for the "Local Package Directory". 
  I used

   C:\Documents and Settings\Administrator\My Documents\Downloads\Cygwin
   Use this directory for all of the steps below and do not delete 
anything until you are completely done with the installation.
Install using setup.exe from ftp://mirror.mcs.anl.gov.  Take default 
packages and added shells/mintty and web/{wget,wput}.

   Exited setup.exe when it was done.
Run Start/All Programs/Cygwin/MinTTY   # this initializes the 
/etc/password file and other things.
   Exited MinTTY
Run setup.exe from ftp://mirror.mcs.anl.gov.

   Download without installing
   Select X11/{font-bh-lucidatyewriter* twm xinit xcalc xclock } libcairo2
Run Downloads/setup.exe -X
   Download Without Installing
   Added ftp://sourceware.org/pub/cygwinports. Be sure and click "Add". 
  Made sure sourceware.org <http://sourceware.org> and 
ftp://mirror.mcs.anl.gov are both selected. If you see the "This 
setup.ini is older ..." question, you only have sourceware and need to 
make sure ftp://mirror.mcs.anl.gov is selected too.  Select "No" and try 
again.   Add Download Sites by holding the "Ctrl" key and left clicking 
a site.

   Select Ruby/{ruby-gdk-pixbuf2 ruby-gtk2 }
   Downloaded and closed out setup.exe.  Answer "yes" to any "package 
needed, do you want to install it?" questions.
   Run Start/All Programs/Cygwin/MinTTY and copy and past the following 
command to give the ports script priority.  The middle mouse button 
pastes in MinTTY.

      sed -i -e "/^setup-timestamp:/ s/ \(.*\)/ $(date +%s)/" "$(cygpath 
-u "$(cat /etc/setup/last-cache)")/ftp%3a%2f%2fsourceware.org 
<http://2fsourceware.org>%2fpub%2fcygwinports/setup.ini"

      exit MinTTY
Run Downloads/setup.exe
   Select "Install from Local Directory"
   Select X11/{font-bh-lucidatyewriter* twm xinit xcalc xclock }
   Select Ruby/{ruby-gdk-pixbuf2 ruby-gtk2}
Test installation by

   Start/All Programs/Cygwin-X/XWin Server  # Enter the following 
commands in the "X ~" window (xterm).
   ruby -e "require 'gtk2'"   # This tests to see if ruby can call gtk2. 
  If this works, try something more interesting.

   # run Hello.rb by coping the code at 
http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk-helloworld and 
pasting it into hello.rb
   cat > hello.rb

   # paste the text using the middle mouse button.
   "Ctrl-D" # closes the file.
   ruby hello.rb
After this, I installed some additional packages like python following 
the directions at http://sourceware.org/cygwinports/ and the ruby-gtk2 
script stopped working.  I reinstalled the ruby-gtk2 packages from ports 
and that did not help.


I have posted a copy of the cygcheck -srv at
         http://www.boardsailor.com/cygwin/cygcheck-srv.txt



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to