के खिलाफ संकलन तोड़ता है। मैं पाइथन M2Crypto पैकेज को x86_64 RHEL 6.1 मशीन पर वर्चुअलएन्व में स्थापित करने का प्रयास कर रहा हूं। इस प्रक्रिया को बड़ा घूँट का आह्वान है, जो निम्नलिखित त्रुटि के साथ विफल:M2Crypto venv में स्थापित नहीं होता है, या स्विग __x86_64__ को परिभाषित नहीं करता है जो ओपनएसएसएल
$ virtualenv -q --no-site-packages venv
$ pip install -E venv M2Crypto==0.20.2
Downloading/unpacking M2Crypto==0.20.2
Downloading M2Crypto-0.20.2.tar.gz (412Kb): 412Kb downloaded
Running setup.py egg_info for package M2Crypto
Installing collected packages: M2Crypto
Running setup.py install for M2Crypto
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/usr/include/python2.6 -I/usr/include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
/usr/include/openssl/opensslconf.h:31: Error: CPP #error ""This openssl-devel package does not work your architecture?"". Use the -cpperraswarn option to continue swig processing.
error: command 'swig' failed with exit status 1
Complete output from command /home/lorin/venv/bin/python -c "import setuptools;__file__='/home/lorin/venv/build/M2Crypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-BFiNtU-record/install-record.txt --install-headers /home/lorin/venv/include/site/python2.6:
मैं OpenSSL 1.0.0 RedHat से RPM पैकेज के माध्यम से स्थापित मिल गया है।
/usr/include/openssl/opensslconf.h कि त्रुटि का कारण बनता है का हिस्सा इस तरह दिखता है:
$ echo | gcc -E -dM - | grep x86_64
#define __x86_64 1
#define __x86_64__ 1
लेकिन apparenty नहीं करता है बड़ा घूँट:
#if defined(__i386__)
#include "opensslconf-i386.h"
#elif defined(__ia64__)
#include "opensslconf-ia64.h"
#elif defined(__powerpc64__)
#include "opensslconf-ppc64.h"
#elif defined(__powerpc__)
#include "opensslconf-ppc.h"
#elif defined(__s390x__)
#include "opensslconf-s390x.h"
#elif defined(__s390__)
#include "opensslconf-s390.h"
#elif defined(__sparc__) && defined(__arch64__)
#include "opensslconf-sparc64.h"
#elif defined(__sparc__)
#include "opensslconf-sparc.h"
#elif defined(__x86_64__)
#include "opensslconf-x86_64.h"
#else
#error "This openssl-devel package does not work your architecture?"
#endif
जीसीसी सही चर परिभाषित है टी, क्योंकि यह लाइन असफल है:
swig -python -I/usr/include/python2.6 -I/usr/include -includeall -o \
SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
क्या कुछ बदलकर इसे ठीक करने का कोई तरीका है मेरे सिस्टम विन्यास में कुछ? M2Crypto एक वर्चुअलनव में स्थापित एक बड़ी स्क्रिप्ट के हिस्से के रूप में स्थापित हो जाता है जिसे मैं नियंत्रित नहीं करता हूं, इसलिए M2Crypto फ़ाइलों के साथ चारों ओर मकड़ी से बचना एक अच्छी बात होगी।
नहीं है [ 'fedora_setup.sh'] (http://svn.osafoundation.org/m2crypto/trunk/fedora_setup.sh) लेकिन यह साथ आसपास mucking की आवश्यकता है M2Crypto फ़ाइलें। – jfs
@ जेएफ। सेबेस्टियन: इससे परिचित नहीं, क्या आप एक पूर्ण उत्तर में अधिक जानकारी प्रदान कर सकते हैं? –