After another bit of investigation and a careful study of the config.log, I could install it by passing the variable PYTHON_EXTRA_LDFLAGS with the correct location of the Python framework. Ex. ./configure PYTHON_EXTRA_LDFLAGS=“-F/path/to/python/framework”
Thank you, Duccio On Mon, 18 Dec 2017 at 12:00 <[email protected]> wrote: > Send graph-tool mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.skewed.de/mailman/listinfo/graph-tool > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of graph-tool digest..." > Today's Topics: > > 1. Installation error: Could not link test program to Python > (Duccio Aiazzi) > 2. Re: Installation error: Could not link test program to Python > (Tiago de Paula Peixoto) > > > > ---------- Forwarded message ---------- > From: Duccio Aiazzi <[email protected]> > To: [email protected] > Cc: > Bcc: > Date: Sun, 17 Dec 2017 14:55:27 +0000 > Subject: [graph-tool] Installation error: Could not link test program to > Python > Hello, > I am following the instructions for the installation in a virtual > environment. > I run the command: > ./configure --prefix=/usr/local/Cellar LDFLAGS="-L/usr/local/lib" > I get the error “Could not link test program to Python” with the > suggestion to pass LIBS or LDFLAGS variables. > From the config.log gives the following error: > > clang: error: no such file or directory: > 'Python.framework/Versions/3.6/Python' > > This error occurs in the following line, something to do with > CoreFoundation: > > configure:19079: gcc -o conftest -g -O2 -DNDEBUG > > -I/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/include/python3.6m > -L/usr/local/lib -Wl,-stack_size,1000000 -framework CoreFoundation > Python.framework/Versions/3.6/Python conftest.c > -L/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib > -lpython3.6m -ldl -framework CoreFoundation -ldl -framework > CoreFoundation >&5 > > I have two questions: > How can I pass the variable for this line? > How can I find out what the right path is? > > Thank you, > Duccio > > > > > ---------- Forwarded message ---------- > From: Tiago de Paula Peixoto <[email protected]> > To: [email protected] > Cc: > Bcc: > Date: Sun, 17 Dec 2017 16:01:43 +0100 > Subject: Re: [graph-tool] Installation error: Could not link test program > to Python > On 17.12.2017 15:55, Duccio Aiazzi wrote: > > Hello, > > I am following the instructions for the installation in a virtual > environment. > > I run the command: > > ./configure --prefix=/usr/local/Cellar LDFLAGS="-L/usr/local/lib" > > I get the error “Could not link test program to Python” with the > suggestion > > to pass LIBS or LDFLAGS variables. > > From the config.log gives the following error: > > > > clang: error: no such file or directory: > 'Python.framework/Versions/3.6/Python' > > > > This error occurs in the following line, something to do with > CoreFoundation: > > > > configure:19079: gcc -o conftest -g -O2 -DNDEBUG > > > > -I/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/include/python3.6m > > -L/usr/local/lib -Wl,-stack_size,1000000 -framework CoreFoundation > > Python.framework/Versions/3.6/Python conftest.c > > -L/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib > > -lpython3.6m -ldl -framework CoreFoundation -ldl -framework > > CoreFoundation >&5 > > > > I have two questions: > > How can I pass the variable for this line? > > How can I find out what the right path is? > > Please post the _complete_ output of configure and config.log, not only > snippets, as they do not tell the whole story. Also, do not forget to tell > us which OS you are using, as well as compiler, Python and boost versions. > > (From the kind of error messages you show, I would venture this is related > to the following homebrew bug: > https://github.com/Homebrew/homebrew-core/issues/21212 ) > > Best, > Tiago > > -- > Tiago de Paula Peixoto <[email protected]> > > _______________________________________________ > graph-tool mailing list > [email protected] > https://lists.skewed.de/mailman/listinfo/graph-tool >
_______________________________________________ graph-tool mailing list [email protected] https://lists.skewed.de/mailman/listinfo/graph-tool
