Bug 353405

Summary: yast2-ruby-bindings not found some YaST2 plugins
Product: [openSUSE] openSUSE 10.3 Reporter: Artyom Loenko <divenvrsk>
Component: YaST2Assignee: Duncan Mac-Vicar <dmacvicar>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 10.3   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Artyom Loenko 2008-01-11 20:24:10 UTC
I install yast2-ruby-bindings and try to make some utils for Yast. but when I try to execute my ruby script I have an error:

$ ruby test.rb 
/usr/lib/ruby/vendor_ruby/1.8/i586-linux/yastx.so: libpy2wfm.so.2: cannot open shared object file: No such file or directory - /usr/lib/ruby/vendor_ruby/1.8/i586-linux/yastx.so (LoadError)
        from /usr/lib/ruby/vendor_ruby/1.8/yast.rb:24
        from test.rb:1:in `require'
        from test.rb:1

line 1 in script: "require 'yast'".

libpy2wfm.so.2 I found at /usr/lib/YaST2/plugin/ directory. then I create symlink from /usr/lib/YaST2/plugin/libpy2wfm.so.2 to /usr/lib/libpy2wfm.so.2, error has gone. but now I have new error.

$ ruby test.rb 
/usr/lib/ruby/vendor_ruby/1.8/i586-linux/yastx.so: libpy2scr.so.2: cannot open shared object file: No such file or directory - /usr/lib/ruby/vendor_ruby/1.8/i586-linux/yastx.so (LoadError)
        from /usr/lib/ruby/vendor_ruby/1.8/yast.rb:24
        from test.rb:1:in `require'
        from test.rb:1

I create symlink to libpy2scr.so.2 to /usr/lib too and I can run script now.
Comment 1 Duncan Mac-Vicar 2008-02-01 14:36:10 UTC
I know about this problem I will try to solve it soon.

I use LD_LIBRARY_PATH=/usr/lib/yast2/plugins ;-)
Comment 2 Duncan Mac-Vicar 2008-04-16 15:59:21 UTC
Fixed in 0.3.2