Hi,
In <f534aee30704141547v5e754b77g437dde4df2548f17@mail.gmail.com>
"Re: make_gem.rb" on Sat, 14 Apr 2007 16:47:37 -0600,
"D.J. Heap" <djheap@gmail.com> wrote:
> I've tried this now and I'm getting close, I think, but I'm still
> missing something -- invoking it like this:
>
> "ruby.exe" "C:\Projects\Subversion\build\win32\make_gem.rb" --output-dir="dist"
> "C:\Projects\Subversion\dist\svn-win32-trunk\README.txt" "C:\Projects\Subversion
> \dist\svn-win32-trunk\ruby" "C:\Projects\Subversion\dist\svn-win32-trunk\license
> s" "C:\Projects\Subversion\dist\svn-win32-trunk\share"
>
> Results in this error:
>
> c:/Ruby18/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file to load -- svn/ext/core
> (LoadError)
> from c:/Ruby18/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> from C:/Projects/Subversion/dist/svn-win32-trunk/ruby/lib/svn/error.rb:2
>
> The dist tree looks like:
>
> Directory of C:\Projects\Subversion\dist\svn-win32-trunk
>
> 04/14/2007 04:34 PM <DIR> .
> 04/14/2007 04:34 PM <DIR> ..
> 04/14/2007 04:34 PM <DIR> bin
> 04/14/2007 04:34 PM <DIR> doc
> 04/14/2007 04:34 PM <DIR> iconv
> 04/14/2007 04:34 PM <DIR> include
> 04/14/2007 04:34 PM <DIR> javahl
> 04/14/2007 04:34 PM <DIR> lib
> 04/14/2007 04:34 PM <DIR> licenses
> 04/14/2007 04:34 PM <DIR> perl
> 04/14/2007 04:34 PM <DIR> python
> 04/14/2007 04:34 PM <DIR> ruby
> 04/14/2007 04:34 PM <DIR> share
Could you show me the following directories too?
* C:\Projects\Subversion\dist\svn-win32-trunk\ruby
* C:\Projects\Subversion\dist\svn-win32-trunk\ruby\ext
* C:\Projects\Subversion\dist\svn-win32-trunk\ruby\ext\svn
* C:\Projects\Subversion\dist\svn-win32-trunk\ruby\ext\svn\ext
And could you add some debug prints and show me the result?
...
target_dirs.each do |dir|
next unless File.basename(dir) == "ruby"
base_dir = File.expand_path(dir)
$LOAD_PATH.unshift(File.join(base_dir, "ext"))
$LOAD_PATH.unshift(File.join(base_dir, "lib"))
end
+p target_dirs
+p target_dirs.collect {|dir| File.basename(dir)}
+p target_dirs.collect {|dir| File.expand_path(dir)}
+p $LOAD_PATH
...
Thanks,
--
kou
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 15 02:44:32 2007