Giter Site home page Giter Site logo

Comments (3)

maplesond avatar maplesond commented on August 12, 2024

Hi Miguel,

This might be due to your python installation. Do you have a "dev" version installed, on linux (debian) systems you can install this to default location by typing "sudo apt-get install python3-dev". This will include the headers and libraries that you need for compiling and running KAT with python support. If you do this and have python installed to a standard location then you shouldn't need to worry about the environment variables you mention. My personal choice is to just install anaconda, this will have everything you need, header, libraries and a whole bunch of python packages.

Assuming you need python in a non-standard location, first make sure you have python.h and libpython3.so in your custom location in "include" and "lib" folders respectively. At compile time set the CPPFLAGS to the include dir, LDFLAGS to the lib dir and that's probably enough. To run you'll need to set the LD_LIBRARY_FLAGS to the lib dir as well.

I might look at supporting non-custom locations in the configuration system at some point in the future, for the time being the workaround above should work.

Hope that helps,

Best,
Dan

from kat.

maplesond avatar maplesond commented on August 12, 2024

Sorry, the runtime variable is LD_LIBRARY_PATH not LD_LIBRARY_FLAGS.

Best,
Dan

from kat.

vatese avatar vatese commented on August 12, 2024

Thank you so much Daniel!

It worked when I removed the variable LIBS (I had it set to LIBS="-lpython3.5m"). I used:

export LDFLAGS="-L/home/python3/lib"
export CPPFLAGS="-I/home/python3/include/python3.5m"
export LIBS=''

Additionally the modulefile was incorrectly setting up LD_LIBRARY_PATH to /home/python3/lib/python3.5.

Cheers!

from kat.

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.