Belorion | 1 Aug 2005 01:30
Picon

ruby/swig/svn load error

I just finished installing the SVN binding for ruby using SWIG 1.3.24
(swig 1.3.25 wouldn't compile -- syntax errors).

I reconfigured an reinstalled Subversion (1.2.1) afterwards so that it
knew about the bindings (as per the instructions[1]).  I did a `make
swig-rb` with no problems, a `make check-swig-rb` in which unit tests
are run, no problem.  I did a make install-swig-rb.

However, when I do a `ruby -e 'require "svn/core"' I get this error:

/usr/local/lib/ruby/site_ruby/1.8/i686-linux/svn/ext/core.so:
libsvn_swig_ruby-1.so.0: cannot open shared object file: No such file
or directory - /usr/local/lib/ruby/site_ruby/1.8/i686-linux/svn/ext/core.so
(LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/svn/error.rb:1
        from /usr/local/lib/ruby/site_ruby/1.8/svn/core.rb:3:in `require'
        from /usr/local/lib/ruby/site_ruby/1.8/svn/core.rb:3
        from -e:1:in `require'
        from -e:1

Now, I can see libsvn_swig_ruby-1.so.0 in /usr/local/lib.  Why can't it find it?

I don't know if this is relevant, but during the `make
install-swig-rb` I get a lot of these "warnings":

libtool: link: warning:
`/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../..//libdb-4.2.la' seems
to be moved
libtool: link: warning:
`/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../..//libexpat.la' seems
(Continue reading)

Joel VanderWerf | 1 Aug 2005 02:52
Picon

browsing gem docs


This little script generates a simple web page containing a table of
(name, title, link-to-rdocs) for each installed gem. Could something
like this be incorporated into gem so that each time a gem is installed
you get a nice links page?

#!/usr/bin/env ruby

require "amrita/template"
include Amrita

Dir.chdir "/usr/local/lib/ruby/gems/1.8/doc"

tmpl = TemplateText.new <<END
<table border="1">
  <tr><th>Name</th><th>Title</th><th>Gem Docs</tr>
  <tr id=table1>
    <td id="name"></td>
    <td id="title"></td>
    <td><a id="gemdocs"></a></td>
  </tr>
</table>
END

links = Dir['*/rdoc/index.html']

linkdata = links.map do |link|
  {
    :name     => link[/(.*?)\//,1],
    :title    =>
(Continue reading)

Kouhei Sutou | 1 Aug 2005 03:10
Favicon
Gravatar

Re: ruby/swig/svn load error

Hi,

In <a48d774d0507311630173e4da3 <at> mail.gmail.com>
  "ruby/swig/svn load error" on Mon, 1 Aug 2005 08:30:53 +0900,
  Belorion <belorion <at> gmail.com> wrote:

> I just finished installing the SVN binding for ruby using SWIG 1.3.24
> (swig 1.3.25 wouldn't compile -- syntax errors).

You can compile with SWIG 1.3.25 by applying the attached
patch. This change is included in trunk.

> However, when I do a `ruby -e 'require "svn/core"' I get this error:
> 
> /usr/local/lib/ruby/site_ruby/1.8/i686-linux/svn/ext/core.so:
> libsvn_swig_ruby-1.so.0: cannot open shared object file: No such file
> or directory - /usr/local/lib/ruby/site_ruby/1.8/i686-linux/svn/ext/core.so
> (LoadError)
snip
> Now, I can see libsvn_swig_ruby-1.so.0 in /usr/local/lib.  Why can't it find it?

Could you show me the result of the following commands?

  (1) % ldd /usr/local/lib/ruby/site_ruby/1.8/i686-linux/svn/ext/core.so

  (2) % env LD_LIBRARY_PATH=/usr/local/lib ldd /usr/local/lib/ruby/site_ruby/1.8/i686-linux/svn/ext/core.so

  (3) % env LD_LIBRARY_PATH=/usr/local/lib ruby -e 'require "svn/core"'

If (2) and (3) don't occur any errors, could you
(Continue reading)

Joel VanderWerf | 1 Aug 2005 03:13
Picon

[rake] excluding dirs with FileList


How can I construct a FileList that excludes dirs? Not a particular
directory, but _any_ directory?

I had hoped that #exclude could be passed an object whose #=== method
returned true for a dir (using File#directory?). But #exclude tries to
turn its argument into a string and build up a regex.

--

-- 
      vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Belorion | 1 Aug 2005 03:38
Picon

Re: ruby/swig/svn load error

On 7/31/05, Kouhei Sutou <kou <at> cozmixng.org> wrote:
> You can compile with SWIG 1.3.25 by applying the attached
> patch. This change is included in trunk.

I think you forgot to attach the patch :).  Where would I find it
online?  I am browsing the CVS repository on sourceforge, but can't
seem to find the file I need.

> Could you show me the result of the following commands?
> 
>   (1) % ldd /usr/local/lib/ruby/site_ruby/1.8/i686-linux/svn/ext/core.so

linux-gate.so.1 =>  (0xffffe000)
 libsvn_swig_ruby-1.so.0 => not found
 libsvn_delta-1.so.0 => /usr/local/lib/libsvn_delta-1.so.0 (0x40026000)
 libsvn_diff-1.so.0 => /usr/local/lib/libsvn_diff-1.so.0 (0x4002f000)
 libsvn_subr-1.so.0 => /usr/local/lib/libsvn_subr-1.so.0 (0x40035000)
 libapr-0.so.0 => /usr/local/apr/lib/libapr-0.so.0 (0x40057000)
 librt.so.1 => /lib/tls/librt.so.1 (0x40077000)
 libm.so.6 => /lib/tls/libm.so.6 (0x4007f000)
 libcrypt.so.1 => /lib/libcrypt.so.1 (0x400a1000)
 libnsl.so.1 => /lib/libnsl.so.1 (0x400d3000)
 libpthread.so.0 => /lib/tls/libpthread.so.0 (0x400e8000)
 libdl.so.2 => /lib/libdl.so.2 (0x400f8000)
 libc.so.6 => /lib/tls/libc.so.6 (0x400fb000)
 libaprutil-0.so.0 => /usr/local/apr/lib/libaprutil-0.so.0 (0x40210000)
 libdb-4.2.so => /usr/lib/tls/libdb-4.2.so (0x40225000)
 libexpat.so.0 => /usr/lib/libexpat.so.0 (0x402fb000)
 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

(Continue reading)

Stoyan Zhekov | 1 Aug 2005 03:55
Picon
Gravatar

Re: browsing gem docs

On 8/1/05, Joel VanderWerf <vjoel <at> path.berkeley.edu> wrote:
> 
> This little script generates a simple web page containing a table of
> (name, title, link-to-rdocs) for each installed gem. Could something
> like this be incorporated into gem so that each time a gem is installed
> you get a nice links page?

Try:  

> gem_server

from your shell. By default it listen on port 8808 (try
http://machine.with.gems:8808/  in
your browser)

John-Mason P. Shackelford | 1 Aug 2005 04:18
Picon
Gravatar

Re: Any interest in writing gui library on top of qtruby?

An excellent place to start would be helping to get QtRuby runnning
against Qt 4.0 and on Windows. I suspect if QtRuby were easy to
configure on all platforms on which Ruby runs it would eventually
eclipse the other GUI frameworks available for Ruby.

John-Mason Shackelford

Software Developer
Pearson Educational Measurement

2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
john-mason.shackelford <at> pearson.com
http://pearsonedmeasurement.com

Kouhei Sutou | 1 Aug 2005 04:22
Favicon
Gravatar

Re: ruby/swig/svn load error

Hi,

In <a48d774d05073118382d1ae81c <at> mail.gmail.com>
  "Re: ruby/swig/svn load error" on Mon, 1 Aug 2005 10:38:14 +0900,
  Belorion <belorion <at> gmail.com> wrote:

> > You can compile with SWIG 1.3.25 by applying the attached
> > patch. This change is included in trunk.
> 
> I think you forgot to attach the patch :).  Where would I find it
> online?  I am browsing the CVS repository on sourceforge, but can't
> seem to find the file I need.

