Can not link with Octave

Asked by Ahmad Zeeshan

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.

Question information

Language:
English Edit question
Status:
Solved
For:
Pytave Edit question
Assignee:
No assignee Edit question
Solved by:
Ahmad Zeeshan
Solved:
Last query:
Last reply:
Revision history for this message
David Grundberg (individ) said :
#1

The output from the configuration script is only diagnostics. To see what actually went wrong, I have to look in the config.log file. So you'll probably better off posting a bug report and attaching a compressed config.log file to the report.

Revision history for this message
Ahmad Zeeshan (ahmadzn) said :
#2

I have posted a bug report along with config.log file

Revision history for this message
Ahmad Zeeshan (ahmadzn) said :
#3
Revision history for this message
Ahmad Zeeshan (ahmadzn) said :
#4

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