$Id: INSTALL.zxid,v 1.5 2009-10-16 13:36:33 sampo Exp $
These instructions are for the impatient. See <<link:html/zxid-install.html: ZXID Compilation and Installation>> aka zxid-install.pd for the complete story.
If you want to try ZXID out immediately, we recommend compiling the library and examples and installing one of the examples as a CGI script in an existing web server.
tar xvzf zxid-0.34.tgz
cd zxid-0.34
# N.B. There is no configure script. The Makefile works for all # supported platforms by provision of correct TARGET option. # N.B2: We distribute some generated files. If they are missing, you need # to regenerate them: make cleaner; make dep ENA_GEN=1
make # Compile for ix86 Linux (default) make TARGET=sol8 # Compile for Solaris make TARGET=macosx # Compile for MacOS X (ix86 tested) make TARGET=xmingw # Cross compile Windows binaries using Linux make dir # Creates /var/zxid hierarchy make apachezxid # optional: compile mod_auth_saml Apache module
make apachezxid_install # optional: install mod_auth_saml.so
make samlmod # optional: compile Net::SAML perl module make samlmod_install # optional: install Net::SAML
make phpzxid # optional: compile php_zxid PHP extension make phpzxid_install # optional: install php_zxid.so
make javazxid # optional: compile libzxidjni make javazxid_install # optional: install libzxidjni.so and zxidjni.class
Compilation Problems? (*** also in zxid-faq.pd)
find / -name 'stdio.h'
find / -name 'libc.'
find / -name 'zlib.h'
find / -name 'libz.'
find / -name 'opensslv.h'
find / -name 'libssl.'
find / -name 'libcrypto.'
find / -name 'curlver.h'
find / -name 'libcurl.'
find / -name 'ap_release.h'
find / -name 'apr_version.h'
find / -name 'libapr-1.'
find / -name 'servlet-api.jar'
If you find more than one of any of the above, you need to be extra careful about which one you use.
TBD (*** WIP)
For detailed configuration reference, please see <<link:html/zxid-conf.html: ZXID Configuration Reference>> aka zxid-conf.pd
cp zxidhlo <webroot>/
# configure and start your web server to recognize zxidhlo a CGI, e.g.
mini_httpd -p 8443 -c 'zxid' -S -E zxid.pem
# Edit your /etc/hosts to contain (on Windows C:\Windows\System32\etc\hosts) 127.0.0.1 localhost sp1.zxidcommon.org sp1.zxidsp.org
# Point your browser to (zxid_simple() API version) https://sp1.zxidsp.org:8443/zxidhlo?o=E
https://sp1.zxidsp.org:8443/zxidhlo.pl?o=E # Perl version https://sp1.zxidsp.org:8443/zxidhlo.php?o=E # PHP version
https://sp1.zxidsp.org:8443/zxidhlo-java.sh?o=E # Java version
# Find an IdP to test with and configure it... # ... e.g. download from http://symlabs.com/Products/SFIAM.html
See zxid-install.pd for actual tutorial out-of-box experience.
--Sampo