I'm so sorry...
I really attached the patch this time!

Thanks,
--
kou
Index: subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c
===================================================================
--- subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c	(revision 15525)
+++ subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c	(working copy)
 <at>  <at>  -1,10 +1,18  <at>  <at> 
 #include "swigutil_rb.h"
 #include <st.h>

+#if SVN_SWIG_VERSION >= 103025
(Continue reading)

Belorion | 1 Aug 2005 04:44
Picon

Re: ruby/swig/svn load error

Thanks Kou, the patch fixed the compilation issues with 1.3.25.  Any
suggestions as to how to fix the library linking issue permanently, so
I don't have to do this ...

(1) % ldd /usr/local/lib/ruby/site_ruby/1.8/i686-linux/svn/ext/core.so

 (2) % env LD_LIBRARY_PATH=/usr/local/lib ldd
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/svn/ext/core.so

 (3) % env LD_LIBRARY_PATH=/usr/local/lib ruby -e 'require "svn/core"'

Everytime?  Thanks again.

Matt

Joel VanderWerf | 1 Aug 2005 04:54
Picon

Re: browsing gem docs

Stoyan Zhekov wrote:
> On 8/1/05, Joel VanderWerf <vjoel <at> path.berkeley.edu> wrote:
> 
>>This little script generates a simple web page containing a table of
>>(name, title, link-to-rdocs) for each installed gem. Could something
>>like this be incorporated into gem so that each time a gem is installed
>>you get a nice links page?
> 
> 
> Try:  
> 
> 
>>gem_server
> 
> 
> from your shell. By default it listen on port 8808 (try
> http://machine.with.gems:8808/  in
> your browser)
> 

Very nice, but why does it depend on a web server? It's just a static
page, AFAICT. Does it do something more?

I'd really just like to have a bookmark in my browser so I can quickly
go to all my installed gem docs. Running a server to do that seems a
little excessive....

But at least now I realize I should have used gemspec files as input
rather than regexes.

(Continue reading)


Gmane