[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: problem building ruby binding

From: Gyoung-Yoon Noh <nohmad_at_sub-port.net>
Date: 2005-07-25 23:17:29 CEST

2005-07-24 (일), 14:44 +0900, Kouhei Sutou 쓰시길:
> > 1. swig ruby testing fails because of wrong library path.
> > See patch attached.
>
> I can't understand what problem current library path setup
> process has on your environment.
>
> Could you show me the followings?:
>
> * the test result
>
> * ls -l subversion/bindings/swig/ruby/svn/ext/ when
> you comment out "at_exit {FileUtils.rm_rf(ext_dir)}" in
> subversion/bindings/swig/ruby/test/run-test.rb.
>
> * the result when you add "p $LOAD_PATH" to
> the next line of "$LOAD_PATH.unshift(Dir.pwd)" in
> subversion/bindings/swig/ruby/test/run-test.rb.
 
I've configured like this:

$ ./configure --prefix=/usr --with-apr=/usr/bin/apr-config
--with-apr-util=/usr/bin/apu-config --with-neon=/usr/bin/neon-config
--with-ruby-sitedir=/usr/lib/ruby/site_ruby/1.8

and did 'make':

$ make check-swig-rb

After all build(compiling & linking) process finished,
it displays following message:

<snip>

cd /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby; /usr/bin/ruby test/run-test.rb
/home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/svn/error.rb:1:in `require': No such file to load -- svn/ext/core (LoadError)

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/svn/error.rb:1

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/svn/client.rb:2:in `require'

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/svn/client.rb:2

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/test/util.rb:3:in `require'

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/test/util.rb:3

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/test/test_fs.rb:2:in `require'

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/test/test_fs.rb:2
        from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:83:in
`require'
         ... 6 levels...
        from /usr/lib/ruby/1.8/test/unit/autorunner.rb:55:in `[]'
        from /usr/lib/ruby/1.8/test/unit/autorunner.rb:192:in `run'
        from /usr/lib/ruby/1.8/test/unit/autorunner.rb:14:in `run'
        from test/run-test.rb:16
make: *** [check-swig-rb] Error 1

</snip>

After commenting out "at_exit {FileUtils.rm_rf(ext_dir)}" line, still
same result.

$ ls -l subversion/bindings/swig/ruby/svn/ext/
ls: subversion/bindings/swig/ruby/svn/ext/: No such file or directory

$ ls -aF subversion/bindings/swig/ruby/
./ core.la ra.la svn_delta.c svn_ra.c
svn_wc.c
../ core.lo repos.la svn_delta.lo svn_ra.lo
svn_wc.lo
.ext/ core.o svn/ svn_delta.o svn_ra.o
svn_wc.o
.libs/ delta.la svn_client.c svn_fs.c svn_repos.c
test/
client.la fs.la svn_client.lo svn_fs.lo svn_repos.lo
wc.la
core.c libsvn_swig_ruby/ svn_client.o svn_fs.o svn_repos.o

$ ls -aF subversion/bindings/swig/ruby/svn
./ client.rb delta.rb fs.rb ra.rb util.rb
../ core.rb error.rb info.rb repos.rb wc.rb

$ ls -lFR subversion/bindings/swig/ruby/.ext/
subversion/bindings/swig/ruby/.ext/:
total 0
drwxr-xr-x 2 nohmad wheel 16 Jul 25 20:43 svn/

subversion/bindings/swig/ruby/.ext/svn:
total 0
lrwxrwxrwx 1 nohmad wheel 69 Jul 25 20:43 ext
-> /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/.libs/

Regards,

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jul 25 14:18:17 2005

This is an archived mail posted to the Subversion Dev mailing list.