On 09/08/11 at 01:17 +0900, Freak On A Leash wrote:
> Hi,
> 
> I've problem with my Ruby running debian unstable (sid) 2.6.39-2-amd64
> 
> I've got these packages from debian repository:
> 
> ii  libruby1.8                               1.8.7.352-2
> Libraries necessary to run Ruby 1.8
> ii  libtcltk-ruby1.8                         1.8.7.352-2
> Tcl/Tk interface for Ruby 1.8
> ii  ruby1.8                                  1.8.7.352-2
> Interpreter of object-oriented scripting language Ruby 1.8
> ii  ruby1.8-dev                              1.8.7.352-2
> Header files for compiling extension modules for the Ruby 1.8
> ii  ruby1.8-full                             1.8.7.352-2
> Ruby 1.8 full installation
> ii  rubygems                                 1.7.2-1
> package management framework for Ruby libraries/applications
> ii  rubygems1.8                              1.7.2-1
> Transitional package for rubygems
> ii  rubygems                                 1.7.2-1
> package management framework for Ruby libraries/applications
> ii  rubygems1.8                              1.7.2-1
> Transitional package for rubygems
> 
> Over gem install I've installed these gems
> 
> columnize (0.3.4)
> dbd-odbc (0.2.5)
> dbi (0.4.5)
> deprecated (3.0.0, 2.0.1)
> ini (0.1.1)
> json (1.5.3)
> linecache (0.46)
> rbx-require-relative (0.0.5)
> ruby-debug (0.10.4)
> ruby-debug-base (0.10.4)
> 
> And this is env:
> 
> RubyGems Environment:
>   - RUBYGEMS VERSION: 1.7.2
>   - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
>   - INSTALLATION DIRECTORY: /var/lib/gems/1.8/
>   - RUBY EXECUTABLE: /usr/bin/ruby1.8
>   - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
>   - RUBYGEMS PLATFORMS:
>     - ruby
>     - x86_64-linux
>   - GEM PATHS:
>      - /var/lib/gems/1.8/
>      - /home/hellth/.gem/ruby/1.8
>      - /var/lib/gems/1.8
>   - GEM CONFIGURATION:
>      - :update_sources => true
>      - :verbose => true
>      - :benchmark => false
>      - :backtrace => false
>      - :bulk_threshold => 1000
>   - REMOTE SOURCES:
>      - http://rubygems.org/
> 
> I wrote a simple script:
> 
> #!/usr/bin/ruby -w
> require 'rubygems'
> require 'ini'
> 
> BEGIN {
>   puts "Initializing script"
> }
> 
> # Initialize backend
> inifname='/path/to/some.ini' unless inifname
> @ini=Ini.load(inifname)
> puts @ini
> 
> It returns this error:
> 
> ruby --debug parseini.rb
> Exception `LoadError' at /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:1340
> - no such file to load -- rubygems/defaults/operating_system
> Initializing script
> Exception `LoadError' at
> /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36 - no such
> file to load -- ini
> #<Ini:0x7ffb63852dc8>
> 
> but! When I start irb and type:
> irb(main):003:0> require 'rubygems'
> => true
> irb(main):004:0> require 'ini'
> => true

Hi,

Isn't that the expected behaviour of --debug?

- Lucas