Compiling Pytave under Sage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pytave |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
I was wondering whether any attempt had been made to make Pytave available to Sage (http://
Sage comes by default with a pipe-based interface to Octave which is buggy and slow. However interacting between a Sage worksheet and an Octave session is awesome ! It would greatly benefit from the Pytave work.
There is an experimental version of boost available as an SPKG extension for Sage, (just type sage -i boost) to install it, but I had no success building the pytave library for Sage.
Basically I have run a Sage subshell to run the commands describe in the INSTALL file , i.e :
sage -sh
autoreconf -- install
./configure
Then configure fails with :
checking python extra libraries... -lpthread -ldl -lutil
checking python extra linking flags... -Xlinker -export-dynamic
checking consistency of all components of python development environment... no
configure: WARNING:
=======
Could not link test program to Python. Maybe the main Python library
has been installed in some non-standard library path. If so, pass it
to configure, via the LDFLAGS environment variable.
Example: ./configure LDFLAGS=
ERROR!
You probably have to install the development version of the Python
package for your distribution. The exact name of this package varies
among them.
configure:4787: checking whether linking to Octave library works include/ octave- 3.2.4 -L/usr/ lib/octave- 3.2.4 conftest.cpp -loctave -lcruft -loctinterp >&5 octave- 3.2.4/octave/ oct.h:31,
from conftest.cpp:9: octave- 3.2.4/octave/ config. h:982:1: warning: "PACKAGE_BUGREPORT" redefined octave- 3.2.4/octave/ config. h:985:1: warning: "PACKAGE_NAME" redefined octave- 3.2.4/octave/ config. h:988:1: warning: "PACKAGE_STRING" redefined octave- 3.2.4/octave/ config. h:991:1: warning: "PACKAGE_TARNAME" redefined octave- 3.2.4/octave/ config. h:997:1: warning: "PACKAGE_VERSION" redefined octave- 3.2.4/liboctint erp.so: undefined reference to `gzungetc@ ZLIB_1. 2.0.2'
configure:4822: g++ -o conftest -g -O2 -I/usr/
In file included from /usr/include/
/usr/include/
conftest.cpp:6:1: warning: this is the location of the previous definition
/usr/include/
conftest.cpp:2:1: warning: this is the location of the previous definition
/usr/include/
conftest.cpp:5:1: warning: this is the location of the previous definition
/usr/include/
conftest.cpp:3:1: warning: this is the location of the previous definition
/usr/include/
conftest.cpp:4:1: warning: this is the location of the previous definition
/usr/lib/
collect2: ld returned 1 exit status
What does
mkoctfile -p LIBS
mkoctfile -p LDFLAGS
tell you? Please inform me.
Try feeding these values back to configure with ./configure LDFLAGS=... LIBS=...