Code Monkey home page Code Monkey logo

Comments (7)

bgaifullin avatar bgaifullin commented on July 28, 2024

Hi. Can you please attach output of the following command:
pkg-config --cflags xmlsec1

from python-xmlsec.

charlescbeebe avatar charlescbeebe commented on July 28, 2024
$ pkg-config --cflags xmlsec1
-DXMLSEC_CRYPTO=\"openssl\" -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_100=1 -DXMLSEC_CRYPTO_OPENSSL=1 -I/usr/local/Cellar/libxml2/2.9.4_2/include/libxml2 -I/usr/local/Cellar/libxslt/1.1.29/include -I/usr/local/Cellar/libxmlsec1/1.2.20_1/include/xmlsec1 -I/usr/local/opt/openssl/include

from python-xmlsec.

bgaifullin avatar bgaifullin commented on July 28, 2024

I am sorry, I make mistake. need linker flags
pkg-config --libs xmlsec1

from python-xmlsec.

bgaifullin avatar bgaifullin commented on July 28, 2024

the workarround is put libxml2 into ldd search path. /usr/lib/ or /usr/local/lib. this should help.
ln -sf ../opt/libxml2/lib/libxml2.2.dylib /usr/local/lib/
or
brew link --force libxml2
or
export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/opt/libxml2/lib

from python-xmlsec.

charlescbeebe avatar charlescbeebe commented on July 28, 2024
$ pkg-config --libs xmlsec1
-L/usr/local/Cellar/libxml2/2.9.4_2/lib -L/usr/local/Cellar/libxslt/1.1.29/lib -L/usr/local/Cellar/libxml2/2.9.4/lib -L/usr/local/Cellar/libxmlsec1/1.2.20_1/lib -L/usr/local/opt/openssl/lib -lxmlsec1-openssl -lxmlsec1 -lcrypto -ldl -lxslt -lxml2 -lz -lpthread -liconv -lm -lxml2

from python-xmlsec.

bgaifullin avatar bgaifullin commented on July 28, 2024

there is 2 patch for libxml2.

  • -L/usr/local/Cellar/libxml2/2.9.4/lib
  • -L/usr/local/Cellar/libxml2/2.9.4_2/lib

do you have 2 installed versions of libxml2 ?

from python-xmlsec.

charlescbeebe avatar charlescbeebe commented on July 28, 2024

After brew link --force libxml2:

$ otool -L /Users/charles/.virtualenvs/xml1111/lib/python3.4/site-packages/xmlsec.so
/Users/charles/.virtualenvs/xml1111/lib/python3.4/site-packages/xmlsec.so:
	/usr/local/opt/libxmlsec1/lib/libxmlsec1-openssl.1.dylib (compatibility version 4.0.0, current version 4.20.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
	/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
	/usr/local/opt/libxslt/lib/libxslt.1.dylib (compatibility version 3.0.0, current version 3.29.0)
	/usr/local/opt/libxml2/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.4.0)
	/usr/local/opt/libxmlsec1/lib/libxmlsec1.1.dylib (compatibility version 4.0.0, current version 4.20.0)
	/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)

You're a miracle worker! Tests pass now.

from python-xmlsec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.