Discussion:
[Opendnssec-user] Issues when building OpenDNSSEC 1.2: Ruby xsd/datatypes not found
Carlos M. Martinez
2011-02-16 19:51:17 UTC
Permalink
Hello all,

I am probably bringing out a dead horse for another beating, so i'm
sorry in advance :-)

I'm having some trouble building OpenDNSSEC 1.2.0 and it fails at the
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
I built Ruby from source (1.9.2) using all the defaults except for
"--prefix". I'm trying to "configure" OpenDNSSEC with the following
./configure --prefix=/home/opendnssec --with-sqlite3=/home/opendnssec
--with-ruby=/home/opendnssec/bin/ruby
OS is CentOS 5.5 x64.

I'm obviously missing some dependency, I just cannot find which one.
I've installed several XML-related items for Ruby but I cannot get past
that point and I don't want to continue polluting my Ruby build.


Warm regards,

Carlos
--
Carlos M. Martinez
LACNIC I+D
PGP KeyID 0xD51507A2
Phone: +598-2604-2222 ext. 4419

-------------- next part --------------
A non-text attachment was scrubbed...
Name: carlos.vcf
Type: text/x-vcard
Size: 194 bytes
Desc: not available
Url : http://lists.nominet.org.uk/pipermail/opendnssec-user/attachments/20110216/91b88183/carlos.vcf
Scott Armitage
2011-02-16 20:01:30 UTC
Permalink
Post by Carlos M. Martinez
Hello all,
I am probably bringing out a dead horse for another beating, so i'm
sorry in advance :-)
I'm having some trouble building OpenDNSSEC 1.2.0 and it fails at the
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
I built Ruby from source (1.9.2) using all the defaults except for
"--prefix". I'm trying to "configure" OpenDNSSEC with the following
./configure --prefix=/home/opendnssec --with-sqlite3=/home/opendnssec
--with-ruby=/home/opendnssec/bin/ruby
OS is CentOS 5.5 x64.
I'm obviously missing some dependency, I just cannot find which one.
I've installed several XML-related items for Ruby but I cannot get past
that point and I don't want to continue polluting my Ruby build.
I installed the epel repositories and yum install ruby from there. Fixed my ruby issues.

---
Scott Armitage,
Loughborough University
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: This is a digitally signed message part
Url : http://lists.nominet.org.uk/pipermail/opendnssec-user/attachments/20110216/7082aeca/PGP.bin
Carlos M. Martinez
2011-02-16 21:19:18 UTC
Permalink
This post might be inappropriate. Click to display it.
Carlos M. Martinez
2011-02-17 20:39:45 UTC
Permalink
Hello all, I think I have solved the issue for me. If anyone is
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
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
--
Carlos M. Martinez
LACNIC I+D
PGP KeyID 0xD51507A2
Phone: +598-2604-2222 ext. 4419

-------------- next part --------------
A non-text attachment was scrubbed...
Name: carlos.vcf
Type: text/x-vcard
Size: 203 bytes
Desc: not available
Url : http://lists.nominet.org.uk/pipermail/opendnssec-user/attachments/20110217/16a4ee67/carlos.vcf
Carlos M. Martinez
2011-02-19 00:26:19 UTC
Permalink
Jeez, just when I thought my Ruby issues were over...

This is the message I'm currently receiving when running "ods-ksmutil
*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
/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
This with all configs as default...

Any ideas?

regards

Carlos
Hello all, I think I have solved the issue for me. If anyone is
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
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.
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
--
Carlos M. Martinez
LACNIC I+D
PGP KeyID 0xD51507A2
Phone: +598-2604-2222 ext. 4419

-------------- next part --------------
A non-text attachment was scrubbed...
Name: carlos.vcf
Type: text/x-vcard
Size: 203 bytes
Desc: not available
Url : http://lists.nominet.org.uk/pipermail/opendnssec-user/attachments/20110218/f1c9e008/carlos.vcf
Carlos M. Martinez
2011-02-19 01:24:48 UTC
Permalink
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: carlos.vcf
Type: text/x-vcard
Size: 194 bytes
Desc: not available
Url : http://lists.nominet.org.uk/pipermail/opendnssec-user/attachments/20110218/85e70c89/carlos.vcf
Loading...