<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    If anyone interested, I commented the following block of code in
    kasp_checker.rb and was able to complete setup:<br>
    <br>
               #   7. Warn if the "PublishSafety" and "RetireSafety"
    margins are less than 0.1 * TTL or more than 5 * TTL.<br>
                # publish_safety_secs = get_duration(policy,
    'Keys/PublishSafety', kasp_file)<br>
                # retire_safety_secs = get_duration(policy,
    'Keys/RetireSafety', kasp_file)<br>
                # ttl_secs = get_duration(policy, 'Keys/TTL', kasp_file)<br>
                # [{publish_safety_secs , "Keys/PublishSafety"},
    {retire_safety_secs, "Keys/RetireSafety"}].each {|pair|<br>
                 #  pair.each {|time, label|<br>
                #     if (time < (0.1 * ttl_secs))<br>
                #       log(LOG_WARNING, "#{label} (#{time} seconds) in
    #{name} policy" +<br>
                #           " in #{kasp_file} is less than 0.1 * TTL
    (#{ttl_secs} seconds)")<br>
                #     end<br>
                #     if (time > (5 * ttl_secs))<br>
                #       log(LOG_WARNING, "#{label} (#{time} seconds) in
    #{name} policy" +<br>
                #           " in #{kasp_file} is more than 5 * TTL
    (#{ttl_secs} seconds)")<br>
                #     end<br>
                #   }<br>
                # }<br>
    <br>
    regards,<br>
    <br>
    Carlos<br>
    <br>
    <br>
    On 2/18/11 4:26 PM, Carlos M. Martinez wrote:
    <blockquote cite="mid:4D5EB9C1.70807@lacnic.net" type="cite">
      <pre wrap="">Jeez, just when I thought my Ruby issues were over...

This is the message I'm currently receiving when running "ods-ksmutil
setup":

</pre>
      <blockquote type="cite">
        <pre wrap="">[opendnssec@vm3-lab2 ~]$ ./bin/ods-ksmutil setup
*WARNING* This will erase all data in the database; are you sure? [y/N] y
SQLite database set to: /home/opendnssec/var/opendnssec/kasp.db
fixing permissions on file /home/opendnssec/var/opendnssec/kasp.db
zonelist filename set to /home/opendnssec/etc/opendnssec/zonelist.xml.
kasp filename set to /home/opendnssec/etc/opendnssec/kasp.xml.
Repository SoftHSM found
No Maximum Capacity set.
RequireBackup NOT set; please make sure that you know the potential
problems of using keys which are not recoverable
<internal:lib/rubygems/custom_require>:29:in `require':
/home/opendnssec/lib/opendnssec/kasp_checker.rb:403: syntax error,
unexpected ',', expecting tASSOC (SyntaxError)
...        [{publish_safety_secs , "Keys/PublishSafety"}, {reti...
...                               ^
/home/opendnssec/lib/opendnssec/kasp_checker.rb:403: syntax error,
unexpected ',', expecting '}'
...y_secs , "Keys/PublishSafety"}, {retire_safety_secs, "Keys/R...
...                               ^
/home/opendnssec/lib/opendnssec/kasp_checker.rb:403: syntax error,
unexpected ']', expecting keyword_end
...ety_secs, "Keys/RetireSafety"}].each {|pair|
...                               ^
/home/opendnssec/lib/opendnssec/kasp_checker.rb:470: syntax error,
unexpected '}', expecting keyword_end
/home/opendnssec/lib/opendnssec/kasp_checker.rb:478: syntax error,
unexpected '}', expecting keyword_end
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /home/opendnssec/bin/ods-kaspcheck:29:in `<main>'
Couldn't run kaspcheck, will carry on
Policy default found
Info: converting P1Y to seconds; M interpreted as 31 days, Y
interpreted as 365 days
</pre>
      </blockquote>
      <pre wrap="">This with all configs as default...

Any ideas?

regards

Carlos

On 2/17/11 12:39 PM, Carlos M. Martinez wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello all, I think I have solved the issue for me. If anyone is
interested, read below:

</pre>
        <blockquote type="cite">
          <pre wrap="">On 16 Feb 2011, at 13:51, Carlos M. Martinez wrote:

</pre>
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">configure: Detecting common OpenDNSSEC settings
checking for ruby... /home/opendnssec/bin/ruby
checking for ruby library syslog... ok
checking for ruby library openssl... ok
checking for ruby library xsd/datatypes... not found
configure: error: Ruby library 'xsd/datatypes' not found
configure: error: ./configure failed for auditor
</pre>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">Apparently xsd/datatypes.rb is part of a gem called XSD4R. I could not
find a way to install XSD4R alone, but installing another gem called
SOAP4R solved the problem as it appears to include XSD4R.

I had previously installed a gem called xmlparser, so it may or may not
be needed, I'm not exactly sure.

So, my solution in the end was:

gem install -r rake
-- had install xmlparser from source due to my non-standard install
location (it could not find expat and libxml2)
gem install -r soap4r

Warm regards,

Carlos

</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Opendnssec-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Opendnssec-user@lists.opendnssec.org">Opendnssec-user@lists.opendnssec.org</a>
<a class="moz-txt-link-freetext" href="https://lists.opendnssec.org/mailman/listinfo/opendnssec-user">https://lists.opendnssec.org/mailman/listinfo/opendnssec-user</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Carlos M. Martinez
LACNIC I+D
PGP KeyID 0xD51507A2
Phone: +598-2604-2222 ext. 4419
</pre>
  </body>
</html>