Ad Widget

Collapse

Can't get zabcon to work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bashman
    Senior Member
    • Dec 2009
    • 432

    #16
    Thanks nelsonab, done, but still not working:

    Code:
    ruby zabcon
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- readline (LoadError)
            from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
            from ./libs/input.rb:25
            from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
            from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
            from zabcon:35
    May be some dependencies missing?
    978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

    Comment

    • nelsonab
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2006
      • 1233

      #17
      There's a dependencies file. That explains what you need to do to install the requisite dependencies. You may also want to update your svn copy. It will now display a somewhat helpful message about missing dependencies. :-)
      RHCE, author of zbxapi
      Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
      Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

      Comment

      • bashman
        Senior Member
        • Dec 2009
        • 432

        #18
        Originally posted by bashman
        Hi nelsonab,

        I have this output when I run ruby zabcon revision 183 2010-04-21:

        Code:
        /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- readline (LoadError)
                from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
                from ./libs/input.rb:25
                from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
                from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
                from zabcon:35
        I have ruby version for red hat 5:

        Code:
        ruby --version
        ruby 1.8.6 (2007-03-13 patchlevel 0) [x86_64-linux]
        Zlibs version:

        Code:
        zlibs-1.2.5
        ruby-zlib-0.6.0
        Ruby gem version:

        Code:
        gem --version
        1.3.7
        Packages version:

        Code:
        json-1.4.3
        parseconfig-0.5.2
        highline-1.5.2
        Anybody know how to solve this?
        Thanks a lot nelsonab, I read your dependencies file but I'll try to update my copy.
        978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

        Comment

        • nelsonab
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2006
          • 1233

          #19
          You are missing the library readline. Which distro are you using? Check to see if there's a readline package, and in addition if there is a readline package for Ruby on your distro. Did you compile Ruby or install it from a package manager? Normally readline is included in Ruby for MS Windows, OpenSuSE and CentOS.
          RHCE, author of zbxapi
          Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
          Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

          Comment

          • bashman
            Senior Member
            • Dec 2009
            • 432

            #20
            I'm using Red Hat 5.4 and I compiled Ruby.
            978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

            Comment

            • nelsonab
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2006
              • 1233

              #21


              It looks like you will need to adapt the path in the above link for your environment, but that looks to be the basics on compiling readline. I do most of my dev work on CentOS 5.4 and 5.5 which is essentially the same as RHEL 5.4 and 5.5. I just use the ruby rpm's.
              RHCE, author of zbxapi
              Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
              Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

              Comment

              Working...