Can not link with Octave

Bug #578739 reported by Ahmad Zeeshan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Pytave
Invalid
Undecided
Unassigned

Bug Description

Hi guys!

I am using Fedora and tried to install pytave by using command

'bzr checkout lp:pytave'

and then following the instructions in INSTALL file but while running the command ./configure got this error

[root@localhost pytave]# ./configure
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for octave-config filename... determined from path
checking for octave-config... /usr/bin/octave-config
checking for Octave library path... /usr/lib/octave-3.2.3
checking for Octave include path... /usr/include/octave-3.2.3
checking whether linking to Octave library works... no
configure: WARNING:
========================================================================
Can not link with Octave.

Make sure the Octave development package is installed.
========================================================================
checking for python... /usr/bin/python
checking for a version of Python >= '2.1.0'... yes
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python2.6
checking for Python library path... -L/usr/lib -lpython2.6
checking for Python site-packages path... /usr/lib/python2.6/site-packages
checking python extra libraries... -lpthread -ldl -lutil
checking python extra linking flags... -Xlinker -export-dynamic
.
.
.
.
.
.
.
.
.
.
checking for int8_t... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for uselocale... yes
configure:
========================================================================
One or more library dependencies could not be resolved.

Missing dependencies:
Octave development files

Configuration failed. Halt.

Dependencies
  Octave .............
  Python ............. -I/usr/include/python2.6
    executable ....... /usr/bin/python
  Python boost ....... boost_python

Features
  matrix interface ... numpy
  uselocale .......... yes

========================================================================
configure: error: Configuration failure. Halt.

I have installed octave-3.2.3-1 and having same problem faced by fideli but in a different way. His problem was solved by adding c++config.h file in this path

/usr/include/c++/4.3/x86_64-linux-gnu/bits/c++config.h

as he was using ubuntu. I also searched for this header file and I found it in this path

/usr/include/c++/4.4.0/i586-redhat-linux/bits/c++config.h

but my problem is still there so I guess that this is not the problem in my case. Kindly pay attention. Thanks.

Revision history for this message
Ahmad Zeeshan (ahmadzn) wrote :
Revision history for this message
David Grundberg (individ) wrote :

configure:4636: checking whether linking to Octave library works
configure:4681: g++ -o conftest -g -O2 -I/usr/include/octave-3.2.3 -L/usr/lib/octave-3.2.3 conftest.cpp -loctave -lcruft -loctinterp >&5
conftest.cpp:8:24: error: octave/oct.h: No such file or directory
conftest.cpp:9:31: error: octave/Matrix.h: No such file or directory
conftest.cpp: In function 'int main()':
conftest.cpp:13: error: 'MatrixType' was not declared in this scope
configure:4688: $? = 1

Looks like /usr/include/octave-3.2.3/octave/oct.h is missing. Have you installed the development packages? They are usually named octave-dev, octave-headers, ... or similar.

Revision history for this message
Ahmad Zeeshan (ahmadzn) wrote :

Thanks a lot ....
You have solved my current problem ...

Revision history for this message
Ahmad Zeeshan (ahmadzn) wrote :

oct.h was missing. I installed octave-devel package which solved the problem. Thanks David.

Changed in pytave:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.