hello webbox-devs
i installed webbox/securestorage under debian-wheezy (amd64) by
following the instructions under [1]. i got it running but had to
perform some additional steps to get there.
1:
https://github.com/danielsmith-eu/webbox/wiki/Installing-WebBox-under-Ubuntu-Linux
setup_env.sh failed at first attempt, because my system didn't have
swig installed.
for new_4store_kb.sh to succeed, i had to chown /var/lib/4store, not
just /var/lib/4store/securestore.
the logs directory had to be created by hand to get the logfiles.
i got an error from M2Crypto (see details further down). i found an
explanation [2] and workaround [3] and ended up doing the following:
mira@mercury:~/webbox2/danielsmith-eu-webbox-3531ab0/env/local/lib/
python2.7/site-packages$ rm -rf M2Crypto
mira@mercury:~/webbox2/danielsmith-eu-webbox-3531ab0/env/local/lib/
python2.7/site-packages$ cp -R /usr/lib/python2.7/dist-packages/
M2Crypto .
2:
http://stackoverflow.com/questions/8206546/undefined-symbol-sslv2-method
3:
http://stackoverflow.com/questions/10547332/install-m2crypto-on-a-virtualenv-without-system-packages
cheers
-michael
=============================================================
mira@mercury:~/webbox2/danielsmith-eu-webbox-3531ab0$ ./run.sh & tests/
webbox_tests.sh &> /dev/null
mira@mercury:~/webbox2/danielsmith-eu-webbox-3531ab0$ cat logs/
securestore.log
INFO:rdflib:version: 3.2.1
Traceback (most recent call last):
File "run.py", line 35, in <module>
from securestorewsgi import securestore_wsgi
File "libs/securestorewsgi.py", line 34, in <module>
from securestore import SecureStore
File "libs/securestore.py", line 32, in <module>
from webboxx509 import WebboxX509
File "libs/webboxx509.py", line 39, in <module>
from M2Crypto import RSA, X509, EVP, m2, Rand, Err, util
File "/home/mira/webbox2/danielsmith-eu-webbox-3531ab0/env/local/lib/
python2.7/site-packages/M2Crypto/__init__.py", line 22, in <module>
import __m2crypto
ImportError: /home/mira/webbox2/danielsmith-eu-webbox-3531ab0/env/
local/lib/python2.7/site-packages/M2Crypto/__m2crypto.so: undefined
symbol: SSLv2_method
mira@mercury:~/webbox2/danielsmith-eu-webbox-3531ab0$ cat env/local/
lib/python2.7/site-packages/M2Crypto-0.21.1-py2.7.egg-info/PKG-INFO
Metadata-Version: 1.1
Name: M2Crypto
Version: 0.21.1
Summary: M2Crypto: A Python crypto and SSL toolkit
Home-page:
http://chandlerproject.org/Projects/MeTooCrypto
Author: Heikki Toivonen
Author-email:
hei...@osafoundation.org
License: BSD-style license
Description: M2Crypto is the most complete Python wrapper for OpenSSL
featuring RSA, DSA,
DH, EC, HMACs, message digests, symmetric ciphers (including
AES); SSL
functionality to implement clients and servers; HTTPS
extensions to Python's
httplib, urllib, and xmlrpclib; unforgeable HMAC'ing
AuthCookies for web
session management; FTP/TLS client and server; S/MIME;
ZServerSSL: A HTTPS
server for Zope and ZSmime: An S/MIME messenger for Zope.
M2Crypto can also be
used to provide SSL for Twisted.
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: C
Classifier: Programming Language :: Python
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Software Development :: Libraries :: Python
Modules
mira@mercury:~/webbox2/danielsmith-eu-webbox-3531ab0$ dpkg -l |grep
m2crypto
ii python-m2crypto
0.21.1-2 a crypto and SSL toolkit for Python